/* ===== VARIABLES ===== */
:root {
    --app-padding: 20px;
    --color-text: #fff;
    --color-link: #d3d3d3;
    --color-bg: 2,0,36;
    --nav-height: 8vh;
}

/* ===== KEYFRAMES ===== */
@keyframes slideInFromRight {
    from {
        transform: translate(100%);
    }
    to {
        transform: translate(0);
    }
}

/* ===== STYLES ===== */
* {
    color: var(--color-text);
    margin: 0;
    font-family: 'Fredoka', sans-serif;
}

a {
    text-decoration: none;
    color: #ADD8E6;
}

button {
    cursor: pointer;
}

figcaption {
    color: lightgrey;
    font-style: italic;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.5rem;
}

header {
    height: var(--nav-height);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1;
}

hr {
    margin: 10px 0;
    opacity: 0.7;
}

html {
    font-size: 16px;
}

input:focus, textarea:focus {
    outline: none;
}

li {
    font-size: 1.75rem;
}

p {
    font-size: 1.75rem;
}

span {
    font-size: 1.75rem;
}

strong {
    text-shadow: 0 0 3px var(--color-text);
}

#body {
    background: rgb(var(--color-bg));
    background: linear-gradient(120deg, rgba(var(--color-bg),1) 0%, rgba(52,125,88,0.65) 100%);
}

#content {
    display: flex;
}

.nav {
    align-items: center;
    backdrop-filter: blur(10px);
}

.expand {
    height: 100vh;
}

#nav-wrapper {
    position: relative;
    background-color: rgba(var(--color-bg), 0.6);
    display: flex;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
}

#navbar {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

#navbar-mobile {
    display: none;
    justify-content: right;
    padding: 10px;
}

.navbar-mobile-menu {
    --padding: 15px;
    padding: var(--padding);
    width: calc(100% - 2 * var(--padding));
    background-color: #333;
    display: none;
    height: 100vh;
    top: 0;
    left: 0;
    overflow: hidden;
    position: fixed;
    animation: slideInFromRight 0.4s ease;
}

.show-menu {
    display: flex;
    flex-direction: column;
}

.show-menu ul {
    list-style-type: none;
    padding: 0;
    font-size: 200%;
}

.show-menu li {
    padding: 3px 0;
    font-size: 1.25em;
}

#menu-exit-wrapper {
    display: flex;
    justify-content: right;
}

.close-btn {
    background-color: transparent;
    border: 0;
    color: #FF474C;
    opacity: 0.6;
    display: inline-block;
    font-size: 2.5rem;
    padding: 0;
    text-align: center;
}

.close-btn:hover {
    opacity: 1;
}

#menu-exit {
    font-size: 3.5rem;
}

#hamburger {
    cursor: pointer;
}

#navbar nav {
    width: 100%;
}

#navbar ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style-type: none;
    padding: 0;
}

#navbar a {
    text-decoration: none;
    color: var(--color-text);
    position: relative;
    display: inline-block;
}

#navbar a:hover {
    color: var(--color-link);
}

#navbar a:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-link);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

#navbar a:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.fr {
    float: right;
    padding-left: 10px;
}

.article-img {
    max-width: 1000px;
    height: auto;
}

.player-wrapper {
    width: 1000px;
    height: 563px;
}

.player {
    width: 100%;
    height: 100%;
}

/* ===== MEDIA QUERIES FOR SMALLER DEVICES ===== */

@media (max-width: 1040px) {
    html {
        font-size: 12px;
    }

    .article-img {
        width: 100%;
    }

    .player {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
    }

    .player-wrapper {
        position: relative;
        overflow: hidden;
        padding-top: 56.25%;
        width: 100%;
        height: auto;
    }

    .video-fig {
        width: 100%;
    }
}

@media (max-width: 570px) {
    #navbar {
        display: none;
    }
    
    #navbar-mobile {
        display: flex;
    }
}