@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  --bottle-green-dark: #004d40;
  --bottle-green-medium: #279245;
  --bottle-green-accent: #a5d6a7;

  --shine-gradient: linear-gradient(
    135deg,
    #16a34a 0%,
    var(--bottle-green-medium) 50%,
    #22c55e 100%
  );
  --shine-shadow-color: rgba(22, 163, 74, 0.35);

  --background-body: #f5f7f5;
  --background-content: #ffffff;
  --text-primary: #212121;
  --text-secondary: #757575;
  --border-color: #e0e0e0;
}

body {
  font-family: "Rubik", sans-serif;
  color: var(--text-primary);
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  background-color: #fdfdfd;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d8e0d8' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: 360px;
  margin: 0px auto;
  background-color: var(--background-content);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
  padding: 20px;
}

.social-media-icon-s {
  display: flex;
  justify-content: space-between;
  padding: 0 70px;
  margin: 20px 0;
}

.social-media-icon {
  height: 32px;
  padding: 12px;
  border-radius: 30px;
}

.youtube-icon {
  background-color: #ff3d0036;
}

.facebook-icon {
  background-color: #039be536;
}

.instagram-icon {
  background: radial-gradient(circle at 30% 107%, #fdf49790 0%, #fdf49790 5%, #fd594990 45%, #d6249f90 60%, #285AEB90 90%);
}


.play-now-btn,
.play-game-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);

  background-image: var(--shine-gradient);
  border: none;
  border-radius: 15px;
  cursor: pointer;

  position: relative;
  overflow: hidden;

  box-shadow: 0 5px 20px var(--shine-shadow-color);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.play-now-btn::before,
.play-game-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;

  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );

  transform: rotate(-45deg);
  transition: left 0.8s ease-in-out;
}

.play-now-btn:hover,
.play-game-button:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px var(--shine-shadow-color);
}

.play-now-btn:hover::before,
.play-game-button:hover::before {
  left: 150%;
}

.play-now-btn:active,
.play-game-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px var(--shine-shadow-color);
}

.btn {
  padding: 10px 22px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 12px;
  background-color: #e8f5e9;
  color: #279245;
  border: none;
  transition: all 0.2s ease-in-out;
}
.btn:hover {
  background-color: #dbebe1;
  color: #279245;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.header h1 {
  text-align: center;
  color: #279245;
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 2.2em;
  font-weight: 700;
}
.search-bar {
  width: calc(100% - 24px);
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #279245;
  border-radius: 10px;
  box-sizing: border-box;
  background-color: #dbffe6;
  color: var(--text-primary);
  font-size: 1em;
}
.search-bar::placeholder {
  color: var(--text-secondary);
}
.header-description {
  text-align: center;
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 25px;
  padding: 0 10px;
}
.header-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}
.section-title {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 3px solid #279245;
  display: inline-block;
  width: auto;
}
.all-games-section {
  text-align: center;
}
.title-decorator {
  display: none;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.game-item {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  padding-bottom: 15px;
  box-sizing: border-box;
  position: relative;
}
.game-item a {
  text-decoration: none;
}
.game-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background-color: #279245;
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.game-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 77, 64, 0.15);
  border-color: #279245;
}
.game-item:hover::after {
  width: 50%;
}
.game-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 0;
  background-color: #e0e0e0;
  border: none;
  border-bottom: 1px solid var(--border-color);
}
.game-item h3 {
  font-size: 1em;
  margin: 15px 10px;
  color: var(--text-primary);
  line-height: 1.35;
  flex-grow: 1;
}

.play-now-btn {
  margin: 0 auto;
}

.more-button-container {
  text-align: center;
  margin-bottom: 30px;
}
.what-is-section h2 {
  text-align: left;
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--text-primary);
  padding-bottom: 5px;
  border-bottom: 2px solid #279245;
  display: inline-block;
}
.what-is-section p,
.what-is-section ul {
  font-size: 0.9em;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 15px;
}
.what-is-section ul {
  padding-left: 20px;
}
.what-is-section li {
  margin-bottom: 8px;
}
footer {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
}
footer .btn {
  padding: 8px 15px;
  font-size: 0.85em;
}
.game-details-page .container {
  height: 100vh;
}
.header {
  background-color: #279245;
  color: white;
  text-align: center;
  padding: 12px 0;
  font-size: 1.8em;
  font-weight: bold;
  width: 100%;
}
.header-link-wrapper {
  text-decoration: none;
}
.content-area {
  padding: 10px;
  background-color: var(--background-content);
}

.game-display-area {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  background-size: cover;
  background-position: center center;
  margin-bottom: 20px;
}

.game-meta-info {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.game-icon {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  margin-right: 15px;
}

.game-title-details h2 {
  margin: 0;
  font-size: 24px;
}

.game-title-details p {
  margin: 0;
  color: #6c757d;
}

.play-game-link {
  margin-left: auto;
  text-decoration: none;
}

.play-game-button {
  background-color: #4caf50;
  color: white;
  padding: 12px 28px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 50px;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.play-game-button:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

.play-game-button {
  padding: 10px 20px;
  font-size: 1em;
}
.game-meta-info {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 15px;
}
.game-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin-right: 15px;
  object-fit: cover;
  border: 1px solid #ddd;
}
.game-title-details h2 {
  margin: 0 0 5px 0;
  font-size: 1.3em;
  color: #333;
}
.game-plays {
  margin: 0;
  font-size: 0.9em;
  color: #777;
}
.game-description-content {
  padding: 15px;
  border: 2px dashed #279245;
  border-radius: 5px;
  background-color: #fff;
  margin-bottom: 20px;
}
.game-description-content h3 {
  font-size: 1.2em;
  color: #333;
  margin-top: 0;
  margin-bottom: 8px;
}
.game-description-content h4 {
  font-size: 1em;
  color: #444;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: bold;
}
.game-description-content p {
  font-size: 0.9em;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0;
}
.maindiv {
  width: auto;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;

  border: 1px solid #eff3ef;

  box-shadow: 0 8px 6px -5px #eff3ef;
}
