@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

*{
    box-sizing: border-box;
    user-select: none;
}

html {
    background-image: url(https://www.kabum.com.br/hotsite/mega-maio/img/bg-topo.webp), linear-gradient(90deg, #00007f 0, #0041e4 50%, #00007f 100%);
    background-position: center center, center center;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    position: relative;
    height: 100dvh;
    overflow: hidden;

}



body {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    color: #212121;
    box-sizing: border-box;
    overflow-x: hidden;
}


body h1,
body h2,
body h3,
body h4 {
    font-family: "Poppins", sans-serif;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
}

.flex {
    clear: both;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

.center {
    justify-content: center;
}

.between {
    justify-content: space-between;
}


.flex {
    flex-wrap: wrap;
    gap: 30px;
}

main{
    padding:10px 5px;
    text-align: center;
    position: relative;
    max-height: 100dvh;
}

header{
    max-width: 500px;
    text-align: center;
    margin: 0 auto;
}

#portacanvas{
    position: relative;
    margin: 0 auto;
    text-align: center;
    max-width: 500px;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    overflow: hidden;
    z-index: 4;
    max-height: calc(100dvh - 20px); 
}

canvas{
    position: absolute;
    left: 0;
    top: 0;
}

#botao{
    position: absolute;
    left: 0;
    top: 0;
    aspect-ratio: 6 / 1;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

#boxamarelo{
    position: absolute;
    z-index: 10;
    top: 35%;
    left: 10%;
    width: 80%;
    opacity: 0;
    display: none;
    transition: all 0.3s;
}

#boxamarelo #box{
    background: linear-gradient(180deg,rgba(254, 239, 85, 1) 0%, rgba(244, 120, 38, 1) 100%);
    border-radius: 20px;
    padding: 60px 20px 20px;
    margin-bottom: 10px;
    position: relative;
}

#boxamarelo #box::before{
    content: "";
    width: 90px;
    height: 90px;
    background: url(../img/bolo.png) center center no-repeat;
    background-size: contain;
    display: block;
    position: absolute;
    top: -45px;
    left: 50%;
    translate: -50% 0;
}

#boxamarelo #box p{
    font-weight: 600;
    color: #000;
}


#portacanvas p{
    line-height: normal;
}

#portacanvas p#cupom{
    color: #3d0000;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: normal;
    text-align: center;
    transition: all 0.3s;
    margin-bottom: 10px;
}

#portacanvas p#textolegal{
    color: #fff;
    font-size: 0.7rem;
    padding: 0 10px;
    text-align: center;
    width: 100%;
    transition: all 0.3s;
    user-select: none;
    word-break: break-word;
    
}

#cta{
    background: #00139d;
    font-size: 1.2rem;
    color: #fff;
    padding: 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s;
    display: block;
}

#cta:hover{
    background: #3d0000;
    color: #fff;
}

#notificacao {
    text-align: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fc6b0f;
    border: dashed 2px #333;
    color: #fff;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 11;
}

#notificacao p {
    font-weight: 600;
}

#notificacao.mostrar {
    opacity: 1;
}

#loading{
    position: absolute;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fc6b0f;
    gap: 10px;
}

#loading p{
    font-weight: 600;
}


.balao {
    position: absolute;
    z-index: 2;
    transition: all .3s
}

.float {
    animation: flutua 4s ease-in-out infinite
}

.balao:hover {
    scale: 1.1
}

.blur {
    filter: blur(5px)
}

#balao01 {
    top: 20%;
    left: 5%;
    width: 5%;
    max-width: 120px;
    animation-delay: .2s
}

#balao02 {
    top: 20%;
    right: 5%;
    width: 5%;
    max-width: 120px
}

#balao03 {
    bottom: 20%;
    right: 5%;
    width: 5%;
    max-width: 120px;
    animation-delay: .4s
}

#balao04 {
    bottom: 20%;
    right: 15%;
    width: 3%;
    max-width: 80px;
    z-index: 1;
    animation-delay: .2s
}

#balao05 {
    bottom: 20%;
    left: 15%;
    width: 3%;
    max-width: 80px;
    z-index: 1;
    animation-delay: .3s
}

#balao06 {
    top: 20%;
    right: 15%;
    width: 3%;
    max-width: 80px;
    z-index: 1;
    animation-delay: .1s
}

#balao07 {
    top: 30%;
    left: 15%;
    width: 3%;
    max-width: 80px;
    z-index: 1;
    animation-delay: .2s
}

#balao08 {
    bottom: 25%;
    right: 20%;
    width: 3%;
    max-width: 80px;
    z-index: 1
}

#balao09 {
    bottom: 40%;
    left: 5%;
    width: 3%;
    max-width: 80px;
    z-index: 1;
    animation-delay: .5s
}

#balao10 {
    top: 20%;
    left: 50%;
    width: 3%;
    max-width: 80px;
    z-index: 1;
    animation-delay: .7s
}

#balao11 {
    top: 50%;
    left: 46%;
    width: 5%;
    max-width: 70px;
    animation-delay: .2s;
    z-index: 4;
    animation-delay: .5s
}

#balao12 {
    top: 50%;
    left: 50%;
    width: 5%;
    max-width: 70px;
    animation-delay: .2s;
    z-index: 4;
    animation-delay: .2s
}

#balao13 {
    top: 60%;
    left: 49%;
    width: 5%;
    max-width: 70px;
    animation-delay: .2s;
    z-index: 4
}

#balao14 {
    top: 20%;
    left: 5%;
    width: 5%;
    max-width: 120px;
    animation-delay: .2s
}

#balao15 {
    bottom: 20%;
    right: 5%;
    width: 5%;
    max-width: 120px;
    animation-delay: .5s
}

@keyframes flutua {
    0% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}





@media screen and (max-width: 600px) {


    #portacanvas{
        border-radius: 0;
    }

    main{
        padding: 0;
    }

    .balao {
        display: none
    }

    #portacanvas p#cupom{
        font-size: 1.2rem;
    }

    #cta{
        font-size: 1rem;
    }

    
#boxamarelo{
    top: 20%;
}
}

