

html, body{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;

    --dark:#2c2c54;
    --sub-dark:#40407a;
    --sub-sub-dark:#706fd3;
    --background:rgb(26, 26, 54);
    --secondary-transparent:#b33939;
    --secondary:#ff5252;
    --white:#f8f6f1;

    display: flex;
    flex-direction: column;

    min-height: 100vh;

}

*{
    color: var(--white);
}

a{
    text-decoration: none;
}

strong{
    padding: 2px;
    border-radius: 5px;
    background-color: var(--secondary-transparent);
    border-bottom: 3px solid var(--secondary);

    /* disable line return */
    white-space: nowrap;
}

p>a, #form>a, #ok>a{
    padding: 2px;
    border-radius: 5px;
    background-color: #ffde5944;
    border-bottom: 3px solid #ffdd59;

    /* disable line return */
    white-space: nowrap;
}

p>a:hover{
    background-color: #ffde596c;
}

/*
 |====================================================================================================================
 |  HEADER
 |====================================================================================================================
*/


header{
    background-color: var(--dark);
    color: var(--white);
    height: 50px;


    /* box-shadow: 10px 5px 5px rgba(0, 0, 0, 0.5); */
}
header>div{
    width: 90%;
    max-width: 1200px;
    height: 100%;

    padding: 0 5%;
    margin: 0 auto;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
header * {
    color: var(--white);
}
header nav{
    height: 100%;

    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
}

header h1{
    margin: 0;
}
header a{
    background-color: var(--sub-dark);
    padding: 5px 15px;
    border-radius: 5px;
    border-bottom: 3px solid var(--sub-sub-dark);
}
header a:hover{
    background-color: var(--sub-sub-dark);
}

header a.selected{
    font-weight: bold;
    color: #ef5777;
}

/*
 |====================================================================================================================
 |  FOOTER
 |====================================================================================================================
*/

footer{
    background-color: var(--dark);
    color: var(--white);
    height: 50px;

}

footer>div{
    width: 90%;
    max-width: 1200px;
    height: 100%;

    padding: 0 5%;
    margin: 0 auto;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}


/*
 |====================================================================================================================
 |  MAIN
 |====================================================================================================================
*/


main{
    position: relative;
    background-color: var(--background);
    width: 100%;

    flex-grow: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 60px;

    background-color: var(--background);

    overflow: hidden;



}


.home{
    width: calc(100% - 120px);
    margin: 60px 60px 0 60px;

    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
}

.home>div{
    background-color: var(--dark);
    width: calc(100% - 360px);
    max-width: 840px;
    padding: 30px 30px;
    min-height: 240px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}
.home>*{
    transform: translateX(1000vw);
}


.home *, .instruction *{
    line-height: 2em;
}
.home h2, .instruction h2{
    margin: 0;
}
.home ul{
    margin: 0;
}
.home p{
    margin: 0;
}
.home>div *{
    text-align: justify;
}

img{
    height: 300px;

}

.instruction{
    width: 100%;

    display: flex;
    flex-direction: row;
    justify-content: center;

    margin-top: 60px;

}


.instruction>.content{
    box-sizing: border-box;
    width: 85%;
    margin-right: 5%;
    padding: 30px;
    max-width: 1200px;
    border-radius: 10px;

    background-color: var(--dark);
}
.instruction>.circle{
    /* take padding and margin in witdh */
    width: 10%;
    max-width: 120px;
}
.circle{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.circle>div{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--white);
    transform-origin: 50% 50%;

}

.line{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;


    position: relative;
    text-align: center;
}
.line>img{
    height: 100px;
}


.table-container{
    margin-top: 60px;
    padding: 30px;
    box-sizing: border-box;
    width: 90%;
    max-width: 500px;
    background-color: var(--dark);
    border-radius: 10px;
}

table{
    margin: 0 auto;
    border-collapse: collapse;

}
th, td{
    padding: 10px;
    /* border: 0.5px solid var(--white); */
    text-align: center;
}
tr{
    position: relative;
}

td>span, th>span{
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid var(--white);
}

tr:nth-child(odd){
    background-color: var(--sub-dark);
}
tr:nth-child(even){
    background-color: #393969;
}

.about{
    width: 440px;
    height: 440px;
    background-color: #2c2c54;
    margin-top: 60px;
    position: relative;
}

.about>div, .about>span{
    width: 100%;
    display: flex;
    flex-direction: row;
}
.about>div>div{
    width: 30px;
    height: 30px;
    background-color: var(--sub-sub-dark);
    margin: 5px;
}
.about>div>div.selected{
    background-color: var(--secondary) !important;
}


.about>div>span{
    width: 30px;
    height: 30px;
    display: flex;
    margin: 5px 0;
    justify-content: center;
    align-items: center;
}
.about>span>span:first-child{
    margin: 0;
}
.about>span>span{
    width: 30px;
    height: 30px;
    margin: 0 5px;

    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.about>#ok{
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 40px);
    padding: 20px;
    font-size: 20px;
    text-align: justify;

    display: flex;
    flex-direction: column;

    background-color: var(--dark);

    opacity: 0;
}
.about>#ok>*{
    text-align: center;
}

#vertical-line{
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: var(--white);
    top: 0;
    left: 0;
    transform: translateX(-1px);

}

/*#CODE#*/
#C7 #H4{
    /* checked: true; */
}

#form{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: none;
    flex-direction: column;
    gap: 20px;
    align-items: center;

    background-color: var(--dark);
    padding: 30px;
    border-radius: 10px;

    border: #6c6cb3 2px solid;
}


#form>input{
    background-color: transparent;
    border: #ffffff 2px solid;
    padding: 5px;
    border-radius: 5px;
}


#id{
    display: none;
}

@media (max-width: 950px){
    header>div>a{
        display: none;
    }
    header>div>nav>h1{
        display: none;
    }

    header>div>nav{
        width: 100%;
    }
}

@media (max-width: 600px){
    header>div>nav{
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    header>div>nav>a{
        background-color: unset;
        border: unset;
        text-align: center;
        border-bottom: 1px solid var(--white);
        border-radius: 0;
    }
    header>div>nav>a:nth-last-child(1){
        border-bottom: unset;
    }
    header{
        height: unset;
    }
    #id{
        display: block;
    }
    #di{
        display: none;
    }


}

@media (max-width: 800px){


    .home img{
        display: none;
    }

    .home{
        width: 100%;
        margin-top: 5vw;
    }
    .home>div{
        width: 90%;
        padding: 2%;
        border-radius: 5px;
        border: 1px solid var(--white);

        justify-content: space-evenly;
        min-height: unset;
    }
}

@media (max-width: 900px){
    .line{
        flex-wrap: wrap;
    }
    .line>img{
        width: 40%;
        height: unset;
    }

}