/* Reset Default Styles */
* {
  font-family: "Cairo", sans-serif !important;
}

html[lang="ar"] * {
  font-family: "Cairo", sans-serif !important;
}

/* Body Styling */
body {
  color: #ecf0f1;
  text-align: center;
}

/* Language Switch Button */
.language-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #0000002b;
  color: var(--main-color);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: bold;
}

.language-switch:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* Game Container */
.game-container {
  max-width: 900px;
  margin-top: 100px;
  margin-bottom: 50px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 50px;
  padding-bottom: 5px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Title Styling */
.title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--main-color);
  margin: 10px auto;
  border-radius: 5px;
}

/* Instructions Text */
p {
  color: #bdc3c7;
  margin-bottom: 20px;
}

/* Result Container */
.result-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 20px 0;
}

/* Result Boxes */
.result-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  width: 45%;
  transition: transform 0.3s ease;
  min-height: 140px !important;
}



.result-box img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

.result-box span {
  font-size: 1.2rem;
  color: #ffffff;
  display: block;
}

/* Button Styling */
.click {
  padding: 15px 30px;
  font-size: 1.2rem;
  background: var(--main-color);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px var(--main-color);
}

.click:hover {
  background: var(--main-color);
  box-shadow: 0 8px 20px var(--main-color);
  transform: translateY(-3px);
}

.end {
  font-size: 12px;
  margin-top: 30px;
  font-weight: 600;
}

.end a {
  color: var(--main-color) !important;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.end a:hover {
  color: var(--blue) !important;
  text-decoration: none;
}

.sidebar {
  display: unset !important;
}



.recomanded {

  .games-box,
  .game-card,
  .Gimg,
  .inner-card {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin: 0%;
    justify-self: center !important;
  }

  .play-btn img {
    width: 25px;
    height: 25px;
  }
}

.rec-games {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.down .games-box {
  flex: 1 1 auto;
  max-width: 200px;
  box-sizing: border-box;
}

.recomanded {
  max-width: 900px;
  justify-content: center;
  justify-self: center;
}

a:hover {
  text-decoration: none;
}

.back-button {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
  margin-bottom: 2rem;
}

@media (max-width: 976px) {
  .game-container {
    width: 90%;
  }

  .back-button {
    font-size: 12px !important;
  }

  span {
    font-size: 13px !important;
  }

  .title {
    font-size: 33px;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.wheel-img {
  animation: spin 10s linear infinite;
  justify-self: center;
  width: 80%;
}

.wheel-img:hover {
  animation-play-state: paused;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.video-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 10px;
}

.video-info h3 {
    color: #e6e6e6;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.video-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .video-info h3 {
        font-size: 1.1rem;
    }
    
    .video-info p {
        font-size: 0.9rem;
    }
}