:root {
    --background-color: #101010;
    --main-color: #FCCAC9;
    --highlight-color: #DB9594;
    --contrast-color: #FF6767;
    --second-color: #FF8585;
}

*, *::after, *::before {
    font-family: "Rowdies", "Tahoma";

    margin: 0; padding: 0;
    color: var(--main-color);
}

body {
    background: var(--background-color);

    overflow: none;
}

.container {
    max-width: 1230px;
    margin: 0 auto;
}

span.highlight {
    color: var(--highlight-color);
}

section#main {
    margin-top: 175px;

    display: grid;
    grid-template-columns: 350px 1fr;
    grid-template-rows: 1fr 200px;
    grid-template-areas: "logo main" "stats stats";
    grid-gap: 83px;
}

img#main__logo {
    grid-area: logo;
}

section#main_content {

    grid-area: main;

    align-self: center;

    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr;
    grid-gap: 42px;
}

section#main_content article {
    display: flex;
    flex-direction: column;
    /* grid- */
}

section#main_content #main__article {

    font-style: normal;
    font-weight: bold;
    font-size: 64px;
    line-height: 64px;

    color: var(--main-color);

}

section#main_content #main__article_secondLine {

    font-style: normal;
    font-weight: normal;
    font-size: 36px;
    line-height: 36px;

    color: var(--main-color);

}

section#main_content #main__links {


    display: grid;
    grid-template-columns: 322px 1fr;
    grid-gap: 83px;

    height: 65px;

}

section#main_content #main__links * {
    align-self: center;
}

section#main_content #main__links a {
    font-size: 36px;
    text-decoration: none;


    transition: all 320ms;
}

section#main_content #main__links button {
    background: var(--main-color);

    color: var(--second-color);

    outline: none;
    border: none;

    cursor: pointer;

    font-size: 36px;

    height: 65px;

    border-radius: 25px;

    transition: all 620ms;
}

section#main_content #main__links button:hover {
        box-shadow: 0px 3px 4px rgba(252, 202, 201, 0.5);
}

section#main_content #main__links a:hover {
    color: var(--contrast-color);
}

section#stats {
    max-width: 1030px;
    min-width: 600px;
    background: #333;
    box-shadow: 0px 3px 4px rgba(66, 66, 66, 0.5);
    /* background: var(--main-color); */
    border-radius: 16px;
    
    padding: 20px;

    align-self: center;
    justify-self: center;

    grid-area: stats;



    display: flex;
    justify-content: space-between;
}

section#stats .stats__block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}


section#stats .stats__block_value {
    font-size: 36px;
    font-family: "Roboto";
    color: #fff;
    font-weight: bold;

    text-align: center;
    text-shadow: 0 0 8px var(--main-color);

    margin-bottom: 2px;
}


section#stats .stats__block_title {
    font-size: 18px;
    font-family: "Roboto";
    font-weight: bold;
    color: var(--second-color);
    
    letter-spacing: 0.3px
}

@media (max-width: 1000px) {
    section#main {
        margin-top: 20px;
        grid-template-rows: 1fr;
        grid-template-columns: 1fr;
        grid-template-areas: "logo" "main" "stats";

        justify-content: center;
        align-content: center;
    }

    section#main__content {
        justify-self: center;
        align-self: center;

        text-align: center;
    }

    #main_content article {
        text-align: center;
    }

    #main__links {
        grid-template-columns: 2fr 1fr;
        grid-gap: 20px;
        padding: 0 90px;
    }

    #main__links a {
        justify-self: center;
    }

    #main__logo {
        align-self: center;
        justify-self: center;
    }
}

@media (min-width: 502px) and (max-width: 768px) {
    body {
        transform: scale(0.8);
    }

    .container {
        position: absolute;
        left: 0; top: 0;
        width: 100vw;
        height: 100vh;
    }

    #main_content {
        padding: 0;
        max-width: 100vw;
    }

    #main_content article {
        max-width: 100vw;
    }

    #main__links {
        grid-template-rows: "1fr" !important;
        grid-template-columns: "1fr" !important;
        grid-gap: 20px !important;
        width: auto;
    }
    

    #main__links a {
        /* padding: 0 20px; */
        font-size: 26px !important;
    }

    #main__links button {
        min-width: 200px;
    }
}

@media (max-width: 520px) {

    body {
        transform: scale(0.8);
    }

    #main__links a {
        min-width: 150px;
        /* padding: 0 20px; */
        font-size: 26px !important;
    }

    #main__links button {
        height: 60px;
    }

    #main__links {

        height: 50px;
        grid-gap: 0px !important;

        display: flex !important;
        flex-direction: column;
        justify-content: baseline;
    }

    #main__links * {
        width: 90vw;
        text-align: center;
    }
}

.powered {
    position: absolute;

    right: 15px;
    bottom: 15px;
}