
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    color: #333;
  }
  
  /* --- Header & nav --- */
  .header {
    display: flex; 
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #222;
    color: #fff;
  }
  .nav {
    display: flex;
    gap: 1.5rem; /* navigaation linkkien väli */
    justify-content: right;/*eventualno moje i bez tova*/
  }
  .nav a {
    color: #fff;
    text-decoration: none;
    position: relative;/*eventualno moje i bez tova*/
  }
  
  .nav a::after { /*aleviivattu*/
    content: "";
    width: 0;
    height: 2px;
    background-color: #FF6A00;
    transition: width 0.5s ease;
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav a:hover::after {
    width: 100%;
  }
    
  /* --- Hero --- */
  .hero {
    display: flex; 
    justify-content:center;
    flex-direction: column;
    text-align: center;
    align-items: center;
    height: 45vh;
    background: linear-gradient(135deg, #ff6a00, #ee0979);
    color: #fff;
    
  }
  .hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
  }
  
  /* --- Ohjelmakalenteri --- */
  .calendar {
    display: flex; /* Flexbox-määrittelyt poistettu */
    justify-content: space-evenly;
    background: #fff;
    gap: 2rem;
    padding: 2rem;
  }
  .day-card {
    display: flex;/* Flex-määrittelyt poistettu */
    flex-direction: column;
    flex-basis: 200px;
    background: #f4f4f4;
    padding: 1rem;
    border-radius: 0.5rem;
    flex:1;
  }
  .day-card h2 {
    margin-bottom: 0.5rem;
  }
  .artist {
    margin: 0.25rem 0;
    display: flex;/* Flex-määrittelyt poistettu */
    flex-wrap:wrap; /*mikä on oikea wrap tai center?*/
    align-items: center;/*mikä on oikea wrap tai center?*/


  }
  .artist .time {
    display: inline-block;
    width: 3.5rem; /* tilaa ajalle */
    margin-right: 0.5rem;
    font-weight: bold;
    color: #555;
    text-align: right;
  }
  
  /* --- Lipputen kortit --- */
  .tickets {
    display: flex;/* Flexbox-määrittelyt poistettu */
    flex-direction: row;
    justify-content: center;
    justify-content: space-evenly;
    gap: 1rem;
    padding: 2rem;
    flex: 1;/*tekee laattikot samankokoiseksi*/
  }
  .ticket-card {
    display:flex;/* Flex-määrittelyt poistettu */
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid #ccc;
    border-radius: 0.5rem;
    flex: 1;
    
  }
  .ticket-card.vip {
  
    order: -1;/* Flex-määrittelyt poistettu */
    border-color: gold;
  }
  .ticket-card h3 {
    margin-bottom: 0.5rem;
  }
  .ticket-card p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .ticket-card ul {
    list-style: disc inside;
  }
  
  /* --- Sijainti & kartta --- */
  .location {
    display: flex;
    align-items: center;/* Flexbox-määrittelyt poistettu */
    gap: 2rem;
    padding: 2rem;
  }
  /* Kartan kontaineri vie 1/3 vaakatilasta desktopilla */
  .map {
    flex:2;/* Flex-määrittelyt poistettu */
  }
  .map img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
  }
  /* Osoiteteksti vie loput tilasta */
  .address {
     flex: 3;/* Flex-määrittelyt poistettu */
  }
  .address h2 {
    margin-bottom: 0.5rem;
  }
  
  /*-----Kuvaagaleria grid-----*/

  .gallery {
    background-color: white;
    padding: 20px; /* Creates spacing inside the frame */
    margin: 2rem auto; /* Space around the frame */
    max-width: 1200px; /* Optional: limits frame width */
    border: 5px solid white; /* White border - stands out on dark background */
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

 

.img_vertical--long {
    grid-column: span 1;
    grid-row:span 2;
}                    

.img_horisontal--long {
    grid-column: span 2;
    grid-row: span 1;
}

.img_big {
    grid-column: span 2;
    grid-row: span 2; 
}

  .gallery_item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;  
  }

  /* --- Footer --- */
  .footer {
    display: flex; 
    justify-content:center;
    flex-direction: column;
    text-align: center;
    align-items: center;;/* Flexbox-määrittelyt poistettu */
    padding: 1.5rem;
    background: #222;
    color: #fff;
  }
  .social {
    display: flex; 
    flex-direction: row;
    justify-content: space-between;/* Flexbox-määrittelyt poistettu */
    gap: 1rem;
    margin-bottom: 0.5rem;
  }
  .social a {
    color: #fff;
    text-decoration: none;
  }
  
 
  
  /* --- Responsiivisuus --- */

@media (max-width: 768px) {
  /* Piilotetaan desktop-nav ja voidaan halutessa lisätä burger myöhemmin */
  .nav {
    display: none;
  }

  /* Hero-teksti pienemmäksi */
  .hero h1 {
    font-size: 2rem;
  }

  /* Kalenteri pystysuuntaan */
  .calendar {
    flex-direction: column;
    align-items: stretch;
  }

  /* Liput pystysuuntaan */
  .tickets {
    flex-direction: column;
    align-items: stretch;
  }
  .ticket-card {
    width: 100%;
  }

  /* Sijainti pystysuuntaan */
  .location {
    flex-direction: column;
  }
  .map,
  .address {
    width: 100%;
  }

  /* Kuvagalleria muutetaan yksipalstaiseksi */
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .img_vertical--long,
  .img_horisontal--long,
  .img_big {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}
/* --- Responsiivisuus --- */
@media (max-width: 768px) {
  /* Piilotetaan desktop-nav ja voidaan halutessa lisätä burger myöhemmin */
  .nav {
    display: none;
  }

  /* Hero-teksti pienemmäksi ja keskelle */
  .hero {
    padding: 2rem 1rem;
    height: auto; /* ettei pakota korkeutta mobiilissa */
  }
  .hero h1 {
    font-size: 2rem;
    text-align: center;
  }
  .hero p {
    text-align: center;
  }

  /* Kalenteri pystysuuntaan ja keskelle */
  .calendar {
    flex-direction: column;
    align-items: center;
  }
  .day-card {
    width: 100%;
    max-width: 400px; /* kortit eivät veny liikaa */
    text-align: center;
  }

  /* Liput pystysuuntaan ja keskelle */
  .tickets {
    flex-direction: column;
    align-items: center;
  }
  .ticket-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
  }

  /* Sijainti pystysuuntaan ja keskelle */
  .location {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .map,
  .address {
    width: 100%;
    max-width: 500px;
  }

  /* Kuvagalleria muutetaan yksipalstaiseksi ja keskelle */
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    justify-items: center; /* keskitä kuvat */
  }
  .gallery_item {
    width: 100%;
    max-width: 500px;
  }
  .img_vertical--long,
  .img_horisontal--long,
  .img_big {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  /* Footer keskelle */
  .footer {
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  .social {
    justify-content: center;
    flex-wrap: wrap; /* rivittyy nätisti */
  }
}
