* {
    font-family: 'Inter', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

header {
    background-image: url(KSTEVENTS/KSTEVENTS_3840x2160.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
}

header h1 {
    position: absolute;
    top: 60%;
    left: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 100px;
    color: white;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#CTA {
    position: relative;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    box-sizing: border-box;
    padding: 24px 48px;
    font-size: 1rem;
    min-width: 200px;
    min-height: 60px;
    background-color: #0971b8;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
}

#CTA:hover {
    background-color: #0a7ec4;
    cursor: pointer;
}

#menu {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10;
}

#menu-toggle {
    display: none;
}

#menu ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 14px;
}

#menu li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: rgba(9, 113, 184, 0.5);
    transition: background 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#menu li a:hover {
    background-color: #0971b8;
}

#logo {
    display: none;
    position: absolute;
    height: 80vh;
    width: auto;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

#overlay {
    position: absolute;
    top: -9%;
    left: -10%;
    width: 120%;
    height: 118%;
    z-index: 3;
}

section {
    background-image: url(KSTEVENTS/about_background.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 4;
    height: 100vh;
}


#about {
   display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 60px 0;
    background-image: url(KSTEVENTS/about_background.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
}

.about-content {
    flex: 1;
    max-width: 600px;
    background: rgba(9, 113, 184, 0.5);
    border-radius: 24px;
    padding: 32px 24px;
    color: white;
    margin-right: 20px;
    font-size: 1.2rem;
    position: relative;
    top: 20px;
    right: 100px;
}

.about-images {
    display: flex;
    max-width: 250px;
    height: auto;
    aspect-ratio: 1/1;
    flex-direction: column;
    gap: 24px;
    align-items: flex-end;
}

.about-images img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

#ralli-img {
    position: relative;
    right: 200px;
    bottom: 50px;
}

#tapahtuma-img {
    position: relative;
   right: 100px;
    top: 50px;
}

#contact {
    position: relative;
    top: 600px;
    right: 600px;
    box-sizing: border-box;
    padding: 24px 48px;
    font-size: 1rem;
    min-width: 200px;
    min-height: 60px;
    background-color: #0971b8;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
}

#contact:hover {
    background-color: #0a7ec4;
}

.footer-aurealyx {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: white;
    gap: 950px;
    position: relative;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10000;
    pointer-events: auto;
    background: none;
    text-shadow:rgba(0, 0, 0, 0.1);
}

/* ----------- MEDIA QUERIES ----------- */

@media (min-width: 1201px) and (max-width: 1400px) {

  #about {
    gap: 0;
  }

  .about-content {
    margin-left: 120px;
    max-height: 500px;
  }

  .footer-aurealyx {
    gap: 40em;
  }
}

@media (min-width: 1000px) and (max-width: 1200px) {

    header h1 {
        font-size: 4em;
    }

   .about-content{
       width: 100%;
       max-width: 100%;
       max-height: 400px;
       margin-right: 0;
       padding: 16px;
       box-sizing: border-box;
       font-size: 0.9rem;
       left: 20px;
       right: 0;
       top: 50px;
   }

   #contact {
    right: 380px;
    top: 500px;
   }
   
   #ralli-img {
       width: 300px;
       height: 300px;
       right: 200px;
   }

   .footer-aurealyx {
    top: -50px;
    gap: 30em;
   }
}

@media (min-width: 901px) and (max-width: 999px) {
    header h1 {
        font-size: 3.8em;
    }

    #about {
      height: 80vh;
    }

    .about-content {
        max-width: 450px;
        max-height: 500px;
        margin-right: 0px;
        padding: 16px;
        box-sizing: border-box;
        font-size: 1rem;
        left: 20px;
        right: 0;
        top: 0px;
    }

    .about-content p {
        font-size: 0.9rem;
    }

    #contact {
        right: 20em;
        top: 500px;
        margin-top: 10px;
    }
    
    #ralli-img {
       width: 250px;
       height: 250px;
       right: 150px;
    }

    #tapahtuma-img {
       width: 250px;
       height: 250px;
       right: 50px;
    }
    
    .footer-aurealyx {
        top: -30px;
        gap: 5em;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    header h1 {
        font-size: 3.5em;
    }

    #about {
      height: 70vh;
    }

    .about-content {
        width: 300px;
        max-height: 600px;
        margin-right: -100px;
        padding: 16px;
        box-sizing: border-box;
        font-size: 0.9rem;
        left: 20px;
        right: 0;
        top: 0px;
    }

    .about-content p {
        font-size: 0.9rem;
    }

    #contact {
        right: 15em;
        top: 450px;
        margin-top: 10px;
    }
    
    #ralli-img {
       width: 200px;
       height: 200px;
       right: 100px;
    }

    #tapahtuma-img {
       width: 200px;
       height: 200px;
       right: 30px;
    }
    


    .footer-aurealyx {
        top: -30px;
        gap: 4em;
    }
}
/* Phones (up to 768px) */
@media (max-width: 768px) {

    html, body{
        overflow-x: hidden;
    }
  header h1 {
    font-size: 3em;
    top: 50%;
    white-space: nowrap;
  }

  header {
    background-image: url(KSTEVENTS/KSTEVENTSBACKGROUND.svg);
    background-size: cover;
    background-position: -110px center;
    right: 0px;
    width: 100%;
  }

  #CTA {
    top: 450px;
    padding: 14px 24px;
    font-size: 1.3rem;
    white-space: nowrap;
  }

  #menu {
    position: relative;
    top: 0;
    left: 0;
    width: 100vw;
    margin: 0;
    padding: 0;
    z-index: 10000;
    text-align: center;
  }

  #menu-toggle {
    position: relative;
    top: 0px;
    left: 0px;
    z-index: 101;
    display: block;
    background: none;
    border: none;
    font-size: 2.2em;
    color: #0971b8;
    padding: 16px;
    cursor: pointer;
    width: 100%;
    text-align: left;
  }

  #menu ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    background:rgba(9, 113, 184);
  }

  #menu.open ul {
    display: flex;
  }

  #menu li {
    position: relative;
  }

  #menu li a {
    display: block;
    width: 100%;
    font-size: 0.9rem;
    padding: 16px 0;
    border-radius: 0;
    border-bottom: 1px solid #0a7ec4;
  }

  #menu li a:last-child {
    border-bottom: none;
  }

  #logo {
    display: block;
    height: 26vh;
    top: 40%;
  }

  #overlay {
    display: none;
  }

  #about {
    flex-direction: column;
    
  }

  .about-content {
   width: 90%;
   max-width: 100%;
   margin-right: 0;
   padding: 16px;
   box-sizing: border-box;
   font-size: 1rem;
   left: 20px;
   right: 0;
  }

  .about-images {
    position: relative;
    margin: 20px auto 100px 220px;
  }

  .about-images img {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

  #tapahtuma-img,
  #ralli-img {
    max-width: 250px;
    max-height: 250px;
  }

  #contact {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    margin: 20px auto;
    padding: 16px 32px;
    font-size: 1.2rem;
    width: 80%;
    max-width: 300px;
  }

  
  .footer-aurealyx {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0px;
    text-align: center;
    font-size: 0.75em;
    color: black;
  }
}



