* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-image: url('bgImage.jpg');
    background-color: black;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.main-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100vh;
}

.container {
    perspective: 3000px;
    transform-style: preserve-3d;
}

.container-item {
    width: 1500px;
    height: 700px;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 40px;
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.about {
    width: 700px;
    height: 500px;
    align-self: center;
    color: white;
    border-radius: 40px;
    background-color: rgba(118, 246, 199, 0.138);
}


.card {
    background-color:  rgba(118, 246, 199, 0.138);
    width: 550px;
    height: 350px;
    align-self: center;
    position: relative;
    text-align: center;
    color: white;
    border-radius: 40px;
    z-index: 1;
}

.card-header {
    display: flex;
    justify-content: center;

}

h1 {
    margin-top: 30px;
    font-size: 30px;
    padding: 20px;
    z-index: 1;
    font-family: 'Stalinist One', cursive;
}

p {
    font-size: 20px;
    padding: 20px;
    font-family: 'Jura', sans-serif;
    margin: 0;
}

h4 {
    font-size: 30px;
    font-weight: bold;
    font-family: 'Stalinist One', cursive;
}

span {
    color: rgba(12,242,113,1);
    border-radius: 30px;
    padding: 10px;
}

.container-timer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.timer {
    z-index: 1;
}

.block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    margin: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.149);
    border-radius: 20px;
}

.trans:after {
    background-color:  rgba(118, 246, 199, 0.126);
    width: 500px;
    height: 300px;
    content: "";
    border-radius: 40px;
    top: 25px;
    left: 25px;
    position: absolute;
    z-index: 0;
}

@media all and (max-width: 1600px) {
    .container-item {
        width: 1300px;
        height: 1000px;
    }

    .about {
        width: 600px;
        height: 400px;
    }

    h1 {
        margin-top: 30px;
        font-size: 20px;
    }
    
    p {
        font-size: 15px;
        padding: 20px;
    }
    
    h4 {
        font-size: 20px;
    }

    .block {
        width: 60px;
        height: 60px;
        margin: 5px;
    }
    
    .card {
        width: 400px;
        height: 250px;
    }

    .trans:after {
        width: 350px;
        height: 200px;
        top: 25px;
        left: 25px;
    }
}

@media all and (max-width: 1200px) {
    .container-item {
        width: 800px;
        height: 900px;
    }

    .about {
        width: 500px;
        height: 300px;
    }

    h1 {
        font-size: 15px;
        padding: 15px;
    }
    
    p {
        font-size: 10px;
        padding: 15px;
    }
    
    h4 {
        font-size: 15px;
    }
    
    .card {
        width: 320px;
        height: 220px;
    }

    .trans:after {
        width: 300px;
        height: 200px;
        top: 10px;
        left: 10px;
    }
}

@media all and (max-width: 800px) {
    .container-item {
        height: 800px;
    }

    .about {
        height: 400px;
    }

    h1 {
        font-size: 20px;
        padding: 20px;
    }
    
    p {
        font-size: 15px;
        padding: 20px;
    }
    
    h4 {
        font-size: 20px;
    }
    
    .card {
        height: 240px;
    }

    .trans:after {
        height: 220px;
    }
}


@media all and (max-width: 500px) {
    .container-item {
        display: flex;
        flex-direction: column-reverse;
        width: 450px;
        height: 800px;
    }

    .about {
        background-color: rgba(31, 41, 37, 0.64);
        width: 350px;
        height: 350px;
    }

    h1 {
        font-size: 15px;
        padding: 10px;
    }
    
    p {
        font-size: 15px;
        padding: 10px;
    }
    
    h4 {
        font-size: 20px;
    }
    .block {
        width: 60px;
        height: 60px;
        margin: 5px;
        margin-top: 30px;
    }
    
    .card {
        background-color: rgba(31, 41, 37, 0.64);
        width: 350px;
        height: 240px;
    }

    .trans:after {
        width: 330px;
        height: 220px;
        top: 10px;
        left: 10px;
    }
}

@media all and (max-width: 350px) {
    .container-item {
        display: flex;
        flex-direction: column-reverse;
        width: 300px;
        height: 450px;
    }

    .about {
        width: 300px;
        height: 200px;
        border-radius: 20px;
    }

    h1 {
        font-size: 13px;
        padding: 5px;
    }
    
    p {
        font-size: 10px;
        padding: 5px;
    }
    
    h4 {
        font-size: 15px;
    }
    .block {
        width: 55px;
        height: 55px;
        margin-top: 25px;
    }
    
    .card {
        width: 300px;
        height: 200px;
        border-radius: 20px;
    }

    .trans:after {
        width: 280px;
        height: 180px;
        border-radius: 20px;
    }
}

