/* Basisregels voor alle elementen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Algemene stijlen voor de body */
body {
    background-color: rgba(255, 205, 252, 0.5);
    font-family: "Protest Riot", sans-serif;
}

/* Container voor centrale uitlijning */
.container {
    height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Afbeelding van de kat */
.cat-img {
    height: 30rem;
    width: 30rem;
    margin-bottom: 2rem;
}

/* Titel */
.title {
    font-family: "Protest Riot", sans-serif;
    font-size: 3.6rem;
    color: #e43f94;
    text-align: center;
    margin-bottom: 2rem;
}

/* Knoppen container */
.buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.btn {
    padding: 1.5rem 2.5rem;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

/* Specifieke knoppen */
.btn--yes {
    background-color: #2fe951;
}

.btn--no {
    background-color: #f54343;
}

/* Verborgen elementen */
.hidden {
    display: none;
}

/* Stijlen voor de envelop */
.envelope {
    position: relative;
    text-align: center;
    margin-top: 1.5rem;
}

#envelope-img {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#passcode {
    display: block;
    margin: 1rem auto;
    padding: 0.5rem;
    font-size: 1.2rem;
    text-align: center;
    border: 2px solid #e43f94;
    border-radius: 5px;
}

#open-envelope-btn, #read-letter-btn {
    padding: 1rem 2rem;
    font-size: 1.4rem;
    background-color: #e43f94;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 10px;
}

#open-envelope-btn:hover, #read-letter-btn:hover {
    background-color: #c32e77;
}

/* Hint-knop */
#hint-btn {
    display: flex;
    position: absolute;
    top: 0;
    right: -1em;
    padding: 10px;
    border-radius: 50%;
    border: 2px solid #ff6b81;
    width: 30px;
    height: 30px;
    cursor: default;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    transition: background-color 0.3s;
    font-size: 20px;
    color: #ff6b81;
}

#hint-btn:hover {
    background-color: rgba(255, 107, 129, 0.1);
}

#hint-text {
    display: none;
    font-size: 14px;
    color: #333;
    margin-top: 10px;
}

#hint-btn:hover + #hint-text,
#hint-text.show {
    display: block;
}

/* Floating harten animatie */
.heart {
    position: fixed;
    bottom: 0;
    width: 30px;
    height: 30px;
    animation: floatUp 3s ease-out forwards;
    opacity: 1;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-150px) scale(1.5);
        opacity: 0;
    }
}

/* Letterpagina */
body.letter-page {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 75vh;
    margin: 5em;
    background-color: rgba(255, 205, 252, 0.5);
    font-family: Arial, Helvetica, sans-serif;
}

.letter-container {
    position: relative;
    text-align: center;
    width: 80%;
    padding: 2rem;
    border-radius: 20px;
    background-color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.letter-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 20px;
    background: linear-gradient(90deg, #e43f94, #ffba93, #ffc3de, #e43f94);
    background-size: 300% 300%;
    animation: glitter 2.5s infinite;
    z-index: -1;
}

.letter-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
    text-align: justify;
}

