:root{
    --base-color1: #f5f5f5;
    --base-color2: #ffffff;
    --text-color: #1d1d1d;
    --secondary-text: #323232;
    --base-variant: #e91616

}
.darkmode{
    --base-color1: #1d1d1d;
    --base-color2: #2f2f2f;
    --text-color: #f5f5f5;
    --secondary-text: #dedfea;
    --base-variant: #891818
}

*{
    scroll-behavior:smooth;
}

body{
    font-family: "Kanit", serif;
    background-color: var(--base-color1);
    margin: 0px;
    padding: 0px;
}

section{
    margin: 0px;
    padding: 0px;
    z-index: 0;
}


    .navbar {
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 1px 30px;
        padding: 10px;
        background-color: var(--base-color1);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
    
    li{
        display: list-item;
    }
    .menu {
        list-style: none;
        display: flex;
        margin: 0;
        padding: 0;
        font-size: 120%;
    }  
    .menu li {
        position: relative; 
    } 
    .menu a {
        display: block;
        padding: 3% 40px;
        color: var(--text-color);
        text-decoration: none;
        text-align: center;
        transition: ease 2s;
    }
    .right-nav {
        margin-left: auto; 
        padding-right: 10px; 
    }

    .vertical-bar {
        width: 2px; 
        height: 50px;
        border-radius: 50%;
        background-color: var(--text-color); 
        margin: 0 60px 0px 1px; 
        opacity: 0.5;
        
    }
    

    .submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--base-color2);
        list-style: none;
        padding: 0;
        margin: 0;
        min-width: 180px;
        border-radius: 10px;
        box-shadow: 0px 10px 30px ;
        
    }

    .submenu li a {
        padding: 5% 7%;
        text-align: start;
        transition: ease 2s;
    }

    .dropdown{
        flex: 1;
        text-align: center;
        margin: 0 20px ;
    }
    
    .dropdown:hover .submenu {
        display: block;
    }
    .dropdown a:hover{
        background-color: var(--base-variant);
    }
      
    .submenu li a:hover {
        background-color: var(--base-variant);
        border-radius: 10px;
        transition: ease 1s;
    }
    .submenu li a:not(:hover) {
        background-color: var(--base-color2);
        border-radius: 10px;
        transition: ease 1s;
    }

    .animation, .animation1{
        padding-inline: 5px;
        color: var(--text-color);
        border-radius: 10px;
        flex-direction: row;
        text-decoration:dashed;
        align-items: center;
        width: 70%; 
    }

    .animation:hover,.animation1:hover{
        transition: ease 1s;
        color: var(--secondary-text);
        background-color: var(--base-variant);
    }

    .animation:not(:hover),.animation:not(:hover){
        transition: ease 1s;  
        color: var(--text-color); 
        
    }

    .home{
        list-style: none;
        margin: -40px 10% 0 -30px ;
    }

    .home_active, .home_inactive {
        position: absolute;
        
        
    }
    .home_active, .home_inactive a {
        padding: 0; 
        margin:0;
    }

    .home_active, .home_inactive a:hover {
        margin: 0;
        padding: 0;  
    }
    .home_active{
        z-index: 0;
    }

    .home_inactive{
        
        z-index: 10;
    }

    .home_inactive:hover {
        opacity: 0;
        transition:ease 1.8s ;
    }

    .home_inactive:not(:hover) {
        opacity: 1;
        transition:ease 0.8s ;
    }

    #theme-switch {
        border-radius: 50%;
        background-color: var(--base-color1);
        border: none;
        padding: 5px;
        cursor: pointer;
    }

    #theme-switch svg{
        fill: var(--text-color);
        
    }

    #theme-switch svg:last-child{
        display: none;
    }

    .darkmode #theme-switch svg:first-child{
        display: none;
    } 

    .darkmode #theme-switch svg:last-child{
        display: block;
    } 

    .index h1{
        font-family: "DM Serif Text", serif;
        color: var(--text-color);
        font-size: 500%;
        text-align: center;
        padding: 10%;
        z-index: 1;
    }
    .titre{
        font-size: 220%;
        margin-top: 5%;
        text-align: center;
        padding: 0;
        color: var(--text-color);
        margin: 0 10%;

    }

    .tout:hover{
        font-size:122% ;
        transition: ease 1s;
    }

    .tout:not(:hover){
        font-size:100% ;
        transition: ease 1s;
    }

    footer{
        background-color: var(--base-color2);
        padding:3% 2% 2% 10% ;
        display: flex;
        box-shadow: inset 0 1px 15px  ;
        justify-content: space-between;
        font-size: x-large;
    }

    footer h5 {
        color: var(--text-color);
        opacity: 0.6;   
    }

    footer h5 a {
        color: var(--text-color);
        text-decoration: underline;
    }
    footer .lien {
        text-decoration: underline;
        color: var(--text-color);
        text-align: start;
        opacity: 0.6;

    }

    footer a svg{
        opacity: 0.6;
        margin-top: 10%;
        fill:var(--text-color) ;
    }

    .cpu h1{
        color:var(--text-color);
        text-shadow: 2px 10px 11px black;
        margin-top: 7%;
        font-size: 600%;
        font-family: "Press Start 2P", serif;
        text-align: center;
        display: block;  
    }

    .cpu .flex-card,.flex  {
        display: flex;
    }
    
    .cpu .flex-card  {
        justify-content: space-around;
        flex-wrap: wrap;
        flex: 1;
        margin: 10% 10%;
        margin-bottom: 0;
    }

    .cpu .descripcion,h3{
        color: var(--text-color);
        text-align: start;
        margin: 10% 10% ;
        font-size: 200%;
    }

    .cpu img{
        margin-top:2% ;
        margin-right: 10%;
        --size-redstone:30%;
        display: flex;
        width:var(--size-redstone) ;
        height: var(--size-redstone);
    }

    .cpu h3 {
        font-size: 250%;
        margin: 7% 10% ;
        margin-bottom: 16%;
    }
    
    .cpu .flex-card section  {
        margin: 350px 13px;
        margin-top: 0;
    }

    .card{
        position: absolute;
        display: flex;
        justify-content: center;
        align-content: center;
        align-items: center;
        z-index: 1;
        background-color: var(--base-color2);
        box-shadow: 0 0 10px black;


    }

    .card:hover{
        transform: translateY(-300px);
        transition:  0.6s;
    }
    .card:not(:hover){
        transform: translateY(-100px);
        transition:  8s;
    }

    .card {
        width: 400px;
        height: 300px 
    }
    
    .card img{
        width: 100%; 
        height: 100%; 
        padding-left: 10%;
        cursor: pointer;
        object-fit: contain; 
    }  
    .card .xor{
        width: 90%; 
        height: 90%;  
    }
    

    .content{
        background-color: var(--base-color2);
        margin: 0;
        color: var(--text-color);
        width: 360px;
        max-height: 300px;
        padding: 20px;
        box-shadow: 0 0 3px black;
    }
    .content a{
        text-decoration: underline;
        color: var(--text-color);
    }
    .content h6{
        text-align: center;
        margin: 0;
        padding: 0;
        font-size: 150%;  
    }


    #alu h2{
        font-size: 600%;
        color: var(--text-color);
        text-shadow: none;
        transition: ease 2s;
        text-align: center;
        margin-top: -3%;
        font-family: "Press Start 2P", serif;
         
    }

    .alu-div{
        font-size: 200%;
        display: flex;
        flex-wrap: wrap;
        margin: 7% 15%;
        margin-bottom: 2%;
    }
   
    .toggle-checkbox {
        display: none;
    }

    .toggle-label {
        display: inline-block;
        cursor: pointer;
        color: var(--text-color);
        padding: 10px;
        border-radius: 5px;
        font-weight: bold;
        background-color: var(--base-color2);
        transition: background-color 0.3s ease-in-out;
        box-shadow: 0 0 10px black;
    }

    .toggle-content {
        display: none;
        opacity: 0;
        transition:0.5s ease-in-out;
        background-color: var(--base-color2);
        padding:15px ;
        border-radius: 5px;
        margin-top: 10px;
        box-shadow: 0 0 10px black;
    }

    .toggle-checkbox:checked + .toggle-label {
        text-shadow: 0 0 5px var(--text-color);
        color: var(--text-color);
    }

    .toggle-checkbox:checked + .toggle-label + .toggle-content {
        display:block;
        opacity: 1;
        background-color: var(--base-color2);
        color: var(--text-color);
    }

    .sous_titre , .sous_titre2 , .dev ,.dev2{
        margin:0 60px ;
    }
      

    .item2 img{
        margin-left:200px ;
        margin-bottom: 2%;
    }   

    .sous_titre{
        color: var(--text-color);
        font-size: 240%;
        margin-bottom: 3%;
    }
    
    
    .dev{
        color: var(--secondary-text);
        font-size: 150%;
        display: flex;
        align-items: center;
        width: 50%;
        margin-bottom:3% ;
    }

    
    .sous_titre2{
        color: var(--text-color);
        font-size:210%;
        display: flex;
        justify-content: end;
    }
    
    
    .dev2{
        color: var(--secondary-text);
        font-size: 150%;        
        display: flex;
        align-items: center;
        flex-direction: row-reverse;
        text-align: right;
        margin-bottom: 15%;
        gap: 7%;

    }
    
    .item30{
        width: 100%;  
    }
    
    .title-first-ad h2{
        font-size:500%;
        color: var(--text-color);
        font-family: "Press Start 2P", serif;
        text-shadow: none;
        transition: ease 2s;
        text-align: center;
        margin-bottom: 7%;
    }
    #constructeur {
        margin-top: 100px; 
    }
    #constructeur h1 {
        color: var(--text-color);
        text-shadow: 2px 10px 11px black;
        margin-top: 7%;
        font-size: 600%;
        font-family: "Press Start 2P", serif;
        text-align: center;
    }
    #constructeur .flex {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin: 5% 10%;
    }
    #constructeur .descripcion {
        color: var(--text-color);
        font-size: 200%;
        flex: 1;
        margin: 5%;
    }
    #constructeur img {
        height: auto;
        flex: 1;
        margin: 5%;
    }

    #registre{
        margin-top: 5%;
        text-align: center;
        font-family: "Press Start 2P", serif;
        font-size: 500%;
        color: var(--text-color);
    }

    #registre {
        right: auto;
    }
    #ram h1 , #hdd h1 {
        color: var(--text-color);
        text-shadow: 2px 10px 11px black;
        margin-top: 7%;
        font-size: 600%;
        font-family: "Press Start 2P", serif;
        text-align: center;
        display: block;
    }
      
    .flex {
        display: flex;
    }
      
    .descripcion {
        color: var(--text-color);
        text-align: start;
        margin: 10% 10%;
        font-size: 200%;
    }
      
    #ram img {
        margin-top: 2%;
        margin-right: 10%;
        width: 30%;
        height: auto;
    }
    
    .item-registre{
        width: 50%;
    }
    .item-registre article{
        margin-top: -25%;
    }

    .item-registre img{
        margin-top: -50%;
        margin-left: -60%;
    }

    .item4 {
        width: 100%;
        margin: 0 60px;
    }
    main{
        margin: 10% 0 ;
    }
    main .titre {
        margin: 10% 0%;
    }
    main .sous_titre{
        margin-bottom: 2%;
        margin-top: 5% ;
    }
    main a {
        color: var(--text-color);
    }

    .code-container {
        background-color: var(--base-color2);
        box-shadow: 0 0 10px black;
        border-radius: 5px;
        padding: 15px;
        margin: 20px 0;
        overflow-x: auto;
        font-family: monospace;
    }
      
    .code {
        display: block;
        white-space: pre;
    }

    #ram  , #hdd{
        font-size: 80%;
        margin-bottom: -5%;
    }