/* Global */

:root {
    --primary-color-light: #ECEFF1;
    --primary-color-medium: #78909C;
    --primary-color-dark: #232425;
    --primary-color-darker: #131514;
    --secondary-color-light: #BBDEFB;
    --secondary-color-darker: #354a58;
    --secondary-color-darkest: #24343d;
}

html, body {
    min-height: 100vh;
    background-color: var(--primary-color-dark);
}

.page {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: space-between;
}

@font-face { font-family: "MainThin"; src: url("../fonts/Rajdhani-Light.ttf") format("truetype") }
@font-face { font-family: "MainRegular"; src: url("../fonts/Rajdhani-Regular.ttf") format("truetype") }
@font-face { font-family: "MainMedium"; src: url("../fonts/Rajdhani-Medium.ttf") format("truetype") }
@font-face { font-family: "MainBold"; src: url("../fonts/Rajdhani-Bold.ttf") format("truetype") }

* {
    margin: 0;
    text-decoration: none;
    font-family: "MainRegular", sans-serif;
    font-size: 20px;
    color: var(--primary-color-light);
    letter-spacing: 0.025em;
}

.container { padding-top: 60px; }

/* Title and menu */

header {
    display: flex; flex-direction: row; justify-content: space-between; align-items: center;
    height: 60px;
    position: fixed;
    width: calc(100% - 40px);
    padding: 0 20px;
    background-color: var(--primary-color-dark);
    border-bottom: 1px solid black;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

header>a {
    font-family: "MainThin", sans-serif;
    font-size: 21px;
}

header>.menu {
    display: flex; flex-direction: row; justify-content: flex-end; align-items: center;
}

header>.menu>a {
    display: flex; flex-direction: row; justify-content: center; align-items: center;
    height: 60px;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.3s;
}

header>.menu>a:hover, header>.menu>a.active {
    color: var(--secondary-color-light);
}

/* Footer */

.footer {
    border-top: 1px solid black;
    background-color: var(--primary-color-darker);
    padding: 25px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.footer>p, .footer>p>a {
    font-size: 16px;
    color: #b4b4b4;
}

.footer>p>a {
    color: var(--secondary-color-light);
}

.footer>p>a:hover {
    text-decoration: underline;
}

/* Tools */

.spaceAfter {
    margin-bottom: 18px;
}

.spaceBefore {
    margin-top: 18px;
}

/* Responsive */

.burgerMenu {
    display: none;
}

@media all AND (max-width: 1023px) {

    * {
        font-size: 24px;
    }

    .footer>p, .footer>p>a {
        font-size: 18px;
    }

    header>.menu {
        position: fixed;
        background-color: var(--primary-color-darker);
        border-top: 1px solid white;
        border-bottom: 1px solid white;
        top: 0; left: 0;
        padding: 15px 0 12px 0;
        margin-top: 60px;
        width: 100%;
        display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
        display: none;
    }

    header>.menu.active {
        display: flex;
    }

    header>.menu>a {
        border: none;
        height: 40px;
    }

    .burgerMenu {
        display: block;
        width: 42px;
    }
    .burgerMenu>div {
        margin: 8px;
        height: 2px;
        width: 42px;
        transition: all 0.3s;
        background-color: white;
    }
    .burgerMenu:hover>div, .burgerMenu.active>div {
        background-color: var(--secondary-color-light);
    }

}