body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background: #ffe596;


    font-family: "Newsreader", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;

    h1, h2 {
        text-align: center;
        color: #c57938;
    }
}

.hidden {
    display: none;
}

.main {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.carrot-cake-div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    .carrot-cake {
        width: 224px;
    }
}


.title {
    text-align: center;
}

.card {
    position: sticky;
    top: 0;
    margin: auto;
    background: white;
    padding: 1.5rem;
    width: 224px;
    height: 500px;
    box-shadow: 0 -0.5rem 1rem rgba(0 0 0 / 0.15);
    border-radius: 4px;
    overflow: auto;
    transform-origin: center;
}

.time-card {
    margin: auto;
    background: white;
    padding: 1.5rem;
    width: 224px;
    box-shadow: 0 -0.5rem 1rem rgba(0 0 0 / 0.15);
    border-radius: 50px;
}

.memory-card {

}

.birthday-card {
    margin: auto;
    background: white;
    padding: 1.5rem;
    /*width: 224px;*/
    box-shadow: 0 -0.5rem 1rem rgba(0 0 0 / 0.15);
}

.cards {
    margin-top: 4rem;

    h3 {
        color: #c57938;
    }
}

.time-cards {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 4rem;

    p {
        font-size: 1.25rem;
        font-weight: 900;
        text-align: center;
        color: #c57938;
    }
    h3 {
        text-align: center;
        color: #c57938;
    }
}
.memory-cards-main {
    max-width: 244px;
    margin: 4rem auto auto;
}

.memory-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    img {
        max-width: 244px;
    }
}

.birthday-letter {
    margin-top: 2rem;
}


.card:nth-child(1) { top: 1rem; transform: rotate(1deg); }
.card:nth-child(2) { top: 2rem; transform: rotate(2deg); }
.card:nth-child(3) { top: 3rem; transform: rotate(3deg); }

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.shake {
    animation: shake 0.4s;
}

form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    height: 100%;

    color: #c57938;
    font-size: 2rem;
    font-weight: bold;

    .dateInput {
        width: 224px;
        height: 50px;
        border-radius: 5px;
        border-color: #c57938;
        color: #c57938;
        background: transparent;
        padding: 5px;
    }

    .submitButton {
        width: 245px;
        height: 50px;
        border-radius: 50px;
        background: #c57938;
        color: #ffe596;
        outline: white;
        font-weight: bold;
        font-size: 1.25rem;
        border: none;
    }
}