/* VARS */
:root {
    --header-color: #000;
    --h1-color: #393C41;
    --h2-color: #6E7378;
    --btn-dark-bg: rgba(23, 26, 32, 0.8);
    --btn-dark-color: #FFF;
    --btn-light-bg: rgba(255,255,255,0.65);
    --btn-light-color: #000;
}


/* FONTS */
@font-face {
    font-family: GothamMedium;
    src: url(../assets/fonts/GothamMedium.otf);
}

@font-face {
    font-family: GothamBook;
    src: url(../assets/fonts/GothamBookRegular.otf);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'GothamMedium', 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;

    position: fixed;
    left: 0;
    top: 0;
    right: 0;
}

header ul,
header li {
    list-style: none;
}

header .logo {
    width: 120px;
    margin-left: 20px;
}

header .middle ul,
header .rightside ul  {
    display: flex;
}

header .middle li,
header .rightside li{
    margin: 0 10px;
}

header .middle a,
header .rightside a {
    text-decoration: none;
    color: var(--header-color);
    text-transform: uppercase;
}

header .menu--icon {
    width: 18px;
    height: 16px;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
}

header .menu--icon div {
    height: 2px;
    background-color: var(--header-color);
}


/* MAIN & MODELS */
.MODEL-S,
.MODEL-Y,
.MODEL-3,
.MODEL-X,
.SOLAR-PANELS,
.SOLAR-ROOF {
    background-position: center;
    background-size: cover;
    height: 100vh;
}

.MODEL-S {
    background-image: url(assets/images/bg.jpg);
}

.MODEL-Y {
    background-image: url(assets/images/Desktop-ModelY.jpg);
}

.MODEL-3 {
    background-image: url(assets/images/M3-Homepage-D.jpg);
}

.MODEL-X {
    background-image: url(assets/images/ModelX-Homepage-D.jpg);
}

.SOLAR-PANELS {
    background-image: url(assets/images/us_homepage_sp_hero_d.jpg);
}

.SOLAR-ROOF {
    background-image: url(assets/images/solar-roof-hero-desktop.jpg);
}

section {
    height: 100vh;
}

main .info {
    height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

main h1 {
    margin: 0;
    font-size: 40px;
    font-weight: normal;
    color: var(--h1-color);
}

main h2 {
    margin: 0;
    font-size: 14px;
    font-weight: normal;
    color: var(--h2-color);
    font-family: 'GothamBook', Helvetica, Arial, sans-serif;
}

main h2 a {
    color: var(--h1-color);
}

.buttons--area {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;

}

section .final {
    height: auto;
    
    position: relative;
    top: 300px;
    right: 0;
    left: 0;
}

.buttons--area a,
.final a {
    display: block;
    width: 220px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    padding: 15px;
    border-radius: 30px;
    margin: 0 10px;
}

.btn-dark {
    background-color: var(--btn-dark-bg);
    color: var(--btn-dark-color);
}

.btn-light {
    background-color: var(--btn-light-bg);
    color: var(--btn-light-color);
}


/* FOOTER */
footer {
    position: fixed;
    left: 0;
    bottom: 30px;
    right: 0;
}


footer .arrow--area {
    display: flex;
    justify-content: center;
    height: 30px;
}

@keyframes arrow {
    0% {
        margin-top: 0;
    }

    50% {
        margin-top: 15px;
    }

    100% {
        margin-top: 100;
    }
}

footer .arrow {
    height: 15px;
    animation-name: arrow;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

/* MEDIA QUERIES */
@media (max-width: 1200px) {
    header .middle,
    header .rightside a {
        display: none;
    }
}

@media (max-width: 600px) {
    .buttons--area {
        flex-direction: column;
        align-items: center;
    }

    .buttons--area a {
        margin: 10px 20px;
        width: calc(100vw - 60px);
    }
}
