
/* Global styling */

html, body {
    background-color: #0a0c0f;
    margin: 0;
    padding: 0;
    min-height: 100%;
    width: 100%;
    font-family: "Aller", "Verdana", sans-serif;
    color: aliceblue;
}

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    
}

/* Main application layout */

#app {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #0a0c0f;
    overflow-x: clip;
}

/* Main content */

#page-content {
    margin: 0;
    padding: 15px 2%;
    flex: 1;
    width: 100%;
    min-width: 0;
    background-color: #0a0c0f;
}

/* Horizontal separator */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/* Top navigation */

header {
    width: 100%;
    flex-shrink: 0;
    padding: 8px;
    background-color: #108ee9;
}

.topnav {
    background-color: #108ee9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    width: 100%;
    min-width: 0;
    gap: 10px;
}

.top-header {
    color: white;
    margin: 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-right: 1%;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Footer */

footer {
    width: 100%;
    flex-shrink: 0;
    background-color: #111418;
    margin-top: auto;
    padding: 2px 1%;
}

/* Buttons and text inputs */

button, textarea, #modal-panel {
    background-color: #080c0f;
    color: #fff;
    border-color: #0093ff;
    border-width: 4px;
    border-style: ridge;
}

textarea {
    max-width: 100%;
}

#generate-button {
    font-size: larger;
    width: 150px;
    height: 40px;
    text-align: center;
    background-color: #f4f4f4;
    outline-style: outset;
    color: #202020;
    outline-color: #ff8400;
    font-weight: bold;
    border-style: none;
}

/* Modal */

#modal-overlay {
    background-color: #1b242a;
    opacity: 50%;
}

.Modal {
    position: fixed;
    transform-origin: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(36, 43, 50);
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    padding: 20px;
    max-width: 90vw;
    z-index: 1001;
}

.Overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 13, 22, 0.28);
    z-index: 1000;
}

/* Spacing */

.button-spacing {
    margin-top: 25px;
}

/* Bio section */

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    min-width: 0;
}

.bio {
    flex: 1 1 40%;
    min-width: 300px;
}

.other-content {
    flex: 1 1 55%;
    min-width: 300px;
}

/* Mobile layout */

@media (max-width: 700px) {

    .topnav {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px 12px;
    }

    .top-header {
        font-size: 1.1rem;
        white-space: normal;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 12px;
        padding: 5px 0;
    }

    #page-content {
        padding: 15px 2%;
    }

    .container {
        gap: 1rem;
    }

    .bio,
    .other-content {
        min-width: 0;
        flex-basis: 100%;
    }

    textarea {
        width: 100% !important;
    }

    footer {
        padding: 15px;
    }
}