@import url('https://fonts.googleapis.com/css2?family=Square+Peg&display=swap');


/* Colors
#182B56; Naviblue:  #182B56
#5C766C; Armygreen: #5C766C
#78181C; Bloodred:  #78181C
#000000: Raven:     #000000
*/



body {
    background: white;
    color: #182B56; /* Naviblue: #182B56 */
    font-family: 'Square Peg', cursive;
    line-height: 1.6;
    padding: 20px;
    text-align: center;
}

#body-sustainability {
    background: white;
    color: #5C766C; /* Armygreen: #5C766C */
}

#body-projects {
    background: white;
    color: #78181C; /* Bloodred:  #78181C */
}

#body-showcase {
    background: white;
    color: #000000; /* Raven:     #000000 */
}

section {
    font-size: 60px; /* Increased font size */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    margin-bottom: 40px;
}

h2 {
    font-size: 80px; /* Adjust the font size as needed */
    /*text-transform: uppercase; Transforms text to uppercase */
   /* font-family: 'Sedgwick Ave Display', cursive; */
   /*font-family: 'Permanent Marker', cursive; */
}

a {
    text-decoration: none; /* Removes the underline from links */
    color: inherit; /* The link text color will be the same as the surrounding text */
}


#center {
    margin-top: 20%;
}



/* mobile */
@media screen and (max-width: 600px) {
    body {
        padding: 10px;
    }

    section {
        font-size: 40px; /* Slightly smaller font size for mobile */
    }
    .by-merlin {
        font-size: 20px; /* Slightly smaller font size for mobile */
    }
    h2 {
        font-size: 60px; /* Adjust the font size as needed */
    }
}



/* Existing styles */

.logo-container {
    text-align: center;
    margin-top: 50px; /* Add some space above the logo */
}

.logo {
    width: 100px; /* Set a fixed width for the logo */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 0px; /* Space between the logo and the text "by Merlin" */
}

.by-merlin {
    font-size: 30px; /* Set font size for "by Merlin" */
    color: #182B56; /* Naviblue: #182B56 */
    margin-top: 0px;
}

.by-merlin-sustainability {
    font-size: 30px; /* Set font size for "by Merlin" */
    color: #5C766C; /* Armygreen: #5C766C */
    margin-top: 0px;
}

.by-merlin-projects {
    font-size: 30px; /* Set font size for "by Merlin" */
    color: #78181C; /* Bloodred:  #78181C */
    margin-top: 0px;
}

.by-merlin-showcase {
    font-size: 30px; /* Set font size for "by Merlin" */
    color: #000000; /* Raven:     #000000 */
    margin-top: 0px;
}





/* Scrollbar style right
::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
/* }

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1); 
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px; 
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

Make sure to add the rest of the styles below this comment */







#progressBar {
    position: fixed;
    background: rgba(0, 0, 0, 0.2);
    height: 4px;
    top: 0;
    left: 0;
    width: 0%;
    z-index: 99; /* Make sure it's above other content */
}





/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    body {
        background: #182B56; /* Naviblue: #182B56 */
        color: white;
    }

    #body-sustainability {
        background: #5C766C; /* Armygreen: #5C766C */
        color: white; 
    }

    #body-projects {
        background: #78181C; /* Bloodred:  #78181C */
        color: white; 
    }

    #body-showcase {
        background: #000000; /* Raven:     #000000 */
        color: white; 
    }

    #progressBar {
        background: rgba(255, 255, 255, 0.2);
    }

    .by-merlin {
        color: white; 
    }

    .by-merlin-sustainability {
        color: white; 
    }

    .by-merlin-projects {
        color: white; 
    }

    .by-merlin-showcase {
        color: white; 
    }

    a {
        text-decoration: none; /* Removes the underline from links */
        color: inherit; /* The link text color will be the same as the surrounding text */
    }
    
    /* If you have other elements you want to style for dark mode,
       add them here */
}








.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}

.closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    cursor: pointer;
}






/* Instagram Icon Styling */
.overlay a i {
    margin-right: 8px;
}

/* Ensure icons are properly aligned and sized */
.fab {
    vertical-align: middle;
}








/* LANGUAGES */
.languages .flex {
    flex-wrap: wrap;
}

.languages .card {
text-align: center;
margin: 18px 10px 40px;
transition: transform 0.2s ease-in;
}

.languages .card h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.languages .card:hover {
    transform: translateY(-15px);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    overflow: auto;
    padding: 0 40px;
}

.card {
    background-color: #fff;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin: 10px;
}

.card img {
    width: 150px;
}

.flex {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}