@import url('https://fonts.googleapis.com/css2?family=Berkshire+Swash&family=Lilita+One&family=League+Script&family=Rajdhani:wght@400;700&display=swap');

body {
    background-color: #4e4d4a;
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 550px;
    margin: 0; /* Reset default body margin */
    overflow: hidden; /* To potentially hide overflow from animations */
}

h2{
    color:#FFE5D9;
    text-align: center;
    font-size: 5rem;
    
}
.wish {
    text-align: center;
    margin: 0;
    padding: 25px;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    font-size: 40px;
    font-weight: bold;
    color: #5a6b65;
    background-color: #FFE5D9;
}

.container {
    margin: 0 auto 50px;
    width: 400px;
    height: 400px; /* Adjusted height to match wheel */
    position: relative; /* For positioning the spin button */

}

.arrow {
    width: 90px;
    height: 20px;
    background-color: #FFE5D9;
    margin: auto;
    margin-bottom: 30px;
    position: relative;
}

.arrow::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 30px 55px 0;
    border-color: #FFE5D9 transparent;
    position: absolute;
    top: 20px;
    left: -10px;
}

.wheel {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    margin: 0 auto; /* Center the wheel */
}

.inner-wheel {
    border-radius: 50%;
    width: 400px;
    display: block;
    height: 400px;
    position: relative;
    overflow: hidden;
    transition: transform 1.2s ease-out;
    transform: rotate(0deg);
}

.spin-button {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: #373B44;
    border-radius: 50%;
    top: calc(50% - 3px);
    left: calc(50% - 30px);
    z-index: 10; /* Increased z-index */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: sans-serif; /* Basic font for 'SPIN' */
    font-size: 14px;
    font-weight: bold;
}

.section {
    position: absolute;
    text-align: center;
    z-index: 1; /* Adjusted z-index */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 200px 116px 0;
    left: 84px;
    top: 0px;
    opacity: 1;
    transform-origin: 116px 200px;
    border-color: #5a6b65 transparent;
}

.section:nth-child(2) {
    transform: rotate(60deg);
    border-color: #c9b7b0 transparent;
}

.section:nth-child(3) {
    transform: rotate(120deg);
    border-color: #5a6b65 transparent;
}

.section:nth-child(4) {
    transform: rotate(180deg);
    border-color: #d5a5a0 transparent;
}

.section:nth-child(5) {
    transform: rotate(240deg);
    border-color: #c9b1b2 transparent;
}

.section:nth-child(6) {
    transform: rotate(300deg);
    border-color: #BD9391 transparent;
}

.section span {
    position: relative;
    z-index: 2; /* Increased z-index */
    display: inline-block;
    text-align: center;
    margin-left: -67px;
    top: -185px;
    white-space: nowrap; /* Prevent text wrapping */
}

.b-day {
    font-family: 'Berkshire Swash', cursive;
    text-shadow: 1px 1px rgba(50, 50, 50, 0.5);
    color: rgba(0, 0, 0, 0.7);
    font-size: 31px;
    
}

.vertical {
    font-family: 'Rajdhani', sans-serif;
    top: -150px;
    text-transform: uppercase;
    text-shadow: 3px 1px rgba(0, 0, 0, 0.4);
    font-size: 55px;
    margin-left: -18px;
    transform: rotate(-1.5deg);
    font-weight: bold;
    position: absolute; /* Needed for before/after positioning */
}

.vertical::before,
.vertical::after {
    position: absolute;
    left: 0;
}

.vertical::before {
    top: -40px;
}

.vertical::after {
    top: 40px;
}

.joy:before {
    content: 'J';
}

.joy:after {
    content: 'Y';
}

.fun:before {
    content: 'F';
}

.fun:after {
    content: 'N';
}

.fa {
    font-size: 70px;
    margin-left: -35px;
    top: -155px;
    position: absolute; /* Needed for positioning */
}

.fa-heart {
    color: #d5a5a0;
    cursor: pointer;
}

.fa-birthday-cake {
    color: #5a6b65;
}

.lots {
       position: absolute;
       
       font-family: 'League Script', cursive;
    font-size: 2rem;

    margin-top: 10px;
    padding-left: 25px;


}

.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(0.9);
    }
}

.adventure {
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    margin-left: -63px;
    position: absolute; /* Needed for after positioning */
    top: -185px; /* Adjust to align with other spans */
}

.adventure::after {
    content: '_';
    position: absolute;
    bottom: -20px;
    font-size: 50px;
    left: 50px;
}

.overlay {
    display: none; /* Initially hidden */
    width: 100%;
    height: 100%;
    background-color: #b7b6a5;
    z-index: 9999999999;
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    overflow: hidden;
}

.overlay h1 {
    color: #D5AD6D;
    margin-top: 150px;
    font-size: 70px;
    background: -webkit-linear-gradient(transparent, transparent), -webkit-linear-gradient(top, rgba(213, 173, 109, 1) 0%, rgba(213, 173, 109, 1) 5%, rgba(226, 186, 120, 1) 15%, rgba(163, 126, 67, 1) 25%, rgba(145, 112, 59, 1) 61%, rgba(213, 173, 109, 1) 100%);
    background: linear-gradient(transparent, transparent), -o-linear-gradient(top, rgba(213, 173, 109, 1) 0%, rgba(213, 173, 109, 1) 5%, rgba(226, 186, 120, 1) 15%, rgba(163, 126, 67, 1) 25%, rgba(145, 112, 59, 1) 61%, rgba(213, 173, 109, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Lilita One', cursive;
    white-space: nowrap; /* Prevent text wrapping */
}

.cherry {
    width: 55px;
    height: 50px;
    background-color: #d65456;
    border-radius: 45% 45% 50% 50%;
    box-shadow: 65px 2px 0px 1.5px #d75456;
    position: relative;
    margin: 50px auto 0; /* Center cherries individually */
}

.cherry::before {
    content: '';
    width: 17px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid;
    border-color: transparent #26312b transparent transparent;
    position: absolute;
    bottom: 38px;
    left: 25px;
    z-index: -1;
    transform: rotate(20deg);
}

.cherry::after {
    content: '';
    width: 17px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid transparent;
    border-left-color: #26312b;
    position: absolute;
    bottom: 38px;
    right: -40px;
    z-index: -1;
    transform: rotate(-20deg);
}

.cherry .leaf {
    position: absolute;
    top: -10px; /* Adjusted */
    left: 10px; /* Adjusted */
    background-color: #26312b;
    width: 30px;
    height: 50px;
    border-radius: 100% 0 / 50px 0px;
    transform: rotate(240deg);
    transform-origin: top left; /* Added transform origin */
}

.cherry-container-1 {
    position: absolute;
    top: 30px;
    left: 50px;
    transform: rotate(-30deg);
}

.cherry-container-2 {
    position: absolute;
    top: 30px;
    right: 100px;
    transform: rotate(30deg);
}

.cherry-container-3 {
    position: absolute;
    top: 250px;
    left: 200px;
    transform: rotate(-50deg);
}

.cherry-container-4 {
    position: absolute;
    top: 220px;
    right: 300px;
    transform: rotate(20deg);
}

.cherry-container-5 {
    position: absolute;
    top: -35px;
    right: 400px;
    transform: rotate(20deg);
}

.cherry-container-6 {
    position: absolute;
    top: 370px;
    left: 400px;
    transform: rotate(20deg);
}

.cherry-container-7 {
    position: absolute;
    top: -20px;
    left: 340px;
    transform: rotate(-5deg);
}

.cherry-container-8 {
  position: absolute;
  bottom: -20px;
  right: 400px;
  transform: rotate(-5deg);
}