/*VARIABLES*/
:root {
    --white: #eeeeee;
    --red: #EB5757;
    --black: #1a1a1a;
}

@import url('https://fonts.googleapis.com/css2?family=Almarai&family=Big+Shoulders:opsz,wght@10..72,100..900&display=swap');

/*RESET*/
* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	text-decoration: none;
	outline: inherit;
    -webkit-transition: all .2s ease;
            transition: all .2s ease;
}
*:hover {
    -webkit-transition: all .2s ease;
            transition: all .2s ease;
}

::-webkit-scrollbar {
    width:10px;
} 
::-webkit-scrollbar-track {
    background:#999999;
} 
::-webkit-scrollbar-thumb {
	background:rgb(0,0,0,0.5);
}

html {
    scrollbar-gutter: stable;
    color-scheme: dark;
}

body {
    width: 100%;
    height: 100vh;
    position: relative;
    color: var(--white);
    background: url(../images/engine-background.jpg) no-repeat center fixed;
    background-size: cover;
}
body:after {
    content: '';
    background: url(../images/mechanic.png) no-repeat bottom right;
    background-size: contain;
    width: 50%;
    min-width: 320px;
    height: 100%;
    position: fixed;
    right: 5%;
    bottom: 0;
    pointer-events: none;
}


/*FONTS*/
p,
li {
    font-family: 'Almarai', sans-serif;
    font-size: 18px;
    line-height: 150%;
    margin: 20px 0 0;
}
p.large {
    font-size: 32px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Big Shoulders', sans-serif;
    font-weight: 700;
    line-height: 110%;
    text-transform: uppercase;
}
h1 {
    font-size: 96px;
}
h2 {
    font-size: 48px;
}



/*CONTAINERS*/
section,
.section {
    width: 95%;
    margin: 0 auto;
    padding: 2.5% 0;
    position: relative;
}

.block {
    padding: 50px;
    background: rgba(0,0,0,0.75);
    width: 780px;
    border-radius: 5px;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: center;
    margin-bottom: 50px;

    img {
        width: 50%;
        max-width: 260px;
    }

    p {
        text-align: right;
        padding: 20px;
        border-right: 1px solid var(--red);
    }
}


/*OBJECTS*/
img {
    max-width: 100%;
}
.mechanic {
    display: none;
}


/*LINKS*/
a:link,
a:hover,
a:visited,
a:active {
    color: inherit;
	text-decoration: none;
}

.btn {
    display: inline-block;
    font-size: 21px;
}
.btn:hover,
.btn:focus {
}


/*MODIFIERS*/
.left {
    text-align: left;
}
.right {
	text-align: right;
}
.center {
	text-align: center;
}
.justify {
	text-align: justify;
}

.red {
    color: var(--red);
}

@media (prefers-reduced-motion: no-preference) {
    img {
        scale: .8;
        opacity: 0;
        animation: fade-in linear forwards;
        animation-timeline: view();
        animation-range: entry;
    }
    @keyframes fade-in {
        to { scale: 1; opacity: 1; }
    }
}

@media (max-width: 1300px) {
    .block {
        padding: 30px;
        width: 580px;
    }
}

@media (max-width: 1024px) {
    body:after {
        content: '';
        background: url(../images/mechanic.png) no-repeat bottom right;
        background-size: contain;
        width: 40%;
    }

    p,
    li {
        font-size: 16px;
    }
    p.large {
        font-size: 24px;
    }
    h1 {
        font-size: 60px;
    }
    h2 {
        font-size: 36px;
    }

    .block {
        padding: 5%;
        width: 500px;
    }

    .logo {
        img {
            max-width: 200px;
        }
    }
}

@media (max-width: 768px) {
    body:after {
        content: '';
        background: url(../images/mechanic.png) no-repeat bottom right;
        background-size: contain;
        width: 300px;
        position: absolute;
        bottom: auto;
        top: 100px;
    }

    h1 {
        font-size: 48px;
    }
    h2 {
        font-size: 32px;
    }

    .block {
        width: 100%;
    }
}

@media (max-width: 532px) {
    body:after {
        content: '';
        background: none;
    }

    .logo {
        p {
            text-align: left;
            width: 100%;
            border-right: none;
            border-left: 1px solid var(--red);
        }
    }
}