:root {
    --inter-font: "Inter", sans-serif;
}

*, ::after, ::before {
    box-sizing: border-box;
    margin: 0;
}

html {
    font-family: var(--inter-font);
}

h2 {
    margin: 1rem 0;
}

h1 {
    font-size: 32px;
    letter-spacing: -1px;
    line-height: 120%;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
    font-weight: 400;
}

p {
    font-size: 16px;
    color: rgb(86 86 86/1);
    line-height: 1.5rem;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.website {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1.5rem;
}

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.5rem 0;
    max-width: 340px;
}

.social-media {
    align-items: flex-start;
}

.slogan > div {
    padding: 1rem;
    background-color: #ffffff; 
    color: #000;
    aspect-ratio: 1 / 1;
    max-width: 342px;
    width: 100%;
    text-align: end;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border-radius: 24px;
}

.logo {
    width: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    margin: 1.5rem 1.5rem 0;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.content {
    margin-top: 1rem;
    margin: 1rem 1.5rem;
}

.description {
    margin-top: 1rem;
}

.description p:nth-child(2){
    margin-top: 0.75rem;
}

.main-block {
    max-width: 342px;
    width: 100%;
    margin: 1rem 0;
    border-radius: 24px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.blocks-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1rem 0;
}

.unit-block {
    margin: 1rem 0;
}

.block {
    width: 100%;
    max-height: 159px;
    max-width: 159px;
    border-radius: 24px;
    height: auto;
    aspect-ratio: 1 / 1;
    width: 100%;
    display: block;
    overflow-y: hidden;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.text-block {
    padding: 1rem;
    color: #fff;
    font-weight: 400;
    
}

.emoji-block {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
}

.vertical-block {
    width: 100%;
    max-width: 159px;
    border-radius: 24px;
    grid-row: span 2;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.horizontal-block {
    height: 158px;
    width: 100%;
    border-radius: 24px;
    grid-column: span 2;
    max-height: 175px;
    object-fit: cover;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.title-block {
    background-color: #fafafa;
    border: #e8e8e8 0 solid;
    border-width: 1px;
    border-radius: 24px;
    padding: 1rem;
    width: 100%;
    text-align: center;
}

.external-link-image {
    position: relative;
    display: inline-block;
    /* background-color: lightblue; */
}

.external-link {
    position: absolute;
    padding: 14px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    border-radius: 24px;
}

.external {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 24px;
}

.external-circle {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 50%;
    border-color: hsla(0,0%,100%,.2);
    border-width: 2px;
    width: 26px;
    height: 26px;
    pointer-events: none;
    backdrop-filter: blur(8px);
}

.external-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 14px;
    right: 14px;
    border-radius: 50%;
    background-color: rgba(0,0,0,.2);
    width: 22px;
    height: 22px;
}

.subsection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* .blocks-group img.block {
    width: 100%;
    height: auto;
    object-fit: cover;
} */

@media (min-width: 1260px) {
    body {
        display: flex;
        justify-content: space-around;
    }

    h1 {
        font-size: 44px;
        letter-spacing: -2px;
    }

    p {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    header {
        position: sticky; 
        top: 3.5rem;
    }

    .website {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        margin: 3rem;
        width: 1520px;
    }

    .section {
        max-width: 100%;
    }

    main {
        flex-shrink: 0;
    }

    .about {
        max-width: 500px;
    }

    .logo {
        width: 184px;
    }

    .banner {
        flex-direction: row-reverse;
        justify-content: center;
        margin: 1rem;
        gap: 2rem;
        min-width: 60%;
        max-width: 100%;
    }

    .social-media {
        flex-direction: row;
        justify-content: center;
        margin: 1rem;
        gap: 2rem;
        min-width: 60%;
        max-width: 100%;
    }

    .games > div, .team > div {
        max-width: 100%;
    }

    .games > div > .blocks-group, .team > div > .blocks-group {
        max-width: 100%;
        grid-template-areas: 'item1 item2 item2 item3';
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .games > div > .blocks-group > img:nth-child(1) {
        grid-area: item2;
    }

    .slogan {
        align-items: end;
    }

    .slogan > div {
        max-width: 390px;
    }

    .subsection {
        min-width: 342px;
        max-width: 390px;
        align-items: flex-start;
    }

    .main-block, .blocks-group {
        height: 100%;
        min-width: 342px;
        max-width: 390px;
        gap: 2rem;
    }

    .block {
        width: 175px;
        max-width: 175px;
        max-height: 175px;
    }

    .horizontal-block {
        height: 175px;
        max-height: 175px;
    }

    .vertical-block {
        width: 175px;
        max-width: 175px;
    }
}