:root{
    --purple: rgb(168 85 247);
    --light-purple: rgb(167 139 250);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    background-color: rgb(238 242 255);
    height: auto;
    width: 100%;
    color: white;
    text-align: center;
    justify-self: center;
    align-items: center;
    overflow-x: hidden;
}

h1, h2, h3, p {
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
    letter-spacing: 0.03em;
    color: white;
}

h2 {
    font-size: 4vw;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    text-align: center;
}

.pass-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 60%;
}

.pass-container img {
    height: auto;
    width: 100%;
    border-radius: 15px;
    margin: 2vw;
}

.pass-container p {
    font-size: 3vw;
    color: black;
    padding-bottom: 10px;
}

.pass-container h2 {
    font-size: 3vw;
    color: black;
}

#pass {
    width: 100%;
    padding: 1vw;
    margin-bottom: 1.5vw;
    border: 3px solid #ccc;
    border-radius: 15px;
    font-size: 3vw;
}

#enterBtn {
    width: 100%;
    font-size: 3vw;
    padding: 1vw;
    border: 1px solid #ccc;
    border-radius: 15px;
    color: white;
    background-color: var(--purple);
}

#main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 100%;
    padding: 3vw;
}

/* hero image */
.hero-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/hero-image.jpg");
    height: 400px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-text h1{
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    border: solid 2px white;
    padding: 2vw;
    font-size: 5vw;    
}


/* overlay */
#letter {
    color: black;
}

.overlay {
    height: 100%;
    width: 100%;
    display: none;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0, 0.9);
    padding: 10vw;
}
  
.overlay-content {
    position: relative;
    width: 100%;
    font-size: 3vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

#overlay-to{
    font-family: 'Times New Roman', Times, serif;
    text-align: left;
}

#overlay-letter {
    font-family: 'Times New Roman', Times, serif;
    text-align: left;

}

#overlay-from {
    font-family: 'Times New Roman', Times, serif;
    text-align: right;
}
  
.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 6vw;
    color: #818181;
    display: block;
    transition: 0.3s;
}
  
.overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}
  
.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 6vw;
}


/* timeline */
.timeline {
    display: grid;
    height: 100%;
    width: 100%;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 3vw;
    grid-auto-flow: row;
}

.timeline-title {
    color: white;
    width: 100%;
    background-color: var(--light-purple);
    border-radius: 15px;
    margin-top: 1vw;
    margin-bottom: 2vw;
    padding: 2vw;
}

.timeline-message {
    grid-column: span 3;
    background-color: var(--light-purple);
    padding: 3vw;
    border-radius: 15px;
    justify-content: center;
    align-items: center;
}

.timeline-message h1 {
    text-align: center;
    border: solid 0.25vw white;
    padding: 0.6vw;
    font-size: 3.5vw;
}

.timeline-message p {
    text-align: center;
    font-size: 3vw;
    letter-spacing: 0.05em;
    padding: 0.8vw;
}

.timeline-photo {
    grid-column: span 2;
    background-color: lightblue;
    height: auto;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.timeline-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* gallery *//* gallery */
.gallery {
    margin-top: 10px;
    height: auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto;
    gap: 5px;
    border-radius: 15px;
}

.gallery-title {
    grid-column: 1 / -1;
    color: white;
    background-color: rgb(129 140 248);
    width: 100%;
    border-radius: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background-color: lightblue;
    object-fit: cover;
    justify-content: center;
    align-self: center;
}

/* Specific image sizes */
.image-1 {
    grid-column: 1 / 3; 
    grid-row: 2 / 4;  
}

.image-2 {
    grid-column: 3 / 6;
    grid-row: 2 / 5;
}

.image-3 {
    grid-column: 6 / -1;
    grid-row: 2 / 5;
}

.image-4 {
    grid-column: 1 / 3;
    grid-row: 4 / 5;
}

.image-5 {
    grid-column: 1 / 3;
    grid-row: 5 / 6;

}

.image-6 {
    grid-column: 3 / 6;
    grid-row: 5 / 8;
}

.image-7 {
    grid-column: 6 / -1;
    grid-row: 5 / 8;
}

.image-8 {
    grid-column: 1 / 3;
    grid-row: 8 / 9;
}

.image-9 { 
    grid-column: 3 / 6;
    grid-row: 8 / 9;
}

.image-10 {
    grid-column: 6 / -1;
    grid-row: 8 / 9;
}

.image-11 {
    grid-column: 1 / 3;
    grid-row: 6 / 8;
}

.fav-pics-container {
    display: grid;
    height: auto;
    overflow: hidden;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
    margin-top: 1.5vw;
}

.fav-pics-title {
    grid-column: 1 / -1;
    height: 100%;
    color: white;
    background-color: rgb(165 180 252);
    width: 100%;
    border-radius: 15px;
    padding: 10px;
    margin-top: 3vw;
}

.fav-pics-image {
    width: 100%;
    height: 100%;
    background-color: lightblue;
    object-fit: cover;
    overflow: hidden;
    border-radius: 15px;
}


/* quiz */
.quiz-container {
    background: rgb(96 165 250);
    border-radius: 15px;
    padding: 4vw;
    width: 100%;
    margin-bottom: 2vw;
}

.question {
    font-size: 3.2vw;
    margin-bottom: 2vw;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer {
    padding: 10px;
    font-size: 3vw;
    border: 1px solid #ccc;
    border-radius: 15px;
    background-color: rgb(147 197 253);
    cursor: pointer;
    transition: background-color 0.3s;
}

.answer.correct {
    background-color: rgb(110 231 183);
}

.answer.wrong {
    background-color: rgb(251 113 133);
}


.short-message {
    background-color: rgb(165 180 252);
    border-radius: 15px;
    padding: 2vw;
    margin-top: 2vw;
    margin-bottom: 2vw;
    width: 100%;
    height: auto;
    
}

.short-message p {
    font-size: 3vw;
}

#end {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* audio */
audio {
    display: none;
}
