@font-face {
    font-family: "RF Dewi Extended";
    font-weight: 400;
    src: url('./fonts/rw-dewi/RFDewiExtendedAZ-Regular.ttf');
}

* {
    padding: 0;
    margin: 0;
    border: 0;
}

*,
*:before,
*:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

aside,
nav,
footer,
header,
section {
    display: block;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
}
html,
body {
    height: 100%;
    min-width: 340px;
}
body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    line-height: 1;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    background: #120F23;
}

.background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100%;
    & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

main {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    height: 100%;
    & section {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 32px 80px 0;
        width: 50%;
        height: 100%;
        position: relative;
        & .section__background {
            position: absolute;
            right: 0;
            top: 0;
            width: 100%;
            height: 100%;
            & img {
                height: 100%;
            }
        }
        &.first {
            & .info {
                & p {
                    max-width: 480px;
                }
            }
        }
        &.second {
            padding-left: 100px;
            & .info {
                 & p {
                     max-width: 600px;
                     color: #AC4531
                 }
            }
            & .links {
                & .link {
                    background: rgba(0, 0, 0, 0.08)!important;
                    & svg {
                        & path {
                            fill: black;
                        }
                    }
                }
            }
        }
        & .info {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 80%;
            z-index: 2;
            & p {
                color: #FFF;
                font-family: "RF Dewi Extended";
                font-size: 54px;
                font-style: normal;
                font-weight: 400;
                line-height: 1.2;
                margin-bottom: 32px;
            }
            & .links {
                display: flex;
                gap: 10px;
                & .link {
                    min-width: 160px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    background: rgba(255, 255, 255, 0.08);
                    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
                    border-radius: 10px;
                    padding: 10px 14px;
                }
            }
            & .example {
                min-width: 400px;
                width: 60%;
                margin: 64px auto 0;
                & img {
                    width: 100%;
                    height: 100%;
                }
            }
        }
    }
}

@media (max-width: 1100px) {
    .background {
        display: none;
    }
    main {
        flex-direction: column;
        & section {
            align-items: center;
            width: 100%;
            height: 50%;
            padding: 24px 24px 0;
            &.second {
                padding-left: 24px;
                overflow: hidden;
                & .info {
                    height: 90%;
                }
            }
            & .section__background {
                z-index: 2;
                & img {
                    width: 100%;
                }
            }
            & .info {
                & p {
                    font-size: 28px;
                    text-align: center;
                }
                & .example {
                    width: 60%;
                    min-width: unset;
                    margin: 32px auto 0;
                    /*display: none;*/
                }
                & .links {
                    justify-content: center;
                }
            }
        }
    }
}

@media (max-width: 480px) {
    main {
        & section {
            padding: 20px 24px 0;
            height: 47%;
            &.second {
                height: 53%;
            }
            & .logo {
                & img {
                    width: 160px;
                }
            }
            & .info {
                height: 85%;
                & p {
                    font-size: 24px;
                    margin-bottom: 24px;
                }
                & .links {
                    & .link {
                        min-width: 140px;
                        padding: 8px 12px;

                        & svg {
                            width: 110px;
                        }
                    }
                }
                & .example {
                    margin: 20px auto 0;
                }
            }
        }
    }
}
