.arial {
    font-family: "Arial", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.weight100 {
    font-weight: 100;
}

.weight200 {
    font-weight: 200;
}

.weight600 {
    font-weight: 600;
}

.weight900 {
    font-weight: 900;
}

body {
    /*background: linear-gradient(to bottom, rgba(33, 31, 31, 0.95), rgba(33, 31, 31, 1)), url('https://i.imgur.com/LUhkK1A.png') center top/cover no-repeat;*/
    background: #141519;
    margin: 0;
    font-size: 1.25em;
}

header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    background-color: rgba(30, 31, 33, 0.6);
    padding: 1.5em 2em;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-button {
    margin: 0.5em;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.5em; 
}

.contact {
    padding-top: 20vh;
    padding-bottom: 10vh;
    text-align: center;
    /*display: flex;*/
    align-items: center;
    /*position: absolute;*/
    /*left: 50%;*/
    /*transform: translate(-50%, -50%);*/
    background: linear-gradient(to bottom, #115b5d, #141519) center top/cover no-repeat;
}


.profile-picture {
    width: 10em;
    height: 10em;
    border-radius: 50%;
}

.username {
    padding-top: 2em;
    padding-bottom: 0.25em;
    margin: 5px 0;
    color: #ffffff;
}

#socials {
    text-align: center;
    margin: 20px 0;
    padding-top: 1.25em;
}

#explanation {
    text-align: justify;
    font-size: 1.5em;
    display: flex;
    justify-content: center;
    margin-top: 10vh;
    padding-left: 30%;
    padding-right: 30%;
}

.code-section {
    width: 33%;
    margin-left: auto;
    margin-right: auto;
    /*transform: translateX(50%);*/
    padding-top: 8em;
    padding-bottom: 5em;
    font-family: 'Courier New', monospace;
    font-size: 300%;
    font-weight: bolder;
}

.theme, strong {
    color: #00f7ff;
}

.theme-background {
    background-color: #00f7ff;
}

.theme-border {
    border: 1px solid #00f7ff;
}

.white {
    color: white;
}

h1, h2, h3, p {
    color: white;
}

.social-link {
    display: inline-block;
    margin: 0 10px;
    text-decoration: none;
}

.social-link img {
    width: 40px;
    height: 40px;
    border: 2px solid #999;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.social-link:hover img {
    transform: scale(1.2);
}

#menu {
    padding-top: 8em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
    margin: 5px 0;
    padding-left: 10%;
    padding-right: 10%;
}

#menu h2 {
    width: 100%;
    text-align: center;
    font-size: 300%;
    padding-bottom: 1.5em;
}

.project {
    width: 35%;
    margin: 0 10px 20px;
    padding: 2vh;
    text-align: center;
    border-radius: 35px;
    transition: transform 0.3s ease;
    background-color: #202127;
    text-decoration: none;
    color: white;
}

.position-link {
    text-decoration: none;
}

/*.position-link:hover {*/
/*    text-decoration: underline;*/
/*}*/

.project:hover {
    transform: translateY(0.5vh) scale(1.025);
}

.project:not(:hover) {
    transition: transform 0.3s ease;
}

#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
    background-color: #00f7ff;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

#back-to-top:hover {
    background-color: #fff;
}

footer {
    text-align: center;
    margin-top: 10vh;
    padding: 3vh;
    color: #fff;
    margin-left: 10%;
    margin-right: 10%;
}


/* Styles pour les écrans mobiles */
@media only screen and (max-width: 767px) {
    header {
        padding: 1.5em 2em;
    }

    .nav-button {
        margin: 0.5em;
        font-size: 1em;
    }

    .project {
        width: 70%;
    }

    .contact {
        padding-top: 50%;
    }

    #socials {
        padding-top: 5em;
    }

    /* Styles pour la portion de code */
    .code-section {
        font-size: 150%;
        width: 75%;
        padding-top: 10em;
    }
    
    #explanation {
        font-size: 1em;
        padding: 1.5em;
    }
}