* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: Rubik;
    src: url(font/Rubik.ttf);
}

body {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    background-color: #111;
    font-family: 'Rubik', sans-serif;
    color: white;
}

.fr{
    display: block;
}

.en{
    display: none;
}


/*gestion du background*/

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Derrière le contenu */
    pointer-events: none;
}

/*image*/
#image-project {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 0.4s ease-in-out;
}

/*iframe*/
#video-player {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

#filter{
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1; 
    z-index: 3;
}

#video-player.fade-out {
    opacity: 0;
}

#image-project.fade-out {
    opacity: 0;
}

/*gestion du video player en fonction de la taille de l'écran*/
@media (min-aspect-ratio: 16/9) {
    #video-player {
        width: 100%;
        height: 115%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-aspect-ratio: 16/9) {
    #video-player {
        width: 115%;
        height: 100%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/*Le contenu par dessus le background*/
.content {
    position: relative;
    z-index: 10;
    display: block;
    height: 100vh;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.topbar{
    top: 20px;
    left: 20px;
    right: 20px;
    display: block;
    position: fixed;
    justify-content:flex-start;
    align-items : center;
}

.topbar h1{
    display: inline-flex;
    background-color : rgba(0, 0, 0, 0.7);
    float: left;
    text-align: center;
    align-self: center;
    text-shadow: #000000 0 0 20px;
    font-size: 25.5px;
    padding : 5px 10px 5px 10px;
    font-weight: 500;
}

.lang-switch{
    height : 40px;
    display: inline-flex;
    float : right;
    padding: 0 8px 0 8px;
    background-color : rgba(0, 0, 0, 0.7);
}

.lang-switch a{
    display: inline-flex;
}

.lang-btn{
    display: inline-flex;
    font-family: 'Rubik', sans-serif;
    font-weight: 100;
    color: white;
    background-color : rgba(0, 0, 0, 0.3);
    transition: 0.1s;
    cursor: pointer;
    padding: 3px;
    align-self: center;
}

.lang-btn:hover{
    font-weight: bold;
    border: 0.2rem solid #e6c639;
}

.lang-btn.button-selected{
    font-weight: bold;
    border: 0.2rem solid #e6c639;
}


.icon{
    height: 30px;
    width: auto;
    display : inline-flex;
    cursor: pointer;
    align-self: center;
    margin-right : 10px;
    opacity: 0.9;
}

.icon:hover{
    opacity: 1;
}

#self-icon{
    height: 40px;
    border: 0.2rem solid #e6c639;
    float: left;
}

/*La description du projet*/
#description-box {
    display: block;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.7);
    text-align : justify;
    padding: 20px;
    margin-top: 100px;
    margin-left: 20px;
    margin-right: 20px;
    border-left: 0.4em solid #e6c639;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

#description-box.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

#description-content img{
    width: 60%;
}


#description-content p{
    font-weight: 100;
}

@media only screen and (max-height: 765px) {
    #description-content p{
        font-size: 14px;
    }
    #description-content img{
        display: none;
    }
}

@media only screen and (max-height: 600px) {
    #description-content p{
        font-size: 12px;
    }
    #description-content img{
        display: none;
    }
}

#description-content h2{
    font-weight: 500;
}

#description-content a{
    color : #e6c639;
}

/*le menu du bas*/
.bottom-menu{
    position: fixed;
    bottom: 135px;
    left: 20px;
    max-width: 100%;
}

.category-button{
    font-family: 'Rubik', sans-serif;
    color: white;
    background-color : rgba(0, 0, 0, 0.7);
    transition: 0.3s;
    padding: 8px 8px;
    font-size: 16px;
    border-top : none;
    border-left : none;
    border-right : none;
    margin-bottom: 0;
    font-weight: lighter;
    cursor: pointer;
}

.category-button:hover{
    font-weight: bold;
    border-bottom: 0.4rem solid #e6c639;
}

.category-button.button-selected{
    font-weight: bold;
    border-bottom: 0.4rem solid #e6c639;
}

@media only screen and (max-width: 450px) {
    .category-button{
        font-size: 14px;
    }
    .cartridge h2{
        font-size: 10px;
    }
}

.bottom-navbar{
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 100%;
}

.cartridge-area{
    align-items: left;
    background-color : rgba(0, 0, 0, 0.7);
    position: relative;
    display: inline-block;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: #666666 #434343;
    width: 45em;
    padding: 10px;
}

.cartridge{
    position: relative;
    display: inline-block;
    justify-content: center;
    text-align: center;
    margin-left: 0.5em;
    margin-right: 0.5em;
    width: 15%;
    
    cursor: grab;
}

.cartridge.hidden {
    display: none;
}

.cartridge img{
    max-width: 60px;
    transition: 0.1s;
    opacity: 0.8;
    
}

.cartridge:hover{
    img{
        opacity: 1;
    }
    h2{
        font-weight: 600;
    }
}

.cartridge h2{
    transition: 0.1s;
    color: #E6C639;
    font-size: 14px;
    font-weight: 400;
    text-shadow: #000000 0 0 20px;
}

@media only screen and (max-width: 47em) {
    .cartridge-area{
        max-width: 90%;
    }
    .cartridge h2{
        font-size: 12px;
    }
}

#console{
    position: relative;
    display: inline-block;
    margin-left: 4em;
    margin-right: 4em;
}

@media only screen and (max-width: 1170px) {
    #console{
        display: none;
    }
    #console img{
        display: none;
    }
}


#console img{
    max-width : 300px;
}
