body {
    background-color: #6e6e6e;
}

main {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-wrap: wrap;
}

main .box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% / 3);
    height: calc(100% / 3);
}
button{
    cursor: pointer;
}
button.red {
    position: relative;
    color: #fff;
    font-family: sans-serif;
    outline: none;
    /*   padding: 0; */
    font-weight: 600;
    font-size: 24px;
    letter-spacing: 40%;
    width: 300px;
    height: 60px;
    border: none;
    background: transparent;


}

.red .shadow {
    position: absolute;
    background-color: #363636;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    transform: translatey(5px);
    transition: .4s cubic-bezier(.3, .7, .4, 1)
}

.red .front {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 15px;
    background: linear-gradient(90deg, rgba(62, 5, 5, 1) 0%, rgba(138, 0, 0, 1) 15%, rgba(138, 0, 0, 1) 85%, rgba(62, 5, 5, 1) 100%);
}

.red .text {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #cf0a0a;
    border-radius: 15px;
    transform: translatey(-5px);
    transition: .4s cubic-bezier(.3, .7, .4, 1)
}

.red:hover .text {
    filter: brightness(110%);
    transform: translatey(-10px);
    transition: .4s cubic-bezier(.3, .7, .4, 2)
}

.red:hover .shadow {
    transform: translatey(10px);
    transition: .4s cubic-bezier(.3, .7, .4, 2)
}

.red:focus .shadow {
    transform: translatey(2px);
}

.red:focus .text {
    filter: brightness(95%);
    transform: translatey(-3px);
}

.gradient {
    color: #fff;
    width: 150px;
    height: 60px;
    border-radius: 30px;
    outline: none;
    border: none;
    background: linear-gradient(0deg, rgba(15, 4, 106, 1) 0%, rgba(56, 114, 214, 1) 40%, rgba(255, 135, 0, 1) 60%, rgba(240, 213, 81, 1) 80%);
    background-size: 300% 300%;
    background-position: 50% 100%;
    transition: .3s;

}

.gradient:hover {
    color: #555;
    background-position: 50% 0%;
    transition: .3s;
}

.pop-shadow {
    position: relative;
    width: 300px;
    height: 100px;
    background-color: transparent;
    outline: none;
    border: none;
}

.pop-shadow .text {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid;
    border-radius: 10px;
    background-color: #edcc9d;
    box-shadow: 40px 30px 0px;
    transition: .3s;
}

.pop-shadow:hover .text {
    box-shadow: 0px 0px 0px;
    transform: translateX(10%) translateY(10%);
    transition: .3s;
}

.card {
    padding: 0;
    width: 150px;
    height: 60px;
    background-color: transparent;
    border: none;
    position: relative;
    font-size: 16px;
}

.card .back {
    position: absolute;
    content: "";
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: #fff;
    /*    z-index: -1;*/
    transform: rotateZ(-3deg) translate(3px, -5px);
    transform-origin: 0% 0%;
    transition: .3s;
}

.card .text {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #426580;
    color: #fff;
}

.card:hover {
    transform: rotateZ(-8deg);
    transition: .3s;
}

.card:hover .back {
    transform: rotateZ(3deg) translate(3px, -5px);
    z-index: 1;
}

.card:hover .text {
    transform: rotateZ(-8deg) translate(3px, -5px);
}

.card:hover:before {
    transform: rotateZ(-10deg) translate(3px, -5px);
    transition: .3s;
}



.sketch-shadow {
    position: relative;
    width: 200px;
    height: 50;
    background-color: transparent;
    border: 2px solid;
    /*    box-shadow: 10px 10px 0 */
}

.shadow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 10px;
    left: 10px;
    background-color: #fce12d;
    z-index: -1;
    transition: .2s
}

.sketch-shadow:hover .shadow {
    top: 0px;
    left: 0px;
    transition: .1s;
}

button.sketch {
    position: relative;
    background-color: transparent;
    border: none;
    padding: 0;
    transform: rotateZ(-5deg)
}

.sketch .text {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 60px;
    font-size: 18px;
    background-color: #3b6cf5;
}

.sketch .border {
    position: absolute;
    border: 1px solid;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: translate(8px, -6px);
}

.sketch:hover .border {
    transform: translate(4px, -3px);
}

.b3d {
    background-color: transparent;
    border: none;
    width: 200px;
    height: 80px;
    perspective: 300px;
    position: relative;
}

.b3d .brick {
    color: #fff;
    font-size: 24px;
    position: absolute;
    left: 5px;
    top: 5px;
    right: 5px;
    bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .2s;

    background: linear-gradient(90deg, rgba(113, 64, 11, 1) 0%, rgba(222, 153, 78, 1) 1%, rgba(177, 117, 53, 1) 10%, rgba(197, 132, 63, 1) 15%, rgba(113, 64, 11, 1) 16%, rgba(178, 117, 51, 1) 35%, rgba(113, 64, 11, 1) 36%, rgba(165, 105, 43, 1) 38%, rgba(160, 101, 40, 1) 59%, rgba(113, 64, 11, 1) 61%, rgba(162, 103, 41, 1) 63%, rgba(145, 89, 31, 1) 79%, rgba(113, 64, 11, 1) 80%, rgba(197, 132, 63, 1) 84%, rgba(187, 124, 57, 1) 94%, rgba(118, 68, 15, 1) 95%, rgba(165, 105, 43, 1) 100%);
    transform: rotateX(20deg);
    transform-origin: top center;
    animation: tilt .6s ease-in-out infinite alternate;
    /*    animation-play-state: paused;*/
    animation-duration: 2s;
}

.b3d:hover .brick {
    transform: rotateX(-15deg);
    animation-duration: .6s;
    transition: .2s;

}

@keyframes tilt {
    0% {
        transform: rotateX(15deg);
    }

    100% {
        transform: rotateX(-15deg);
    }
}

.cover {
    width: 200px;
    height: 50px;
    border: none;
    background-color: transparent;
    transition: .6s;
    position: relative;
    /*    overflow: clip;*/
}

.cover::after {
    position: absolute;
    display: block;
    content: "";
    width: 300px;
    height: 300px;

    background: linear-gradient(140deg, rgba(59, 59, 59, 1) 50%, rgba(205, 205, 205, 1) 50%);
    transform: translate(-50%, -50%);

    z-index: -1;
}

.cover:hover::after {
    transition: .6s;
    transform: rotateZ(-140deg);
}

.hidden {
    width: 200px;
    height: 60px;
    border: none;
    outline: none;
    box-shadow: inset 0px 5px 15px #777,
        inset 0px -5px 15px #777;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hidden:hover {
    transition: .6s;
}

.hidden .inside {
    color: #fff;
    background-color: #000;
    width: 80%;
    height: 16px;
    font-size: 12px;
    border-radius: 8px;
}

.hidden .door {
    position: absolute;
    
    width: 100%;
/*    height: 10px;*/

    left: 0;
    right: 0;
    font-size: 40px;
    overflow: hidden;
    transition: .6s;
    box-shadow: 0px 0px 0px #000;
    background-color: #6e6e6e;
}

.hidden .door.up {
/*    background-color: crimson;*/
    color: aquamarine;
    top: 0;
    bottom: 50%;
    /*    padding-top: 50%;*/

}
.hidden:hover .door{
    box-shadow: 0px 0px 15px #333;
    width: 110%;
    left: -5%;
}
.hidden:hover .door.up {
    transform: translateY(-30px);
    transition: .6s;

}

.hidden .door.up i {
    display: block;
    margin-top: 10px;
}

.hidden .door.bot {
/*    background-color: aquamarine;*/
    color: aquamarine;
    top: 50%;
    bottom: 0;

}

.hidden:hover .door.bot {
    transform: translateY(30px);
        transition: .6s;

}

.hidden .door.bot i {
    display: block;
    margin-top: -20px;
}
