

/* Digit Code */

#contMain {
    z-index: 0;
    position: relative;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-50px);
}

#contMain.inactive {
    display: none;
}

#contMain #senseiLogo {
    height: 400px;
}

#contMain input {
    width: 400px;
    padding: 5px;
    font-family: 'PressStart2P';
    font-size: 50px;
    text-align: center;
    background-color: #000000a1;
    color: #d3dc21;
    border-radius: 3px;
}

#contMain input:focus {
    outline: none;
}

#contMain p {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
    color: #ffffff;
}


/* Winner Animation */

#contWinnerAnimation.inactive {
    display: none;
}

#contWinnerAnimation.active {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

#contWinnerAnimation.active .letters {
    position: absolute;
    width: 100%;
    font-weight: 900;
    font-size: 4.5em;
    text-align: center;
    opacity: 0;
    color: #fff;
}


/* Gift */

#btnGift {
    width: auto;
    height: auto;
    background: none;
    cursor: pointer;
}

#btnGift.inactive {
    display: none;
}

#btnGift img {
    width: 25px;
    height: 25px;
    pointer-events: none;
}

#btnGift p {
    font-family: 'Courier New', Courier, monospace;
    font-size: 4px;
    color: #ffffff;
}


/* Card */

.card.inactive {
    display: none;
}

.card {
    z-index: 1;
    padding: 20px 50px 10px 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, .2); 
    border-radius: 5px;
    background: inherit;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    color: #fff;
}

.card:before {
    z-index: -1;
    content: "";
    position: absolute;
    background: inherit;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 2000px rgba(255, 255, 255, .5);
    filter: blur(10px);
    margin: -20px;
}

.card img {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
}

.card .category {
    max-width: 350px;
    margin-bottom: 5px;
    font-size: 30px;
    font-weight: 900;
    word-break: break-word;
    text-align: center;
}

.card .title {
    max-width: 350px;
    word-break: break-word;
}

.card .letter {
    margin-top: 50px;
    font-family: 'PressStart2P';
    font-size: 100px;
    color: #d3dc21;
}

.card .date {
    font-size: 10px;
}


/* Loader */

.contLoader.inactive {
    display: none;
} 

.contLoader {
    z-index: 3;
    position: absolute;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, .7);
}

.contLoader p {
    margin-top: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    text-align: center;
    color: #fff;
}

.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
}
.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}



@media only screen and (max-width: 600px) {

    #contMain #senseiLogo {
        height: 350px;
    }

}

@media only screen and (max-width: 500px) {

    #contMain #senseiLogo {
        height: 270px;
    }

    #contMain input {
        width: 325px;
        font-size: 40px;
    }

    #contMain p {
        font-size: 10px;
    }

    #contWinnerAnimation.active .letters {
        font-size: 3.5em;
    }

    #btnGift img {
        width: 20px;
        height: 20px;
    }

    #btnGift p {
        font-size: 3px;
    }

    .card img {
        width: 120px;
        height: 120px;
    }

    .card .category {
        max-width: 225px;
        font-size: 25px;
    }

    .card .title {
        max-width: 225px;
        font-size: 15px;
    }

    .card .letter {
        margin-top: 40px;
        font-size: 90px;
    }

    .card .date {
        font-size: 10px;
    }

}

@media only screen and (max-width: 360px) {

    #contMain #senseiLogo {
        width: 100%;
        height: 100%;
    }

}

@media only screen and (max-width: 300px) {

    #contMain input {
        width: 230px;
        height: 50px;
        font-size: 30px;
    }

    #contMain p {
        font-size: 10px;
    }

    #contWinnerAnimation.active .letters {
        font-size: 3em;
    }

    #btnGift img {
        width: 15px;
        height: 15px;
    }

    #btnGift p {
        font-size: 2px;
    }

    .card {
        padding: 20px 30px 10px 30px;
    }

    .card img {
        width: 100px;
        height: 100px;
    }

    .card .category {
        max-width: 200px;
        font-size: 20px;
    }

    .card .title {
        max-width: 200px;
        font-size: 12px;
    }

    .card .letter {
        margin-top: 35px;
        font-size: 80px;
    }

    .card .date {
        font-size: 10px;
    }

}