body {
    margin: 10px auto 0;
    display: flex;
    flex-direction: column;
    
    text-align: center;
    align-items: center;

    max-width: 100vw;
    width: 90%;

    font-family: "Montserrat", sans-serif;
    
    background-color: lightblue;
    background-image: url(../images/jigsaw.svg);
    background-repeat: repeat;
    background-size: 50px 50px;
    background-blend-mode: overlay;
}

/* Main Container - Contains aside and main */
.main-container {
    display: flex;
    flex-direction: row;
}

h1, h2 {
    font-weight: bold;
    color: darkred;
}

h1 {font-size: 3em;}
h2 {font-size: 2em;}
h3 {font-size: 1.5em;}

.left-text{text-align: left;}

nav {
    display: flex;
    justify-content: center;
    font-weight: bold;
    gap: 1.2rem;
}
nav a:hover {
    font-weight: bolder;
}
nav a {
    transition: all 0.5s ease;
}

/* Side Navigation  */
#side-nav {
    display: none;
    visibility: hidden;
    flex-direction: column;
    position: sticky;
    top: 50%;
    left: 10px;
    z-index: 99;    
}
aside {
    display: flex;
    flex-direction: column;
    transform: translateY(-5%);
}


header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
}

section, .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Section:not(#Home) is used so the background card can be applied to header */
section:not(#Home), header, #side-nav {
    background: linear-gradient(135deg, rgba(255, 168, 183, 0.4), rgba(128, 255, 128, 0.4));
    border: blue 2px solid;
    border-radius: 20px;
    padding: 1rem;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
}

/* Back to Top Button and Side Navigation styling */
.back-to-top, #side-nav a {
    background-color: #007bff;
    color: white;
    border-radius: 20px;
    border: black 2px solid;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 130px;
}

/* About Container - Contains image and paragraph */
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}
.img-container {
    width: clamp(120px, 50vw, 400px);
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 20px;
    align-items: top;
    flex: 1;
}
#my-photo {
    width: 100%;
    transform: translateY(-35px);
}
.paragraph-container {
    flex: 3;
    max-width: auto;
}


/* Contact Form Styling */
ol {
    padding-left: 1rem;
    list-style: square;
}

li::marker {
    color: darkblue;
    font-size: 1.5em;
}

section#Contact fieldset {
    border: 2px solid darkblue;
    padding: 20px;
    border-radius: 10px;
    background-color: lightblue;
}
input, select, textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    resize: none;
}
button {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    background-color: darkblue;
    color: white;
    font-weight: bold;
    cursor: pointer;
}
input[type="checkbox"] {
    width: 20px;
    height: 20px;
}
label {
    font-weight: bold;
    color: darkred;
}

/* Media Queries */
@media screen and (max-width: 640px) {
    body {font-size: 14px;}
    h1 {font-size: 2rem;}
    h2 {font-size: 1.5rem;}
    h3 {font-size: 1.2rem;}
}
@media screen and (min-width: 641px) {
    body {font-size: 16px;}
    h1 {font-size: 2.2rem;}
    h2 {font-size: 1.8rem;}
    h3 {font-size: 1.4rem;}
    .about-container {
        flex-direction: row;
    }
}
@media screen and (min-width: 1025px) {
    body {font-size: 18px;}
    h1 {font-size: 2.5rem;}
    h2 {font-size: 2.2rem;}
    h3 {font-size: 1.7rem;}
    #side-nav {
        display: flex;
        visibility: visible;
    }
    .main-container {        
        gap: 20px;
    }
    
    #nav-atas, #nav-bawah {
        display: none;
    }
}