header{
    background-image: url(/images/lessenpakkt\ banner.jpeg);
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

main{
    background-image: url(/images/image-mesh-gradient-2.png);
    background-size: cover;
    background-position: center;
    height: auto;
    color: white;
    padding-bottom: 100px;
}

.container{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 20px;
}

.table-container-1,
.table-container-2 {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.table-container-1.animate,
.table-container-2.animate {
  opacity: 1;
  transform: translateY(0);
}

.table-container-2 {
  transition-delay: 0.4s;
}

.intro{
  /* From https://css.glass */
background: rgba(255, 255, 255, 0.21);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(5.6px);
-webkit-backdrop-filter: blur(5.6px);
width: 70%;
padding: 1rem;

}
.intro h1{
  font-size: 2rem;
  text-align: center;
  margin: 20px;
  color: #FAF9F6;
}

.intro p{
  font-size: 1.1rem;
  text-align: center;
  color: #FAF9F6;
}

h2{
  font-size: 2rem;
  text-align: center;
  margin: 20px 0;
}


table {
  border-collapse: collapse;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

th, td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.vak {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
}

.vak p {
  width: 2px;
}

th{
  background-color: #6c596e;
}

.info-icon {
  cursor: pointer;
}

#popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  max-width: 500px;
  z-index: 1000;
  border-radius: 8px;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.popup-header h2 {
  margin: 0;
  font-size: 18px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #888;
}

.close-btn:hover {
  color: #000;
}

.popup-body {
  margin-top: 10px;
}

.hidden {
  display: none;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    header {
        height: 40vh;
    }

    .intro {
        width: 90%;
        padding: 0.8rem;
    }

    .intro h1 {
        font-size: 1.5rem;
        margin: 10px;
    }

    .intro p {
        font-size: 1rem;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    h2 {
        font-size: 1.5rem;
        margin: 15px 0;
    }

    table {
        max-width: 100%;
        font-size: 0.9rem;
    }

    th, td {
        padding: 8px;
    }

    .vak {
        grid-template-columns: 1fr auto;
        gap: 5px;
    }

    .vak p {
        width: auto;
    }

    #popup {
        width: 90%;
        max-width: none;
        padding: 15px;
    }

    .popup-header h2 {
        font-size: 16px;
    }

    .popup-body {
        font-size: 0.9rem;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    header {
        height: 30vh;
    }

    .intro h1 {
        font-size: 1.2rem;
    }

    .intro p {
        font-size: 0.9rem;
    }

    table {
        font-size: 0.8rem;
    }

    th, td {
        padding: 6px;
    }

    .info-icon {
        width: 20px;
        height: 20px;
    }
}