body {
    font-family: Arial, sans-serif;
    background-color: #e9e9e9;
    color: black;
    text-align: left;
}

.header-menu {
    background-color: blue;
    font-family: Verdana, sans-serif;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 20px;
    display: flex;
    text-align: center;
}

.header-menu ul li {
    margin: 0 15px;
}

.header-menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.header-menu ul li a:hover {
    text-decoration: underline;
}

.language-selector {
    margin-left: auto;
}

#language-dropdown {
    font-size: 16px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid gray;
    cursor: pointer;
    background-color: white;
}

.editor {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.editor div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
}

textarea {
    width: 100%;
    height: 150px;
    background-color: black;
    color: white;
    border: 1px solid gray;
    padding: 5px;
    font-family: monospace;
    overflow-y: auto;
    resize: none;
    text-align: start; /* Ensures text starts from the left */
    direction: ltr;      /* Ensure left-to-right text direction */
    
}

.run-container {
    display: flex;
    justify-content: center;
    justify-self: center;
    margin-top: 10px;
}

button {
    background-color: lightgreen;
    color: black;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: cyan;
}

iframe {
    width: 80%;
    height: 300px;
    background-color: white;
    border: 1px solid gray;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    font-family: Verdana, sans-serif;
    color: black;
    text-align: center;
    padding-top: 10px;
    margin-bottom: 15px;
}

h3 {
    font-family: Verdana, sans-serif;
    color: black;
    text-align: center;
    margin-bottom: 10px;
}

p {
    font-family: Verdana, sans-serif;
    color: black;
    text-align: left;
    margin: 10px auto;
    max-width: 80%;
    line-height: 1.8;
    font-size: 18px;
}


.footer-menu {
    font-family: Verdana, sans-serif;
    background-color: blue;
    color: white;
    padding: 10px 20px;
    text-align: center;
    margin-top: 20px;
    width: 100%;
    max-width: 100vw;      /* Prevents it from exceeding viewport width */
    box-sizing: border-box; /* Ensures padding/borders are inside the width */
    overflow-x: auto;       /* Allows horizontal scroll if menu is too wide */
}

.footer-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-menu ul li {
    margin: 0 15px;
}

.footer-menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.footer-menu ul li a:hover {
    text-decoration: underline;
}

/* Initially hide the menu */
#footer-links {
    display: none;
    padding-top: 20px;
    padding-bottom: 20px;
}

#footer-links a:hover {
    background: #dd04d2;
}

/* Style for the toggle button */
#footer-toggle {
    background-color: white;
    color: blue;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
}

#footer-toggle:hover {
    background-color: lightgray;
}

.code-editor {
    display: flex;
    flex-direction: row;
    justify-content: left;
    text-align: left;  /* Ensure text is left-aligned */
    padding-left: 5px; /* Add slight padding for readability */
}

.listdisplay {
    font-family: Verdana, sans-serif; /* Match paragraph font */
    color: black;
    text-align: left;
    margin: 0; /* Remove default margins */
    padding-left: 0; /* Remove extra padding */
    list-style-position: inside; /* Align bullets with text */
    display: block; /* Ensure it behaves like a block element */
}



ul, ol {
    font-family: Verdana, sans-serif; /* Match paragraph font */
    margin: 0; /* Remove default margins */
    padding-left: 20px; /* Consistent indentation */
    list-style-position: inside; /* Align bullets with text */
}

.listcontainer {
    display: flex;
    flex-direction: column;
    align-items: left; /* Ensure alignment with paragraph */
    margin-left: 0; /* Reset any unwanted left margins */
    padding-left: 180px; /* Align with text */
    font-size: 18px;
}

/* Default: flex row, wrap (side by side) */
#footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Stack vertically only on small screens in portrait */
@media (max-width: 600px) and (orientation: portrait) {
    #footer-links ul {
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }
}

/* On small screens in landscape, use flex row (side by side, wrap) */
@media (max-width: 900px) and (orientation: landscape) {
    #footer-links ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 8px;
    }
    
}


