.noto-emoji-font {
    font-family: "Noto Color Emoji", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: "Noto Sans", Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background-color: #fff;
    color: #222;
    /* transition: background 0.3s, color 0.3s; */
}

header {
    background-color: #fdc611;
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 0.25em 0;
    position: relative;
}

header h1 {
    margin: 0.25em 0;
}

.dark-toggle-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    background: #222;
    color: #fdc611;
    border: none;
    border-radius: 4px;
    padding: 0.5em 1em;
    cursor: pointer;
    font-size: 1em;
    /* transition: background 0.3s, color 0.3s; */
}

.main-container {
    display: flex;
    flex: 1 1 100dvb;
}

aside {
    min-width: 220px;
    background-color: #f4f4f4;
    padding: 20px 0;
    min-height: calc(100vh - 132px);
    /* header + footer height */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    /* transition: background 0.3s, color 0.3s; */
}

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

aside nav ul li {
    margin: 20px 0;
    text-align: center;
}

aside nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    /* transition: color 0.2s; */
}

aside nav ul li a.active::before {
    content: "▶ ";
    color: #fdc611;
    font-weight: normal;
    margin-right: 5px;
}

aside nav ul li a:hover {
    color: #4CAF50;
}

main {
    flex: 1 1 calc(100vw - 400px);
    padding: 0 40px;
    max-height: calc(100vh - 1em);
    /* header + footer height */
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1em 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    /* transition: background 0.3s, color 0.3s; */
}

/* Table styles moved from inline */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    border-bottom: 1px solid #ccc;
    text-align: left;
    padding: 8px;
}

td {
    padding: 8px;
}

button#langToggle {
    position: static;
    margin-top: 10px;
    min-width: 75px;
}

button#scrollToTop {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    background: #fdc611;
    color: #222;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.5em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    /* transition: background 0.3s, color 0.3s; */
}

section#contact p {
    padding-bottom: 20px;
    /* Add padding to the contact section so the text doesn't hug the end of the page on small screens*/
}

/* Dark mode styles */
body.darkmode {
    background-color: #181a1b;
    color: #e0e0e0;
}

body.darkmode header {
    background-color: #222;
    color: #fdc611;
}

body.darkmode .dark-toggle-btn {
    background: #8b6f15;
    color: #222;
}

body.darkmode aside {
    background-color: #23272a;
    color: #e0e0e0;
}

body.darkmode aside nav ul li a {
    color: #e0e0e0;
}

body.darkmode aside nav ul li a:hover {
    color: #fdc611;
}

body.darkmode main {
    background-color: #181a1b;
    color: #e0e0e0;
}

body.darkmode footer {
    background-color: #222;
    color: #fdc611;
}

body.darkmode table {
    background-color: #23272a;
    color: #e0e0e0;
}

body.darkmode th {
    border-bottom: 1px solid #444;
    color: #fdc611;
}

body.darkmode td {
    color: #e0e0e0;
}

@media (max-width: 800px) {
    .main-container {
        flex-direction: column;
    }

    aside {
        width: 100%;
        min-height: auto;
        box-shadow: none;
        padding: 10px 0;
    }

    main {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    aside nav ul li {
        display: block;
        margin: 10px 0;
    }

    table#work-experience tr td:last-of-type {
        display: none;
        /* Hide location in small screens */
    }

    table#work-experience th:last-of-type {
        display: none;
        /* Hide location header in small screens */
    }
}