*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: 'Quicksand', sans-serif;
}

body{
    margin: 0;    
    overflow-x: hidden;
}

nav{
    top: 0;
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2D3250;
    color: #ddd;
    padding: 5px; 
    z-index: 1;
}

nav #logo {
    margin-left: 20px;
}

nav ul {
    display: flex;
    justify-content: end;
    list-style-type: none;
    margin-right: 20px;
    gap: 1rem 1rem;
    z-index: 1;
}

nav ul li a {
    text-decoration: none;
    background-color: none;
    color: #ddd;
}

nav ul li a:hover {
    color: yellow;
}

nav #menu-toggle{
    display: none;
}

main{
    display: flex;
    padding: 20px;
    margin-top: 50px;
}

article{
    margin-top: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 20px;
}

main aside{
    display: flex;
    position: relative;
    flex-direction: column;
    margin-top: 10px;
    margin-left: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    border-color: #ddd;
    max-width: 220px;
}

main #aside-toggle{
    display: none;
}

main aside input{
    display: none;
}

img{
    padding : 10px;
    max-height: 300px;
}

#garis{
    border: 10px;
    border-style: solid;
}

#biodata{
    margin-left: 10px;
}

#table-biodata{
    margin-left: 10px;

}

#biodata-media{
    text-align: center;
    
}

#img-media{
    max-height: 50px;
    align-items: center;
}

#img-icon{
    max-height: 70px;
    max-width: 70px;
}

#img-sertifikat{
    max-height: 150px;
    max-width: 200px;
    height: max-content;
    width: max-content;
    image-rendering:optimizeQuality;
}

footer{
    display: flex;
    position:absolute;
    background-color: #2D3250;
    color: #ddd;
    padding: 5px;
    margin-right: 10px;
    width: 100%;
    align-items: center;
    justify-content:space-between;
}
footer #copyright span{
    margin-left: 20px;

}
footer #contact span{
    margin-right: 10px;
}
footer #contact a{
    width: 20px;
    height: 20px;
}

/* Responsive  */
/* tablet mode */
@media screen and ( max-width: 768px ) {

}

/* mobile mode */
@media screen and ( max-width: 576px ) {
    nav ul{
        right: 0;
        top: 0;
        position: absolute;
        width: 50%;
        height: 100vh;
        margin-right: 100%;
        margin-top: 30px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        background-color: #2D3250;
        gap: 1rem 0.5 rem;
    }
    nav ul.nav-slide{
        margin-right: 0;
    }
    nav ul li{
        margin-top: 5px;
    }
    nav #menu-toggle{
        display: flex;
        flex-direction: column;
        height: 20px;
        justify-content: space-between;
        position: relative;
    }
    nav #menu-toggle span{
        display: block;
        height: 4px;
        width: 20px;
        border-radius: 2px;
        background-color: #ddd;
        transition: all 0.3s;
    }
    nav #menu-toggle input{
        position: absolute;
        width: 25px;
        height: 22px;
        right: -5px;
        top: -5px;
        opacity: 0;
        cursor: pointer;
        z-index: 2;
    }
    nav #menu-toggle span:nth-child(2){
        transform-origin: 0 0;
    }
    nav #menu-toggle span:nth-child(4){
        transform-origin: 0 100%;
    }
    nav #menu-toggle input:checked ~ span:nth-child(2){
        transform: rotate(45deg) translate(2px, 1px);
    }
    nav #menu-toggle input:checked ~ span:nth-child(3){
        transform: scale(0);
    }
    nav #menu-toggle input:checked ~ span:nth-child(4){
        transform: rotate(-45deg) translate(1px, 0);
    }

    main aside{
        display: none;
        right: 0;
        top: 20;
        margin-right: 0;
        position: absolute;
        width: 50%;
        flex-direction: column;
        justify-content: flex-start;
        background-color: #ffffff;
    }

    main aside.aside-slide{
        display: block;
    }

    main #aside-toggle{
        display: block;
    }

    main #aside-toggle input{
        writing-mode: vertical-lr;
        position: fixed;
        justify-content: center;
        text-align: center;
        top: 40%;
        bottom: 50%;
        margin-right: 0;
        background-color: #2D3250;
        color: #ffffff;
        border-radius: 50%;
        width: 50px;
        height: 150px;
        cursor: pointer;
        z-index: 10;
    }
    footer{
        display: flex;
        background-color: #2D3250;
        color: #ddd;
        padding: 5px;
        align-items: center;
        justify-content:space-between;
    }
    footer #copyright span{
        margin-left: 20px;

    }
    footer #contact span{
        
        margin-right: 20px;
    }
    footer #contact a{
        width: 20px;
        height: 20px;
    }
}


