:root {
    --bg-color: #F2F9FE;
    --text-color: #111729;
    --cta-btn: #2A4DD0;
    --nav-wrapper: #FFFFFF;
}

body.dark-mode {
    --bg-color: #111729;
    --text-color: #FFFFFF;
    --nav-wrapper: #111729;
}

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

body {
    height: 100vh;
    background-color: var(--bg-color);
    font-family: "Poppins", sans-serif;
    margin-bottom: 1rem;
}

.wrapper-body {
    padding: 1rem;
}

P {
    font-weight: 600;
    font-size: .8rem;
    color: var(--text-color)
}

h1 {
    font-size: 1.8rem;
    color: var(--text-color)
}

h3 {
font-weight: 300;
color: var(--text-color); 
font-size: 1rem;
}

header {
display: flex;
/* margin-top: 1rem; */
}

.ham-menu {
position: relative;
left: 170px;
cursor: pointer;
}

nav {
background-color: var(--nav-wrapper);
transform: translateX(165%);
position: fixed;
height: 100vh;
width: 60vw;
display: flex;
flex-direction: column;
text-align: center;
padding: 3rem;
gap: 2rem;
font-size: larger;
font-weight: 600;
color: var(--text-color);
z-index: 1;
transition: transform .3s ease-in-out;
}

.nav-abt {
color: #2A4DD0;
text-decoration: underline;
}

.active {
transform: translateX(60%);
}

nav img {
max-width: 50px;
position: absolute;
right: 5px;
top: 5px;
padding: .5rem;
}

.toggle-kotak {
    position: relative;
    width: 40px;
    height: 20px;
    background-color: #223344;
    border-radius: 50px;
    justify-content: center;
    align-items: center;
    left: 50px;
}

.toggle-ball {
    position: absolute;
    top: 1.9px;
    transform: translateX(-110%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: white;
    transition: all .3s ease-in-out;
}

.darkmode-toggle {
    transform: translateX(20%);
}

.logo-light {
    position: absolute;
    top: -6px;
    right: 14px;
    width: 75%;
}

.logo-dark {
    position: absolute;
    top: -6px;
    right: -5px;
    width: 75%;
}

.image-wrapper {
display: flex;
align-items: center;
justify-content: center;
}

.body-img {
max-width: 70%;
}

button {
font-family: "Poppins", sans-serif;
font-size: 1rem;
background-color: var(--cta-btn);
color: white;
padding: .5rem 1.5rem;
border-radius: 10px;
border: none;
}

.cta-btn {
display: flex;
gap: 1.5rem;
text-align: center;
margin: 2rem 0;
}

.cta-btn a {
text-decoration-line: underline;
color: var(--cta-btn);
font-weight: 600;
font-size: .9rem;
align-items: center;
display: flex;
}

.list {
display: flex;
flex-direction: row;
gap: .5rem;
}

.list-bawah {
display: flex;
align-items: center;
gap: 5px;
}

.list-bawah p {
font-weight: 300;
color: var(--text-color); 
}

.list-bawah img {
max-width: 20px;
position: relative;
bottom: 7px;
}

.author-info {
font-size: 14px;
text-align: center;
margin-top: 3rem;
color: rgb(55, 65, 81);
}

.author-info a {
text-decoration: none;
}

.author-info p {
    font-weight: 400;
    font-size: smaller;
}

@media (min-width: 1024px) {
    .ham-menu {
        display: none;
    }

    nav {
        all: unset;
        display: flex;
        justify-content: center;
        gap: 3rem;
        margin-top: 3rem;
        font-weight: 600;
        color: var(--text-color);
    }

    .close-btn {
        display: none;
    }

    .logo-atas {
        position:absolute;
        top: 45px;
    }

    .toggle-kotak {
        position: relative;
        left: 400px;
    }

    .toggle-ball {
        position: absolute;
        transform: translateX(20%);
    }

    .body-img {
        width: 100%;
    }

    .body-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .tulisan-body {
        margin-top: 4rem;
    }

    h1 {
        font-size: 4.5rem;
    }
}
