/* ===============================
   TYPOGRAFI & FONTER
================================= */

/* Text-logga styling */
.elementor-heading-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900 !important;
}

.bourani-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

/* Text-logga i menyraden */
.text-logga-i-meny a {
  font-size: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #ffffff;
  text-decoration: none;
}


/* ===============================
   HEADER & NAVIGATION
================================= */

/* Fullbredd container */
.fullwidth-bg {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Header container layout */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hamburger menu positioning */
.header-container .uael-nav-menu__toggle {
  order: 2;
  margin-left: auto;
}

.uael-nav-menu__toggle {
  display: flex !important;
  align-items: center !important;
}


/* ===============================
   VISUELLA EFFEKTER
================================= */

/* Text bakgrund med glow-effekt - stor version */
.text-glow-bg {
  position: relative;
  color: #fff;
  z-index: 1;
}

.text-glow-bg::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 140%;
  background: rgba(0, 0, 0, 0.7);
  filter: blur(45px);
  border-radius: 50%;
  z-index: -1;
}

/* Text bakgrund med glow-effekt - liten version */
.text-glow-bg-2 {
  position: relative;
  color: #fff;
  z-index: 1;
}

.text-glow-bg-2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 75%;
  background: rgba(0, 0, 0, 0.80);
  filter: blur(45px);
  border-radius: 50%;
  z-index: -1;
}


/* ===============================
   UI KOMPONENTER
================================= */

/* Scroll-to-top knapp */
#ast-scroll-top {
  background: #ff9800 !important;
  border-radius: 50%;
}

#ast-scroll-top svg path {
  fill: #ffffff !important;
}

/* Play button */
.play-button {
  width: 64px;
  height: 64px;
  padding: 0; 
  background-color: #ff9800;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.play-button:hover {
  background-color: #e67e00;
  transform: scale(1.1);
}

.play-button svg {
  width: 34px;
  height: 34px;
  fill: white;
  pointer-events: none;
}


/* ===============================
   GAME BOX KOMPONENTER
================================= */

.game-box {
  max-width: 400px;
  margin: 20px auto;
  text-align: center;
  font-family: Arial, sans-serif;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.game-image-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.game-image-wrapper img {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.game-image-wrapper:hover img {
  transform: scale(1.05);
}

.game-box h2 {
  margin-top: 15px;
  font-size: 1.5em;
  color: #333;
}

.game-box p {
  color: #667;
  font-size: 0.95em;
}

/* Overlay effekt för game boxes */
.overlay {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.game-image-wrapper:hover .overlay {
  opacity: 1;
}


/* ===============================
   MODAL KOMPONENTER
================================= */

#gameModal {
  display: none;
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#gameModal .modal-content {
  position: relative;
  width: 90vw;
  height: 90vh;
  max-width: 1920px;
  max-height: 1080px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

#gameModal iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#gameModal .close-button {
  position: absolute;
  top: 10px; 
  right: 10px;
  background: #ff6600;
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}


/* ===============================
   RESPONSIVE DESIGN
================================= */

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 1024px) {
    .main-navigation {
        margin-left: auto !important;
        justify-self: flex-end !important;
    }
    
    .elementor-container {
        justify-content: space-between !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .modal-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
}