/* Reset some default browser spacing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Center everything on the page */
body {
    background: linear-gradient(
        135deg,
        #FFFDF8,
        #F8F2FA
    );

    color: #47434A;

    font-family: "Noto Sans Georgian", serif;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height:100vh;

    overflow-x:hidden;
}

/* Login box */
#login-container {

    width: 90%;

    max-width: 400px;

    background: #FFFFFF;

    padding: 40px;

    border-radius: 18px;

    text-align: center;

    box-shadow: 0 15px 40px rgba(0,0,0,.35);

    transition: opacity .8s ease;

    animation: fadeIn 1.2s ease;


}

.heart {

    font-size: 35px;

    color: #D8A7B1;


}
/* Main title */
h1 {

    color: #5f5a63;

    margin-bottom: 15px;

    font-family: "Quicksand", sans-serif;

    font-size: 2rem;

    font-weight: 500;

}

/* Small text */
p {

    margin-bottom: 20px;

    color: #7A7482;

    line-height: 1.7;

}

/* Password field */
input {

    width: 100%;

    padding: 14px;

    background: #FCFCFD;

    border: 2px solid #E8E4EE;

    border-radius: 14px;

    border-color: #CDBCEB;

    font-size: 16px;

    margin-bottom: 20px;

}

/* Button */
button {

    width: 100%;

    margin-bottom: 15px;

    padding: 14px;

    border: none;

    border-radius: 10px;

    background: #C8B6E2;

    color: white;

    font-family: "Quicksand", sans-serif;
    
    font-weight: 600;

    font-size: 16px;

    cursor: pointer;

    transition: .3s ease;

}

/* Button hover effect */
button:hover {

    background: #BFA7D9;

    transform: scale(1.02); 
    transform: translateY(-2px);

}

#message{

    color: rgb(226, 91, 91);

}

#website-content{
    display: none;

    opacity: 0;

    transform: translateY(10px);

    transition: opacity .9s ease, transform .9s ease;

}

#website-content.visible{
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.visible {
    opacity: 1;
}

#letter-page {

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    transition: opacity .9s ease, transform .9s ease;

}


.letter-card {

    background: #FFFFFF;

    width: 90%;

    max-width: 800px;

    padding: 35px;

    border-radius: 25px;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.08);

    text-align: center;

}


#letter-text {

    font-family: Georgia, serif;

    font-size: 1rem;

    line-height: 2;

    color: #6E6876;

    text-align: center;

    margin-top: 10px;

    min-height: 200px;

    margin-bottom: 10px;

}

#letter-tag{
    font-family: Georgia, serif;

    font-size: 1.1rem;

    line-height: 2;

    color: #6E6876;
}

#puzzle-page {

    display: none;

    opacity: 0;

    width: 100%;

    min-height: 100vh;

    justify-content: center;

    align-items: center;

    transition: opacity .9s ease, transform .9s ease;

}

#puzzle-page.visible{

    opacity: 1;

    transform: translateY(0);

}

.puzzle-card {

    background: white;

    width: 90%;

    max-width: 650px;

    padding: 50px;

    border-radius: 25px;

    box-shadow:
    0 15px 40px rgba(0,0,0,.08);

    text-align:center;

}

#puzzle-message {

    display: none;

    opacity: 0;

    transition: opacity 1s ease;

}

#puzzle-message.visible {

    display: block;

    opacity: 1;

}

#puzzle-container {

    display: grid;

    grid-template-columns:
        repeat(3, var(--piece-size));

    grid-template-rows:
        repeat(3, var(--piece-size));

    gap: 5px;

    justify-content: center;

    padding: 10px;

    background: #FFFDF8;

    border-radius: 20px;

}

:root {

    --piece-size: min(28vw, 150px);

}

.piece {

    width: var(--piece-size);

    height: var(--piece-size);

    background-size:
        calc(var(--piece-size) * 3)
        calc(var(--piece-size) * 3);

    background-image: url("images/party.webp");

    cursor: pointer;

    border-radius: 12px;

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}


/* Selected piece */

.piece.selected {

    transform:
        scale(1.08)
        translateY(-12px)
        rotate(2deg);

    box-shadow:
        0 15px 30px rgba(0,0,0,.15);

}

#continue-button {

    opacity: 0;

    pointer-events: none;

    transition: .3s ease opacity 2s ease;

}

/* Music Page */

#music-page{

    display:none;

    opacity:0;

    margin-top: 5vh;

    text-align: center;

    width:100%;

    min-height:100vh;

    justify-content:center;

    align-items:center;

    padding:20px;

    transition:opacity .9s ease;

}

#music-page.visible{

    display:flex;

    opacity:1;

}

.music-card {

    background:white;

    width:90%;

    max-width:800px;

    padding:50px;

    border-radius:25px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.08);

    text-align:center;

}

.song{

    background:#FCFAFD;

    border-radius:20px;

    padding:25px;

    margin:30px 0;

    box-shadow:
        0 10px 20px rgba(0,0,0,.08);

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}

.song iframe {

    width:100%;

    border-radius:12px;

    margin:15px 0;

}

.song:hover{

    transform:translateY(-5px);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.14);

}

#song-message{
    color: #5f5a63;
    font-size: medium;

    text-align: center;

    margin-top: 5px;

    margin-bottom: 0px;
}

.song-title {

    font-family:"Quicksand", sans-serif;

    color:#5f5a63;

    margin-bottom:5px;

}


.artist {

    color:#A79EAE;

    font-size:.9rem;

    margin-bottom: 5px;

}

#memory-page {

    display:none;

    opacity:0;

    width:100%;

    min-height:100vh;

    justify-content:center;

    align-items:center;

    padding:20px;

    transition:
        opacity .9s ease;

}


#memory-page.visible {

    display:flex;

    opacity:1;

}



.memory-card {

    background:white;

    width:90%;

    max-width:800px;

    padding:50px;

    border-radius:25px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.08);

    text-align:center;

}

#photo-gallery {

    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:25px;

    margin:40px 0;

}

.photo-card {

    background:#FCFAFD;

    padding:15px;

    border-radius:15px;

}


.photo-card img {

    width:100%;

    border-radius:12px;

    display:block;

}


.photo-card p {

    margin-top:15px;

    font-family:Georgia,serif;

    font-size:.95rem;

}

#final-page {

    display:none;

    opacity:0;

    width:100%;

    min-height:100vh;

    justify-content:center;

    align-items:center;

    transition:
        opacity .9s ease;

}


#final-page.visible {

    display:flex;

    opacity:1;

}



.final-card {

    background:white;

    width:90%;

    max-width:700px;

    padding:60px 50px;

    border-radius:25px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.08);

    text-align:center;

}



.final-card h1 {

    margin-bottom:30px;

}



#final-message {

    font-family:Georgia, serif;

    color:#6E6876;

    font-size:1.15rem;

    line-height:2;

    min-height:180px;

}

.countdown-section{

    margin:0px 0 30px;

    text-align:center;

}

#countdown{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

    margin-top:30px;

}

.time-box{

    width:110px;

    padding:20px;

    background:#FCFAFD;

    border-radius:18px;

    box-shadow:
        0 8px 20px rgba(0,0,0,.06);

}

.time-box span{

    display:block;

    font-size:2.2rem;

    font-family:"Quicksand", sans-serif;

    color:#C8B6E2;

    font-weight:700;

}

.time-box small{

    color:#7A7482;

    letter-spacing:1px;

    text-transform:uppercase;

}

@keyframes fadeIn {

    from {

        opacity: 0;

        transform: translateY(15px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

@media (max-width: 600px){

    .letter-card {
        padding: 20px;
    }

    .puzzle-card{

        padding: 25px;

    }

    .music-card{
        padding: 10px;
    }

    .music-card h1{

        font-size:2rem;

    }

    #music-page{
        padding: 0px;
    }

    .memory-card{

        padding:30px 20px;

    }

    #photo-gallery{

        grid-template-columns:1fr;

    }

    .final-card{
        padding:20px 20px;
    }

}