* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

:root {
    --footer-color: #033658;
    --body-color: #000000ff;
    --text-color: #e0f2e9;
    --button-drab: #755c1bff;
    --icon-blue: #1d70a2ff;
}

body {
    background-color: var(--text-color);
    margin: 0;
    padding: 0;
    height: 100%;

}

/* index */
.knowMalawi {
    text-align: center;
    font-family: Arial, sans-serif;
    margin: 20px;
}
.LableMalawi {
    font-size: 24px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}
.askbox {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.textaskMalawi {
    padding: 10px;
    width: 300px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}
.askButton {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
}
.answerbox {
    width: 60%;
    margin: 0 auto;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    display: none;
    text-align: left;
    font-size: 16px;
    min-height: 100px;
}

/* Home Icon */
.home-icon {
    position: fixed;
    top: 50px;
    right: 50px;
    color: var(--body-color);
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-icon:hover {
    transform: scale(1.1);
}

.home-image-icon {
    position: fixed;  
    top: 50px;  
    left: 50px;  
    height: 50px;
    width: 50px;
    border-radius: 50%;  
    object-fit: cover;  
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);  
    cursor: pointer;  
    z-index: 1000;  
    transition: opacity 0.3s ease, pointer-events 0.3s ease; 
}

/* Podcast Container */
.podcast {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 800px;
    margin: 20px auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.podcast-content h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #343a40;
}

.podcast-content p {
    font-size: 1em;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 20px;
}

.audio-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
}

audio {
    width: 100%;
    outline: none;
    border-radius: 5px;
}

.links {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    width: 100%;
}

.listen-btn,
.show-notes-btn {
    text-decoration: none;
    font-size: 1em;
    color: white;
    background-color: #007bff;
    padding: 8px 16px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.listen-btn:hover {
    background-color: #0056b3;
}

.show-notes-btn {
    background-color: #28a745;
}

.show-notes-btn:hover {
    background-color: #1c7a30;
}

.name {
    color: var(--body-color);
    font-size: 35px;
    margin-top: 10px;
    font-weight: bolder;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-align: center;
}

.pro {
    color: var(--text-color);
    font-size: 15px;
    margin-top: 5px;
    text-align: center;
}

.lacsonImage {
    height: 160px;
    width: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 50px;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    flex-wrap: wrap;
}

.contents {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 20px;
}

.details {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
    text-align: center;
}

/* Button alignment container */
.button-container {
    display: flex;
    justify-content: center;
    /* Centers buttons horizontally */
    align-items: center;
    /* Aligns buttons vertically */
    gap: 20px;
    /* Space between buttons */
    margin-top: 15px;
    flex-wrap: wrap; 
}


/* Resume button */
.clickResume {
    padding: 5px;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

/* Project button */
.clickproject {
    padding: 5px;
    border: none;
    cursor: pointer;
    font-size: 20px;
}


/*  */
.button-course{
    display: flex;
    justify-content: center;
    /* Centers buttons horizontally */
    align-items: center;
    /* Aligns buttons vertically */
    gap: 20px;
    /* Space between buttons */
    margin-top: 15px;
    width: 100%;
   
}

.clickcourse{
    padding: 5px;
    border: none;
    cursor: pointer;
    font-size: 20px;
    
}

button {
    background-color: var(--button-drab);
    color: var(--text-color);
    text-decoration: none;
    width: 180px;
    height: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

button:hover {
    background-color: transparent;
    color: var(--icon-blue);
    border: 2px solid var(--icon-blue);
    transition: all 0.3s ease;
}

.intro {
    color: var(--body-color);
    margin-top: 18px;
    text-align: center;
}

.introduction {
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    font-size: 20px;
    margin-bottom: -10px;
    height: max-content;
    padding: 0 20px;
    text-wrap: balance;
}

.icon a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease-in-out;
}

.icon a:hover .fa-x-twitter {
    color: #171515;
    /* Twitter Blue */
    transform: scale(1.1);
}

.icon a:hover .fa-youtube {
    color: #FF0000;
    /* YouTube Red */
    transform: scale(1.1);
}

.icon a:hover .bxl-github {
    color: #171515;
    /* GitHub Black */
    transform: scale(1.1);
}

.icon a:hover .bxl-linkedin {
    color: #0A66C2;
    /* LinkedIn Blue */
    transform: scale(1.1);
}

.icon a:hover .fa-spotify {
    color: #1DB954;
    /* Spotify Green */
    transform: scale(1.1);
}


.footer-icons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin-top: 80%; /* remember to adjust */

}

.footer-icons i {
    color: var(--body-color);
    padding-left: 18px;
}

.footer-icons li {
    list-style: none;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--footer-color);
    color: #fff;
    height: 60px;
    text-align: center;
    width: 100%;
    margin-top: 50px;
}

/* Removing blue highlight on touch devices for buttons, links, and icons */
button,
a,
.footer-icons .icon i {
    -webkit-tap-highlight-color: transparent;
}

/* arrow */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 45%;
    padding: 10px 15px;
    font-size: 20px;
    display: none;/* Hidden initially */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1000;
    text-align: center;
}

.scroll-to-top:hover {
    background-color: #0056b3;
    /* Darker blue for hover effect */
}

/* page course */
.excelproject{
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 20px;
    margin-top: 100px;
}

.footer-icons-excel{
    margin-top: 1000px; /* please dont forgt to adjust the icon margins when added other objects */
}
/* Project page */

/* .homebtn {
    font-size: 25px;
}

.containerproject .homebtn i {
    color: var(--body-color);
    display: flex;
    margin: -400px auto;
    padding-left: 100px;
}

.homebtn a {
    text-decoration: none;
} */

.lacsonImageproject {
    height: 160px;
    width: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 100px;
}


.containerproject {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.icons-footer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin-top: 65%; /* remember to adjust when added other objects */    
}

.contentsproject {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 20px;
}

.detailsproject {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
    text-align: center;
}



.introproject {
    color: var(--body-color);
    margin-top: 18px;
    text-align: center;
    margin-bottom: 100px;
}

.introductionproject {
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    font-size: 20px;
    margin-bottom: -10px;
    height: max-content;
    padding: 0 20px;
    text-wrap: balance;
}

.IHPS {
    height: 350px;
    width: 725px;
    border-radius: 10px;
    object-fit: cover;
    margin-top: 10px;
}

.footerproject {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--footer-color);
    color: #fff;
    height: 60px;
    text-align: center;
    width: 100%;
    margin-top: 50px;
    padding: 10px 0;
}



#progress-bar-container {
    width: 80%;
    background-color: #f3f3f3;
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 25px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    margin: 20px auto;
}

#progress-bar {
    height: 100%;
    width: 0;
    background-color: #4caf50;
    /* Green color for the bar */
    transition: width 0.3s ease-in-out;
    /* Smooth transition */
}

#progress-label {
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 18px;
    margin-top: -10px;
}

.read-more {
    margin-top: 10px;
    display: inline-block;
    color: #022e04;
    text-decoration: none;
    font-size: 16px;
}

.read-more:hover {
    color: #60df8c;
    /* Lighter green on hover */
    text-decoration: underline;
}

.read-more i {
    font-size: 16px;
    transition: transform 0.3s;
}

.read-more:hover {
    color: #76c893;
    /* Lighter green on hover */
    text-decoration: underline;
}

.read-more:hover i {
    transform: translateX(5px);
    /* Move arrow slightly to the right */
}

/* spotify */
.spotify_project{
    width: 45vw;
    margin-top: -30px;
}

.spotify_project h2{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 25px;
}
.spotify_project iframe{
    margin-top: -10px;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
}

.modal-content h2 {
    margin: 0 0 10px;
}

.modal-content p {
    margin: 0 0 20px;
    line-height: 1.6;
}

.close-btn {
    margin: 0 auto;
}

.modal-content .close-btn {
    background-color: #4caf50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.modal-content .close-btn:hover {
    background-color: #76c893;
}


/* Event Section */
.event-section {
    text-align: center;
    padding: 40px 10px;
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 900px;
    margin-bottom: 10px;
}

.event-title {
    font-size: 2rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin-bottom: 30px;
    color: #333;
}

.event-carousel {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

.slide {
    flex-shrink: 0;
    width: 100%;
    transition: transform 0.5s ease-in-out;
    text-align: center;
}

.slide img {
    width: 100%;
    border-radius: 10px;
}

.slide p {
    margin-top: 10px;
    font-size: 1rem;
    color: #555;
}

.slide i{
    color: #000000;
    font-size: 20px;
}
.slide a:hover .flutter{
    transform: scaleX(1.1);
   
}
/* #countdown {
    font-size: 18px;
    color: #ff0000;
    font-weight: bold;
    margin: -5px 0 -5px 0;
} */


/* Responsive Design */


/* index */
.knowMalawi {
    text-align: center;
    font-family: Arial, sans-serif;
    margin: 20px;
}

.LableMalawi {
    font-size: 24px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.askbox {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.textaskMalawi {
    padding: 10px;
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
}

.askButton {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

.answerbox {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    display: none;
    text-align: left;
    font-size: 16px;
    min-height: 100px;
    box-sizing: border-box;
}


    

@media (max-width: 768px) {
    .lacsonImage {
        height: 120px;
        width: 120px;
        margin-top: 50px;
    }

    .home-icon {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 20px;
    }

    button,
    a,
    .footer-icons .icon i {
        -webkit-tap-highlight-color: transparent;
        /* Remove blue highlight */
    }

    .footer-icons .icon i:active {
        color: var(--icon-blue);
        /* Provide a feedback color */
        transform: scale(1.1);
        /* Slight scaling on touch */
        transition: all 0.2s ease-in-out;
    }

    button:hover {
        background-color: var(--button-drab);
        color: var(--text-color);
        border: none;
        transition: none;
        outline: none;
    }

    .footer-icons .icon i:hover {
        transform: none;
        color: var(--body-color);
    }

    .name {
        font-size: 28px;
    }

    .pro {
        font-size: 14px;
    }

    /* Ai
    .LableMalawi {
        font-size: 20px;
    }

    .askbox {
        flex-direction: column;
        gap: 15px;
    }

    .textaskMalawi {
        width: 90%;
    }

    .answerbox {
        width: 90%;
        font-size: 14px;
    } */
    
    .introduction {
        font-size: 18px;
        border: 2px solid var(--text-color); 
        border-radius: 5px; 
        box-shadow: 0 8px 10px rgba(15, 0, 0, 0.1); 
        background-color: transparent; 
        margin: 10px 0; 
    }

    button {
        width: 150px;
        height: 35px;
        font-size: 14px;
    }

    

    .footer-icons {
        margin-top: -60px;
    }


    .footer-icons-excel{
        margin-top: 50px; /* please dont forgt to adjust the icon margins when added other objects */
    }


    .lacsonImageproject {
        height: 120px;
        width: 120px;
        margin-top: 80px;
    }

    .containerproject {
        height: auto;
    }

   

    .introproject {
        margin-bottom: 60px;
    }

    .introductionproject {
        font-size: 18px;
        padding: 0 15px;
    }

    .IHPS {
        height: 250px;
        width: 500px;
    }

    #progress-bar-container {
        height: 20px;
        /* Reduce height on smaller screens */
    }

    #progress-label {
        font-size: 16px;
        /* Adjust font size */
    }

    .read-more {
        font-size: 10px;
    }

    .modal-content {
        width: 85%;
    }

    .progress-container {
        width: 100%;
        max-width: 350px;
    }

    .progress-bar {
        height: 15px;
    }

    .progress-fill {
        height: 100%;
        background-color: #4caf50;
        width: 70%;
    }

    /* home icon
    .homebtn {
        font-size: 20px;
    }

    .containerproject .homebtn i {
        margin: 0 auto;
        padding-left: 50px;
    } */

    /* podcast */
    .podcast {
        padding: 15px;
        max-width: 90%;
    }

    .podcast-content h3 {
        font-size: 1.3em;
    }

    .podcast-content p {
        font-size: 0.95em;
    }

    .links {
        flex-direction: column;
        align-items: center;
    }

    .links a {
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }

    /* arrow */
    .scroll-to-top {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 18px;
    }


    /*  */
    .event-title {
        font-size: 1.5rem;
    }

    .slide p {
        font-size: 0.9rem;
    }

    /* spotify */
    .spotify_project {
        width: 90vw; /* Adjust width for smaller screens */
        margin-top: -20px; /* Reduce negative margin */
    }

    .spotify_project h2 {
        font-size: 20px; /* Smaller font for smaller screens */
    }
}

@media (max-width: 480px) {
    .lacsonImage {
        height: 100px;
        width: 100px;
        margin-top: 40px;
    }

    .home-icon {
        top: 25px;
        right: 18px;
        padding: 9px 13px;
        font-size: 18px;
    }

    button,
    a,
    .footer-icons .icon i {
        -webkit-tap-highlight-color: transparent;
    }

    .footer-icons .icon i:active {
        color: var(--icon-blue);
        transform: scale(1.1);
        transition: all 0.2s ease-in-out;
    }

    .name {
        font-size: 24px;
    }

    .pro {
        font-size: 12px;
    }

    /* Ai
        .LableMalawi {
            font-size: 18px;
        }
    
        .textaskMalawi {
            width: 100%;
        }
    
        .answerbox {
            width: 100%;
            font-size: 14px;
        }
    } */

    .introduction {
        font-size: 16px;
        padding: 0 10px;
        border: 2px solid var(--text-color); 
        border-radius: 5px; 
        box-shadow: 0 8px 10px rgba(15, 0, 0, 0.1); 
        background-color: transparent; 
        margin: 10px 0; 
    }

    button {
        width: 120px;
        height: 30px;
        font-size: 12px;
    }


    .clickcourse {
        font-size: 16px; /* Further reduces font size for very small screens */
        padding: 5px;
        width: 90%; /* Ensures buttons take up most of the screen width */
        max-width: 200px; 
        box-sizing: border-box; 

    }

    .button-course {
        gap: 8px; 
        flex-direction: column; 
    }
    
    .footer-icons {
        margin-top: 150px; /* please dont forgt to adjust the icon margins when added other objects */
    }

    .icons-footer{
        margin-top: 100px; /* remember to adjust when added other objects */    
    }
    .footer-icons .icon i:hover {
        transform: none;
        color: var(--body-color);
    }

    .footer-icons-excel{
        margin-top: 50px; /* please dont forgt to adjust the icon margins when added other objects */
    }

    .lacsonImageproject {
        height: 100px;
        width: 100px;
        margin-top: 50px;
    }

    .containerproject {
        height: auto;
        margin-bottom: 100px;
    }

    .introproject {
        margin-bottom: 40px;
    }

    .introductionproject {
        font-size: 16px;
        padding: 0 10px;
    }

    .IHPS {
        height: 180px;
        width: 310px;
    }

    #progress-bar-container {
        height: 15px;
        /* Reduce height on smaller screens */
    }

    #progress-bar-container {
        width: 80%;
        /* Take almost full width on very small screens */
    }

    #progress-label {
        font-size: 14px;
        /* Smaller font for small screens */
    }


    .progress-bar {
        height: 15px;
    }

    .read-more {
        font-size: 14px;
        
    }

    .read-more i {
        font-size: 14px;
    }

    .modal-content {
        width: 90%;
    }


    /* podcast */
    .podcast {
        padding: 10px;
    }

    .podcast-content h3 {
        font-size: 1.2em;
    }

    .podcast-content p {
        font-size: 0.9em;
    }

    .audio-controls {
        align-items: flex-start;
    }

    /* arrow */
    .scroll-to-top {
        display: none;
    }

    /* event */

    .event-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .event-carousel {
        width: 100%;
    }

    .slide img {
        border-radius: 5px;
    }

    .slide p {
        font-size: 0.9rem;
        margin-top: 5px;
    }

    .event-section {
        padding: 20px 5px;
        width: 95%;
        border: 2px solid #ddd;
        border-radius: 10px;
        box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
        margin-bottom:5px;

    }

    /* spotify */
    .spotify_project {
        width: 100%; /* Full width on very small screens */
        margin-top: -15px; /* Further adjustment */
    }

    .spotify_project h2 {
        font-size: 20px; 
        text-align: center; 
    }

    .spotify_project iframe {
        margin-top: -10px; /* Neutralize negative margin for better layout */
    }

    /* home icon image */
    .home-image-icon {
        width: 10vw;
        height: 10vw;
        max-width: 30px;
        max-height: 30px;
        top: 30px;
        left: 22px;
    }
}