/*
Author: Belmonte Devis
Content: cfbtcomic.com about stylesheet
Date: 04/07/2022
*/
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Syne', arial, sans-serif;
    --color-text: #FFF;
    --color-background: #000;
    --color-layout: #111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-background);
}

.sticky {
    position: sticky;
    top: 0;
    width: 100%
}

#logo {
    padding: 1em;
    background-color: var(--color-layout);
    text-align: center;
}

#menu {
    padding: 0.2em 1em;
    background-color: var(--color-layout);
    text-align: center;
}

ul {
    display: flex;
    list-style: none;
}

nav a:hover {
    background-color: var(--color-text);
    color: var(--color-background);
}

.sticky + #menu {
    padding-top: 150px;
}

footer a {
    color: white;
}

.italic {
    font-style: italic;
}

.dropbtn a {
    color: var(--color-text);
    text-decoration: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: var(--color-text);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    background-color: var(--color-text);
}

.dropdown:hover .dropbtn a {
    color: var(--color-background);
}

nav #active {
    background-color: var(--color-text);
    color: var(--color-background);
}

#logo img {
    max-height: 2.5em;
}

ul > li > a {
    display: block;
    padding: 0.5em;
    text-decoration: none;
    color: var(--color-text);
}

/* Dropdown for read page */
.dropbtn {
    background-color: #111;
    padding: .5em;
    font-size: 1em;
    text-decoration: none;
    border: none;
    font: var(--font-primary);
}

header {
    width: 100%;
    top: 0;
    right: 0;
}

nav {
    display: flex;
    justify-content: center;
    text-align: center;
}

.nav--hidden {
    transform: translateY(-202px);
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1em;
    padding: 2em;
    text-align: justify;
    background-color: var(--color-background);
}


#team {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.member {
    text-align: justify;
    margin: 2em 0 2em 0;
}

.member h2 {
    text-align: center;
}

.member img {
    display: block;
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 4px solid var(--color-text);
    border-radius: 50%;
    margin: 15px auto;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    left: 0;
    bottom: 0;
    background-color: var(--color-layout);
    text-align: center;
    z-index: 2;
    width: 100%;
    padding: 1em;
    margin: 0;
    gap: 0.5em;
}

.disclaimer {
    font-size: 0.75em;
}

/* Style for tablets */
@media (min-device-width: 768px) {

    #logo img {
        max-height: 5em;
    }

    ul > li > a {
        font-size: 1.2em;
    }

    .dropbtn {
        font-size: 1.2em;
    }

    h1 {
        font-size: 3em;
    }

    main p {
        font-size: 1.25em;
    }
}

#back-to-top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#back-to-top-btn.active {
    opacity: 1;
    visibility: visible;
}


/* Style for desktops */
@media (min-device-width: 992px) {

    #logo img {
        max-height: 7em;
    }

    ul > li > a {
        font-size: 1.4em;
    }

    .dropbtn {
        font-size: 1.4em;
    }

    main {
        padding-left: 25%;
        padding-right: 25%;
    }

    h1 {
        font-size: 4em;
    }

    main p {
        font-size: 1.5em;
    }

    #team {
        padding-left: 15%;
        padding-right: 15%;
    }
}