/* Base styles */
body {
    visibility: hidden;
    font-family: 'MS Sans Serif', Tahoma, Geneva, sans-serif;
    background-color: #c0c0c0;
    color: black;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body.loaded {
    visibility: visible;
}

/* Header styles */
header {
    background-color: #000080;
    color: white;
    padding: 10px;
    border-bottom: 2px solid #808080;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.title {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    margin: 20px 0;
    color: #663399;
    font-family: 'Lato', sans-serif;
}

.visualization iframe {
    display: block; /* Default behavior for iframe */
}

.visualization .title {
    cursor: pointer; /* Make the title look clickable */
    text-decoration: underline; /* Optional: add underline to indicate interactivity */
}

/* Hide iframe on small screens */
@media (max-width: 10000px) {
    .visualization iframe {
        display: none; /* Hide iframe for small devices */
    }
}

#language-switcher {
    padding: 1rem;
    border: 2px solid #808080;
    background-color: #c0c0c0;
    color: black;
    box-shadow: inset 1px 1px white, inset -1px -1px #404040;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

#language-switcher:hover {
    transform: scale(1.05);
    box-shadow: inset 1px 1px white, inset -1px -1px #404040, 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Navigation styles */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background-color: #c0c0c0;
    padding: 10px;
    border-right: 2px solid #808080;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    margin: 10px 0;
}

nav ul li a {
    text-decoration: none;
    color: black;
    padding: 5px;
    border: 2px solid #808080;
    display: block;
    box-shadow: inset 1px 1px white, inset -1px -1px #404040;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #000080;
    color: white;
}

/* Section styles */
section {
    margin-left: 220px;
    padding: 20px;
    background-color: white;
    border: 2px solid #808080;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Footer styles */
footer {
    background-color: #000080;
    color: white;
    text-align: center;
    padding: 10px;
    border-top: 2px solid #808080;
    width: calc(100% - 220px);
    margin-left: 220px;
    margin-top: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

/* Skills section */
.skills-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.skills-list {
    flex: 1;
    min-width: 300px;
}

.skills-image {
    max-width: 70%;
    height: auto;
    flex: 1;
    min-width: 300px;
}

/* Commute container styles */
#commute-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5; /* Light background */
    padding: 20px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    width: 50%; /* Ensure it spans full width */
    max-width: 1200px; /* Limit the maximum width of the container */
    margin: 0 auto; /* Center the container horizontally */
    border-radius: 10px; /* Optional: Add rounded corners for aesthetics */
}

#commute-container img {
    max-width: 100%; /* Ensure the image scales within the container */
    max-height: 100%; /* Ensure the image scales within the container */
    border: 2px solid #808080;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effects */
}

#commute-container img:hover {
    transform: scale(1.08); /* Slight zoom on hover */
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        width: 150px;
    }

    section {
        margin-left: 160px;
        padding: 15px;
    }

    footer {
        margin-left: 150px;
        width: calc(100% - 150px);
    }

    .title {
        font-size: 1.8em;
    }

    #commute-container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    nav {
        position: static;
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #808080;
    }

    section {
        margin-left: 0;
        padding: 10px;
    }

    footer {
        margin-left: 0;
        width: 100%;
    }

    .header-content {
        flex-direction: column;
    }

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

    .skills-list, .skills-image {
        min-width: 100%;
    }

    #language-switcher {
        font-size: 1rem;
    }

    #commute-container {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    #commute-container img {
        max-width: 90%;
        max-height: 50vh; /* Adjust for smaller viewports */
    }
}
