 /* MAIN (considering footer and navbar for the main) */
main {
    padding-top: 10vh; 
    padding-left: 5vh;
    padding-right: 5vh; 
    padding-bottom: 8vh;
}

/*-------------------------------- NAVBAR --------------------------------*/
.navbar {
    list-style-type: none; /* no bullet points */
    background-color: #417fab;
}

/*-------------------------------- DROPDOWN LIST --------------------------------*/
.dropdown-list {
    display: none; /* hide the list initially */
    position: absolute;
    top: 100%; /* position below the button */
    right: 0%; /* align with the left edge of the button */
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px; /* rounded corners */
    z-index: 1000;
    padding: 10px;
    width: 150px;
}
.dropdown-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dropdown-list li {
    margin: 5px 0;
}
.dropdown-list a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 10px;
    border-radius: 3px;
    transition: background-color 0.3s, color 0.3s;
}
.dropdown-list a:hover {
    background-color: #5cb0ed;
    color: #ffffff;
}

/*-------------------------------- BODY --------------------------------*/
body {
    /* background-color: #f1e5e5; */
    color: #333;
    transition: background-color 0.3s, color 0.3s;
    background: linear-gradient(135deg, #FFD1A4, #a0d8f8);
}
#bodyID {
    overflow: visible;
}
section {
    padding: 5vh 0; 
}

/*-------------------------------- CARDS (equally spaced) --------------------------------*/
.card-container {
    display: flex; 
    justify-content: space-between; 
    margin-top: 2%; 
    overflow-x: auto;
}
.card-item {
    flex: 1;
    margin: 0 2%;
    padding: 1%;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.9); 
    border-radius: 3%; /* rounded corners */
    box-shadow: 0 2% 5% rgba(0, 0, 0, 0.1); /* subtle shadow effect */
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}
.card-item .picture {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}


/*-------------------------------- BUTTONS (Resizable and fixed-size) --------------------------------*/
.btn-container {
    display: flex;
    justify-content: center;
    gap: 2%;
    margin-top: 3%;
}
.btn-circle-resizable {
    padding: 2% 4%; /* size relative to the parent container */
    border-radius: 8vw;
    max-width: 200px;
    max-height: 60px;
    text-align: center;
    display: inline-block;
    margin: 2%; /* margin relative to the parent container */
}
.btn-circle {
    padding: 13px 18px;
    border-radius: 60px;
    text-align: center;
    display: inline-block;
    margin: 10px;
}

/*-------------------------------- HOMEPAGE texts and img --------------------------------*/
.home-section {
    width: 100%;
    min-height: 100vh;
    margin-top: 5%;
    padding: 10px;
}
.home-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.home-img img {
    min-width:200px;
    max-width: 450px;
    height:auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.home-details {
    max-width: 800px;
    margin-left: 5%;
}
.home-details h1 {
    font-size: 3rem;
    font-family: Verdana, sans-serif;
    font-weight: 450;
    margin: 0;
    color: #000000;
}
.home-details h2 {
    font-size: 1.8rem;
    color: #000000;
    margin-top:20px;
}
.home-details p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.8); /* Softer white for the description */
}
.home-divider {
    width: 100%;
    height: 2px;
    background: rgba(61, 60, 60, 0.5);
    margin-top: 20px;
    margin-bottom: 20px;
}
@media (max-width: 768px) { /* Change the main page behaviour on smaller screens */
    .home-container {
        flex-direction: column;
        text-align: center;
    }
    .home-img img {
        margin-bottom: 20px;
        width: 100%;
    }
    .home-details {
        margin-left: 0; 
    }
}

/*-------------------------------- PROJECT CARDS --------------------------------*/
.project-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}
.project-item:hover {
    background-color: #e0e0e0; 
}
.project-divider {
    height: 1px;
    background-color: #ddd; 
    margin: 15px 0;
}
.project-image img {
    display: block;
    margin: 0 auto;
}

/*-------------------------------- DARK MODE ----------------------------------*/
/* BODY */
body.dark-mode {
    /* background-color: #383636c4; */
    background: linear-gradient(135deg, #3a5b8ead, #3A5F5D);
    color: #ffffff;
}

/* NAVBAR */
.dark-mode .navbar {  
    background-color: #2c485c;
}
.dark-mode .navbar .nav-link,
.dark-mode .navbar .navbar-brand {
    color: #ffffff;
}

/* DROPDOWN LIST */
body.dark-mode .dropdown-list {
    background-color: #2c485c; 
}
body.dark-mode .dropdown-list a {
    color: #ffffff
}
body.dark-mode .dropdown-list a:hover {
    background-color: #3b82f6; 
    color: #000000;
}

/* HOMEPAGE texts and img */
.dark-mode .home-details h1,
.dark-mode .home-details h2 {
    color: #ffffff;
}
.dark-mode .home-details p {
    color: rgba(255, 255, 255, 0.8);
}
.dark-mode .home-divider {
    background: rgba(255, 255, 255, 0.5);
}

/* BUTTON */
.dark-mode button {
    background-color: #333;
    color: #ffffff;
    border: 1px solid #ffffff;
}

/* CARDS */
.dark-mode .card-item {
    background-color: rgba(44, 72, 92, 0.9);
    color: #ffffff;
}

/* PROJECT CARDS */
body.dark-mode .project-item {
    background-color: #333;
    color: #ffffff;
}
body.dark-mode .project-item:hover {
    background-color: #444;
}
body.dark-mode .project-divider {
    background-color: #555; 
}
body.dark-mode .project-item p {
    color: #ffffff;
}
/*-----------------------------------------------------------------------------*/