/*
* @Author: ArthurBernard
* @Date:   2023-03-01 19:16:37
* @Last Modified by:   ArthurBernard
* @Last Modified time: 2023-04-28 11:39:16
*/

body {
    background: rgba(33, 33, 33, 1);
    color: white;
    font-family: 'Ubuntu', sans-serif;
    padding: 0px;
    margin: 0px;
}

header {
    background: linear-gradient(90deg, rgba(75, 121, 161, 0.5), rgba(40, 62, 81, 0.5));
    text-align: center;
    margin-bottom: 0;
    padding: 2rem 0 1rem 0;
    /*color: white;*/
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

header h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

header a {
    text-decoration: none;
    color: white;
    background-color: #0077cc;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s;
}

header a:hover {
    background-color: #005fa3;
}

.footer {
    background-image: none;
    background-color: #2E3440;
    color: white;
    margin-top: 10rem;
    padding: 2rem 0 1rem 0;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.footer-column {
    width: 300px;
    margin-bottom: 1rem;
}

.footer h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: white;
}

.footer ul li {
    margin-bottom: 0.5rem;
    color: white;
}

.footer ul a li {
    text-decoration: none;
    color: white;
    font-style: normal;
}

.footer ul a li:hover {
    text-shadow: -2px 6px 3px #4d4d4d;
    color: #E7E7E7;
    opacity: 0.8;
    text-decoration: none;
}

.footer ul a li:focus {
    text-shadow: -2px 6px 3px #4d4d4d;
    color: #E7E7E7;
    opacity: 0.8;
}

.footer ul a li:active {
    text-shadow: -2px 6px 3px #4d4d4d;
    color: #1a4c70;
    opacity: 1;
}

.footer-copyright {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
}

.footer-copyright p {
    text-align: center;
    width: 100%;
    color: white;
}

main {
    width: 85%;
    margin: auto;
}

h1 {
    color: #A5B4FC;
    font-size: 3em;
    font-family: 'Ubuntu Mono', monospace;
    text-shadow: -1px 3px 3px RGB(0, 0, 0);
    margin: auto;
}

h2 {
    color: orange;
    font-size: 2em;
    font-family: 'Ubuntu Mono', monospace;
}

h3, p, li {
    color: white;
    font-size: 1.1em;
    font-family: 'Ubuntu', sans-serif;
    text-align: justify;
    width: 75%;
}

a {
    text-decoration: none;
    font-style: italic;
    color: inherit;
}

a:hover{
    text-decoration: underline;
}
a:focus {
    text-decoration: underline;
}
a:active {
    text-decoration: none;
}

.nav {
    background: linear-gradient(90deg, rgba(75, 121, 161, 0.5), rgba(40, 62, 81, 0.5));
    display: flex;
    color: white;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    margin-bottom: 5rem;
    position: sticky;
    top: 0;
    z-index:100;
}

.nav:hover {
    background: linear-gradient(90deg, rgba(75, 121, 161, 1), rgba(40, 62, 81, 1));
    color: white;
}

.nav .logo {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Responsive menu */
.nav .menu {
    display: none;
    cursor: pointer;
    z-index: 200;
}

.nav .menu-items {
    display: flex;
    gap: 1rem;
}

.nav a {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
    font-size: 1.4rem;
    font-style: normal;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
}

.nav a:hover {
    background-color: #0077cc;
    text-decoration: none;
}

.nav a:focus {
    background-color: #0077cc;
    text-decoration: none;
}

.nav a:active {
    background-color: #1a4c70;
    text-decoration: none;
}

.nav .flag_language {
    padding: 0;
    margin: 0;
}

/* Current web page displayed */
.nav .current-page {
    font-size: 1.4rem;
    padding: 0.5rem 1rem;
    text-decoration: underline;
    font-weight: bold;
}

@media (max-width: 968px) {
    .nav .menu {
        display: block;
    }

    .nav .menu-items {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.3s ease;
        opacity: 0;
        pointer-events: none;
        z-index: 150;
    }

    .nav .menu-items.open {
        display: flex;
        opacity: 1;
        pointer-events: all;
    }

    .nav .menu {
        position: relative;
        width: 24px;
        height: 16px;
    }

    .nav .menu span {
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: white;
        transition: all 0.3s ease;
    }

    .nav .menu span:nth-child(1) {
        top: 0;
    }

    .nav .menu span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .nav .menu span:nth-child(3) {
        bottom: 0;
    }

    .nav .menu.open span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .nav .menu.open span:nth-child(2) {
        opacity: 0;
    }

    .nav .menu.open span:nth-child(3) {
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    /*.content {
        transition: opacity 0.3s ease;
    }

    .content.hidden {
        opacity: 0;
        pointer-events: none;
    }*/
}
