body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fce4ec;
    color: #4a4a4a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
}

header h1 {
    color: #e91e63;
    font-size: 2.5em;
    margin-bottom: 50px;
    padding: 10px 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#envelope-container {
    perspective: 1000px;
    margin-bottom: 50px;
    cursor: pointer;
}

#envelope {
    width: 250px;
    height: 150px;
    background-color: #ffd1dc;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 1s ease-in-out;
}

.envelope-flap {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 75px 125px 0 125px;
    border-color: #ff99aa transparent transparent transparent;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top;
    transition: transform 0.5s;
}

.envelope-body {
    width: 100%;
    height: 100%;
    background-color: #ffd1dc;
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.envelope-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #e91e63;
    font-weight: bold;
    font-size: 1.1em;
}

.open .envelope-flap {
    transform: rotateX(180deg);
}

#gift-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    max-width: 80%;
}

.hidden {
    display: none;
}

.message-card {
    border: 3px dashed #ff99aa;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
}

.message-card h2 {
    color: #e91e63;
    margin-top: 0;
}

.message-card p {
    font-style: italic;
    font-size: 1.1em;
    line-height: 1.5;
}

.kokina-section .kokina-emoji {
    font-size: 4em;
    line-height: 1;
    margin: 10px 0;
}

.kokina-section h3 {
    color: #c2185b;
    font-size: 1.5em;
}


.kokina-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.kokina {
    position: relative;
    width: 100px;
    height: 120px; 
    margin-bottom: 20px;
    transform: scale(1.2);
}

.stem {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 60px;
    background-color: #388e3c;
    border-radius: 2px;
}

.leaves {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 40px;
}

.leaf {
    position: absolute;
    width: 40px;
    height: 15px;
    background-color: #4caf50;
    border-radius: 0 50% 0 50%;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.leaf1 {
    top: 5px;
    left: 0;
    transform: rotate(30deg);
}

.leaf2 {
    top: 5px;
    right: 0;
    transform: rotate(-30deg) scaleX(-1);
}

.berries {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
}

.berry {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #f44336;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    border: 1px solid #c62828;
}

.berry1 { top: 0; left: 18px; }
.berry2 { top: 15px; left: 0; }
.berry3 { top: 15px; right: 0; }
.berry4 { top: 30px; left: 18px; }