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

body {
    margin: 0;
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 0;
    background: rgba(9, 113, 184, 0.5);
    width: 100%;
    height: 250px;
    background-image: url('KSTEVENTS/YHTEYSTIEDOT_BACKGROUND.svg');
    background-size: cover;
    background-repeat: no-repeat;
    gap: 100px;
}

header h1 {
    position: static;
    color: white;
    text-align: left;
    margin: 0;
    font-size: 5rem;
    font-weight: bold;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

header img {
    position: static;
    display: block;
    margin: 0;
    width: 175px;
    height: auto;
    z-index: 10;
    border: solid 2px white;
    border-radius: 8px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    z-index: 10;
}

#logo {
    position: absolute;
    top: 10px;
    left: 20px;
    width: 100px;
    height: auto;
    z-index: 10;
}

#contact-info {
   position: relative;
    top: 200px;
    left: 10px;
    display: flex;
    flex-direction: row;
    padding-bottom: 80px;
}

.contact-details {
    color: black;
    text-align: left;
    z-index: 10;
    background: transparent;
    padding: 5px 20px;
    box-sizing: border-box;
    border-right: solid 3px #0971b8;
    width: 30%;
}

.invoicing {
    color: black;
    text-align: left;
    z-index: 10;
    background:transparent;
    padding: 5px 20px;
    box-sizing: border-box;
    border-right: solid 3px #0971b8;
    gap: 20px;
    width: 40%;
}

.invoicing p,
.contact-details p {
    color:rgb(59, 59, 60);
}

.contact-list {
    color: black;
    text-align: center;
    z-index: 10;
    background:transparent;
    padding: 5px 20px;
    box-sizing: border-box;
}

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

#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;
}

#menu-toggle {
    display: none;
}

.city-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.city-info {
    display: none;
    margin-top: 8px;
    background: rgba(9, 113, 184, 0.1);
    border: solid 2px #0971b8;
    border-radius: 8px;
    padding: 8px 16px;
    box-shadow: 0 2px 8px rgba(9,113,184,0.08);
    font-size: 1em;
}

.city-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: none;
    border: none;
    color: black;
    font-size: 1em;
    cursor: pointer;
    text-align: center;
    padding: 0;
    border: solid 2px #0971b8;
    border-radius: 8px;
    padding: 8px 16px;
    width: 100%;
}

.city-btn:hover {
    background: rgba(9, 113, 184, 0.5);
}

li.active .city-info {
    display: block;
}

.city-btn::before {
    content: "▼";
    color: #0971b8;
    margin-right: 10px;
    min-width: 1em;
    text-align: left;
    transition: transform 0.2s;
    display: inline-block;
}

li.active .city-btn::before {
    content: "▲";
}

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

@media (min-width: 769px) and (max-width: 1200px) {
    header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        position: relative;
        margin: 0 auto;
        gap: 0;
    }
    header h1 {
        padding: 0;
        margin: 0 100px 0 0;
        font-size: 4rem;
        text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
        text-align: left;
        position: static;
    }

    header img {
        position: static;
        display: block;
        margin: 0;
        width: 140px;
        height: auto;
    }

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

@media (max-width: 768px) {
    html, body {
        height: auto;
    }

    header {
        padding-top: 20px;
        flex-direction: column;
        justify-content: center;
        height: 300px;
        top: 0px;
        gap: 0;
    }

    header h1 {
        padding: 0;
        margin: 20px;
        font-size: 3.5rem;
        text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
        text-align: center;
        position: static;
    }

    header img {
        position: static;
        display: block;
        margin: 30px auto;
        width: 140px;
        height: auto;
    }

    .header-row {
        padding: 0px;
        flex-direction: column;
        align-items: center;
    }

    #logo {
    position: absolute;
    top: 20px;
    right: 10px;
    margin-left: auto;
    margin-right: 10px;
    left: auto;
    width: 60px;
    height: auto;
    z-index: 10001;
  }

  #menu {
    position: relative;
    top: 0px;
    left: 0px;
    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;
  }


  #contact-info {
    position: relative;
    top: 0;
    left: 0;
    margin-top: 0;
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .contact-details, .invoicing{
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    border-right: none;
    border-bottom: solid 3px #0971b8;
    padding: 10px;

  }

  .contact-list {
    position: relative;
    left: 0;
  }

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