@import url('https://fonts.googleapis.com/css2?family=Road+Rage&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root{
    --primary-color: #98291F;
}

body{
    background-color: black;
    background-image: url('/img/background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

header{
    text-align: center;
}

.main-image{
    width: 100%;
    height: auto;
    max-height: 90svh;
    object-fit: cover;
}

main{
    margin: 64px 4vw 0;
}

footer{
    margin: 32px 4vw;
    font-size: 14px;
    color: #E0E0E0;
}

h1{
    font-family: "Road Rage", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 46px;
    text-wrap: balance;
    margin: 0;

    span{
        color: var(--primary-color);
    }
}

a{
    color: inherit;
    text-decoration: none;
}

footer ul{
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

footer ul li{
    display: flex;
    gap: 12px;
}

footer ul li span{
    display: block;
    font-size: 12px;
}

.logo{
    height: 160px;
    width: auto;
}

.button{
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: white;
    padding: 24px;
    position: relative;
    overflow: hidden;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.button:hover{
    background-color: #b1382d;
    color: white;
}

.button svg:nth-child(2){
    position: absolute;
    right: 0;
    bottom: 0;
    transform: scale(2) rotate(-45deg);
    color: #571812;
    transition: all 0.2s ease;
}

.button:hover svg:nth-child(2){
    right: 16px;
    bottom: 12px;
    transform: scale(2.5) rotate(-45deg);
}

.buttons-list{
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    margin-top: 64px;
}

footer svg{
    width: 16px;
    height: 16px;
}

footer p{
    text-align: center;
    margin-top: 32px;
    font-size: 12px;
    opacity: .8;
}

footer span{
    display: flex;
    margin-top: 4px;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

footer span svg{
    margin-top: 6px;
    height: 16px;
    width: auto;
}

.widgets{
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    z-index: 5;
}

.widget-button{
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    transform: translateX(calc(100% - 64px));
    transition: all 0.2s ease;
    font-weight: 600;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.widget-button:hover{
    transform: translateX(0);
}

dialog{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    margin: 0;
    border: none;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    background-color: black;
    padding: 0;
}

dialog .actions{
    display: flex;
    padding: 12px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

dialog .close-button{
    color: white;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

@media screen and (min-width: 768px){
    h1{
        font-size: 64px;
    }

    .buttons-list{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px){
    body{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .buttons-list{
        grid-template-columns: repeat(1, 1fr);
    }

    .main-image{
        position: sticky;
        top: 0;
        max-height: 100vh;
        height: 100vh;
        grid-row: span 2;
    }

    footer{
        padding-top: 16px;
        border-top: 1px solid var(--primary-color);
    }
}

@media screen and (min-width: 1280px){
    .buttons-list{
        grid-template-columns: repeat(2, 1fr);
    }

    footer{
        align-self: end;
    }
}