/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Roboto Condensed', sans-serif;
    background: linear-gradient(to bottom, #74f1e7, #ffff88);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  /* Header*/ 
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: linear-gradient(to bottom, #74f1e7, #ffff88);
    color: #020202;
    position: relative;
  }
  
  
  .logo {
    
    font-size: 2.8rem;
    font-weight: bold;
    font-family: fantasy;
    letter-spacing: 1.2rem;
  }
  
  .navbar {
    position: relative;
  }
  
  .nav-links {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 1.5rem;
    transition: all 0.6s ease-in-out;
    align-items: center;
    padding: 0;
    margin: 0;
  }
  
  .nav-links li {
    position: relative;
  }
  
  .nav-links li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
    font-family: "Roboto Condensed", sans-serif;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 4px 0; /* vähän tilaa hover-viivalle */
    line-height: 1.2;
    position: relative;
  }
  
  /* Viiva tekstin alle hoverissa */
  .nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0; /* muokkaa tarvittaessa */
    width: 0%;
    height: 2px;
    background-color: black;
    transition: width 0.3s ease;
  }
  
  /* Hover-efekti */
  .nav-links li a:hover {
    color: #FFD700;
  }
  
  .nav-links li a:hover::after {
    width: 100%;
  }
  
  /* Klikkaus-efekti */
  .nav-links li a:active {
    color: white;
  }
  
  
  .hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: rgb(0, 0, 0);
    cursor: pointer;
  }
  
  /* Kaupunkikuva osion alla */
  .cityline-section {
    width: 100%;
    overflow: hidden;
    
  }
  
  .cityline-img {
    width: 100%;
    height: auto;
    display: block;
  }

  .road {
    position: fixed;
    top: 25vh;
    right: -25rem; /* työntää tietä 5rem oikealle ohi ruudun reunan */
    width: 70rem;
    height: auto;
    z-index: -1;
  }
  
  /* Responsiivisuus */
  @media (max-width: 988px) {
    .nav-links {
      display: none;
      flex-direction: column;
      background-color: #ffff88;
      position: absolute;
      top: 100%;
      right: 0;
      width: 200px;
      text-align: right;
      padding: 1rem;
    }
  
    .nav-links.active {
      display: flex;
      z-index: 9999;        /* tuo päällimmäiseksi */
      position: absolute;   /* varmista että z-index toimii */
      
      
    }
  
    .hamburger {
      display: block;
    }
    @media (max-width: 768px){
      .logo {
        font-size: 1.8rem;
        font-weight: bold;
        font-family: fantasy;
        letter-spacing: 1.2rem;
      }
      .nav-links.active {
        display: flex;
        z-index: 9999;        /* tuo päällimmäiseksi */
        position: absolute;   /* varmista että z-index toimii */
        
      }
    }
  }
  footer {
    background-color: transparent;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .footer-links {
    margin-bottom: 0.5rem;
  }
  
  .footer-nav a {
    color: black;
    text-decoration: none;
    margin: 0 0.5rem;
  } 