@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #000;
    /* background-image: linear-gradient(to right, #333 1px, transparent 1px),
    linear-gradient(to bottom, #333 1px, transparent 1px); */
    /* background-size: 40px 40px; */
    cursor: none;
}

/* ========= LIGHT ========= */
.turnonlightmode {
    height: 100vh;
    width: 100%;
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

.turnofflightmode {
    display: block;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.turnofflightmode a {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: #fcff47;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    transition: 0.5s;
    margin-top: 40px;
    letter-spacing: 4px;
}

.turnofflightmode a:hover {
    background: #fcff47;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px #fcff47, 0 0 25px #fcff47, 0 0 50px #fcff47, 0 0 100px #fcff47;
}

.turnofflightmode a span {
    position: absolute;
    display: block;
}

.turnofflightmode a span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fcff47);
    animation: btn-anim1 1s linear infinite;
}

@keyframes btn-anim1 {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.turnofflightmode a span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #fcff47);
    animation: btn-anim2 1s linear infinite;
    animation-delay: 0.25s;
}

@keyframes btn-anim2 {
    0% {
        top: -100%;
    }

    50%,
    100% {
        top: 100%;
    }
}

.turnofflightmode a span:nth-child(3) {
    bottom: 0;
    right: 100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #fcff47);
    animation: btn-anim3 1s linear infinite;
    animation-delay: 0.5s;
}

@keyframes btn-anim3 {
    0% {
        right: -100%;
    }

    50%,
    100% {
        right: 100%;
    }
}

.turnofflightmode a span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #fcff47);
    animation: btn-anim4 1s linear infinite;
    animation-delay: 0.75s;
}

@keyframes btn-anim4 {
    0% {
        bottom: -100%;
    }

    50%,
    100% {
        bottom: 100%;
    }
}

/* ========== PRESENT ========= */
.gift-container {
    /* position: absolute;
    top: 60%; left: 45%; */
    /* height: 100vh;
    width: 100%; */
    transition: all 1.5s;
}

.gift-box {
    /* position: relative; */
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift {
    position: absolute;
    width: 150px;
    height: 100px;
    background-color: #2efffc;
}

.gift::before {
    content: '';
    position: absolute;
    width: 25px;
    height: 100px;
    background-color: #edff48;
    left: 62px;
}

.gift::after {
    content: '';
    position: absolute;
    box-shadow: 0 10px rgba(0, 0, 0, .3);
    width: 150px;
    height: 100px;
}

#click {
    display: none;
}

.click {
    position: absolute;
    background-color: #2efffc;
    width: 170px;
    height: 40px;
    top: -40px;
    left: -10px;
    transform-origin: bottom left;
    transition: .3s;
    cursor: none;
}

.click::before {
    position: absolute;
    content: '';
    width: 25px;
    height: 40px;
    background-color: #edff48;
}

.click::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 0;
    border-bottom: 30px solid #edff48;
    border-top: 30px solid #edff48;
    border-left: 0 solid transparent;
    border-right: 30px solid transparent;
    transform: rotate(-90deg);
    left: 65px;
    top: -47px;
}

#click:checked+.click {
    transform: rotate(-110deg) scale(0.85);
}

.card-container {
    /* position: absolute;
    top: 12%; left: 20%; */
    /* height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center; */
    scale: 0;
    transition: scale .5s;
}

/*
.card-box{
    position: relative;
}
.card-box::before{
    content: '';
    position: absolute;
    width: 170px;
    height: 20px;
    background-color: rgba(0, 0, 0, .4);
    border-radius: 50%;
    top: 90px;
    left: -10px;
}
.card{
    width: 350px;
    height: 450px;
    position: absolute;
    transition: 2s;
    transform-style: preserve-3d;
}
.card:hover{
    transform: rotateY(180deg);
}

.outside, .inside{
    width: 100%;
    height: 100%;
    border-radius: 20px;
    text-align: center;
    padding: 1.5rem;
}

.outside{
    background: linear-gradient(180deg, #e474fe, #a377fe, #8474ff, #74afff, #6dd7fe);
    box-shadow: inset 0px 5px 10px rgba(255, 255, 255, 0.729);
    position: absolute;
    backface-visibility: hidden;
}

.outside h1{
    font-size: 2rem;
    font-weight: bold;
    color: #0476af;
    margin-bottom: 30px;
}

.outside h3{
    color: #2d4374;
}
.inside{
    background-color: #fff;
    box-shadow: inset 0px 5px 10px rgba(0, 0, 0, 0.5);
}

.inside img{
    width: 100%;
    height: 100%;
} */

.card-box {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    width: 640px;
    height: 400px;
    /* position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0; */
    -webkit-perspective: 1200px;
    perspective: 1200px;
    transition: 1s;
}

@media (max-width:460px) {
    .card {
        width: 350px;
        height: 350px;
        /* position: absolute;
        margin: auto;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0; */
        -webkit-perspective: 1200px;
        perspective: 1200px;
        transition: 1s;
    }
}

.card:hover {
    transform: rotate(-5deg);
}

.card:hover .outside {
    transform: rotateY(-130deg);
}

.outside,
.inside {
    height: 100%;
    width: 50%;
    position: absolute;
    left: 50.1%;
}

.inside {
    background: linear-gradient(to right, #e7e7e7, #ffffff 30%);
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    left: 50%;
}

.outside {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    z-index: 1;
    transform-origin: left;
    transition: 2s;
    cursor: none;
}

.front,
.back {
    height: 100%;
    width: 100%;
    position: absolute;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: rotateX(0deg);
}

.front {
    background-color: #ffffff;
}

.back {
    transform: rotateY(180deg);
    background: linear-gradient(to left, #e7e7e7, #ffffff 30%);
}

.cake {
    width: 100%;
    position: absolute;
    bottom: 30px;
}

.top-layer,
.middle-layer,
.bottom-layer {
    height: 80px;
    width: 240px;
    background-repeat: repeat;
    background-size: 60px 100px;
    background-position: 28px 0;
    background-image: linear-gradient(transparent 50px,
            #fedbab 50px,
            #fedbab 60px,
            transparent 60px),
        radial-gradient(circle at 30px 5px, #994c10 30px, #fcbf29 31px);
    border-radius: 10px 10px 0 0;
    position: relative;
    margin: auto;
}

.middle-layer {
    transform: scale(0.85);
    top: 6px;
}

.top-layer {
    transform: scale(0.7);
    top: 26px;
}

.candle {
    height: 45px;
    width: 15px;
    background: repeating-linear-gradient(45deg,
            #fd3018 0,
            #fd3018 5px,
            #ffa89e 5px,
            #ffa89e 10px);
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    bottom: 202px;
}

.candle:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    background-color: #ffa500;
    border-radius: 0 50% 50% 50%;
    bottom: 48px;
    transform: rotate(45deg);
    left: -1px;
}

@media (max-width:460px) {

    .top-layer,
    .middle-layer,
    .bottom-layer {
        height: 60px;
        width: 131px;
    }

    .candle {
        height: 25px;
        width: 8px;
        bottom: 145px;
    }

    .candle:before {
        height: 10px;
        width: 10px;
        bottom: 30px;
    }
}

.outside p {
    font-size: 23px;
    text-transform: uppercase;
    margin-top: 30px;
    text-align: center;
    letter-spacing: 6px;
    color: #000046;
}

@media (max-width:460px){
    .outside p {
        font-size: 20px;
        margin-top: 15px;
        letter-spacing: 5px;
    }

    .inside p {
        font-size: 13px;
    }
}

.inside .img img {
    width: 100%;
    height: 100%;
}

/* ========= HPBD ========= */
.content-container {
    /* position: absolute;
    top: -30%; left: 50%; */
    height: 100vh;
    width: 100%;
}

.content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 50px;
}

.content h2 {
    position: absolute;
    /* transform: translate(-50%, -50%); */
    font-size: 5em;
}

@media (max-width:460px) {
    .content h2 {
        font-size: 2em;
    }
}

.content h2:nth-child(1) {
    color: transparent;
    -webkit-text-stroke: 2px #eafe38;
}

.content h2:nth-child(2) {
    color: #eafe38;
    animation: contentanimate 4s ease-in-out infinite;
}

@keyframes contentanimate {

    0%,
    100% {
        clip-path: polygon(0% 45%, 15% 44%, 32% 50%, 54% 60%, 70% 61%, 84% 59%, 100% 52%, 100% 100%, 0% 100%);
    }

    50% {
        clip-path: polygon(0% 60%, 16% 65%, 34% 66%, 51% 62%, 67% 50%, 84% 45%, 100% 46%, 100% 100%, 0% 100%);
    }
}

/* ========= BALLOON ========= */
.balloon-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.balloon {
    height: 60px;
    width: 55px;
    background-color: crimson;
    position: absolute;
    top: 40%;
    left: 10%;
    border-radius: 50%;
    animation: move 2s ease-in infinite;
}

.balloon::before {
    content: "";
    height: 60px;
    width: 6px;
    position: absolute;
    background-color: white;
    top: 93%;
    left: 40%;
}

@keyframes move {
    0% {
        top: 100%;
    }

    100% {
        top: 0%;
    }
}

.balloon:nth-child(2) {
    left: 20%;
    top: 40%;
    background-color: yellow;
    animation-duration: 3s;
}

.balloon:nth-child(2)::after {
    position: absolute;
    content: '';
    border-bottom: 20px solid yellow;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    top: 80%;
    left: 29%;
}

.balloon:nth-child(3) {
    left: 30%;
    top: 40%;
    background-color: lightpink;
    animation-duration: 4s;
}

.balloon:nth-child(3)::after {
    position: absolute;
    content: '';
    border-bottom: 20px solid lightpink;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    top: 80%;
    left: 29%;
}

.balloon:nth-child(4) {
    left: 40%;
    top: 40%;
    background-color: crimson;
    animation-duration: 5s;
}

.balloon:nth-child(4)::after {
    position: absolute;
    content: '';
    border-bottom: 20px solid crimson;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    top: 80%;
    left: 29%;
}

.balloon:nth-child(5) {
    left: 50%;
    top: 40%;
    background-color: gray;
    animation-duration: 6s;
}

.balloon:nth-child(5)::after {
    position: absolute;
    content: '';
    border-bottom: 20px solid gray;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    top: 80%;
    left: 29%;
}

.balloon:nth-child(6) {
    left: 60%;
    top: 40%;
    background-color: orange;
    animation-duration: 2s;
}

.balloon:nth-child(6)::after {
    position: absolute;
    content: '';
    border-bottom: 20px solid orange;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    top: 80%;
    left: 29%;
}

.balloon:nth-child(7) {
    left: 70%;
    top: 40%;
    background-color: yellow;
    animation-duration: 7s;
}

.balloon:nth-child(7)::after {
    position: absolute;
    content: '';
    border-bottom: 20px solid yellow;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    top: 80%;
    left: 29%;
}

.balloon:nth-child(8) {
    left: 80%;
    top: 40%;
    background-color: blue;
    animation-duration: 3s;
}

.balloon:nth-child(8)::after {
    position: absolute;
    content: '';
    border-bottom: 20px solid blue;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    top: 80%;
    left: 29%;
}

.balloon:nth-child(9) {
    left: 90%;
    top: 40%;
    background-color: crimson;
    animation-duration: 4s;
}

.balloon:nth-child(9)::after {
    position: absolute;
    content: '';
    border-bottom: 20px solid crimson;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    top: 80%;
    left: 29%;
}

/* ========= CONFETTI ======== */
section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

span {
    position: absolute;
    pointer-events: none;
    background: #fff;
    animation: animate 5s linear infinite;
}

@keyframes animate {
    0% {
        transform: scale(0) translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: scale(1) translateY(-500%) rotate(360deg);
        opacity: 0;
    }
}

/* ========== CURSOR ========== */
#cursor {
    z-index: 999;
    position: fixed;
    width: 25px;
    height: 25px;
    border-top: 5px solid rgb(228, 255, 106);
    border-left: 5px solid rgb(228, 255, 106);
    transform-origin: top;
    transform: translate(-1px, 5px) rotate(15deg) scale(0);
    transition: transform 0.1s;
    pointer-events: none;
    filter: drop-shadow(0 0 5px rgb(228, 255, 106)) drop-shadow(0 0 15px rgb(228, 255, 106)) drop-shadow(0 0 35px rgb(228, 255, 106));
    /* hue-rotate(60deg); */
}

@media (max-width:460px) {
    body {
        cursor: auto;
        overflow: scroll;
    }

    #cursor {
        display: none;
    }
}

#cursor::before {
    content: '';
    position: absolute;
    width: 5px;
    /* height: 20px; */
    background: rgb(228, 255, 106);
    transform-origin: top;
    transform: rotate(315deg);
}

body:hover #cursor {
    transform: translate(-1px, 5px) rotate(15deg) scale(1);
}

.element {
    position: absolute;
    transform: translate(-50%, -50%);
    color: rgb(228, 255, 106);
    pointer-events: none;
    width: 10px;
    height: 10px;
    transition: 1s;
    font-size: 2em;
    filter: drop-shadow(0 0 5px rgb(228, 255, 106)) drop-shadow(0 0 25px rgb(228, 255, 106));
    /* hue-rotate(60deg); */
}
