* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

body {
    background-color: rgba(255, 138, 128, 0.83);
    scrollbar-width: 0px;
}

html,
body {
    overflow-y: scroll;
    scrollbar-width: none;
}


header {
    padding: 0.5em;
    padding-left: 1em;
    color: whitesmoke;
    font-weight: 900;
    text-shadow: 1px 5px 1.75px rgba(0, 0, 0, 0.35);
    font-size: 2em;
}

#login-ham {
    background: none;
    border: none;
    color: white;
    font-size: 0.75em;
    text-align: right;
    text-shadow: 1px 4px 1.75px rgba(0, 0, 0, 0.35);
    padding-right: 0.85em;
}

#login-ham:hover {
    cursor: pointer;
    color: rgba(40, 55, 71, 0.75);
    transition: color 0.34s;
}

.container {
    background: rgba(245, 245, 245, 0.95);
    height: 60vh;
    width: 50vw;
    margin-left: 25%;
    margin-top: 5%;
    overflow: auto;
    box-shadow: 1px 2px 1.8px rgba(0, 0, 0, 0.20);
    border-radius: 4px;
}

.container-item {
    max-width: inherit;
    max-height: inherit;
    padding: 15px;
    color: black;
    text-shadow: 1px 1px 1.75px rgba(0, 0, 0, 0.35);
}

.text-title {
    font-size: 2vw;
    height: 10%;
    border-bottom: 2.5px solid rgba(255, 138, 128, 0.96);
    text-align: left;
    text-overflow: ellipsis;
    overflow: scroll;
    white-space: nowrap;
}

.text-body {
    font-size: 1.5em;
    padding-top: 2%;
    text-align: left;
}

.control-container {
    position: relative;
    background: none;
    width: 100%;
    height: 60px;
    text-shadow: 1px 1px 1.75px rgba(0, 0, 0, 0.35);
}

.control-container-item {
    position: absolute;
    width: 50%;
    height: 60px;
    background: none;
    top: 50%;
    left: 50%;
    margin-top: -30px;
    margin-left: -25%;
}

.buttons {
    display: inline-block;
    background-color: none;
    margin-top: 20px;
    width: 100%;
    border: none;
    text-align: center;
}

.page-number {
    position: absolute;
    color: white;
    display: inline-block;
    top: 50%;
    left: 50%;
    height: 50%;
    width: 100%;
    margin-left: -50%;
    margin-top: 8%;
    text-align: center;
    padding: 5px;
    font-size: 25px;
}

.footer-thing {
    position: relative;
    background: none;
    width: 100%;
    height: 50px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.35);
    margin-top: 4%;
    margin-bottom: 4%;
}

.footer-container {
    position: absolute;
    width: 50%;
    height: 50px;
    background: none;
    top: 50%;
    left: 50%;
    margin-left: -25%;
}

.footer-buttons {
    display: inline-block;
    background-color: none;
    margin-top: 20px;
    width: 100%;
    border: none;
    text-align: center;
    margin-top: 4px;
}

.modal-container {
    position: fixed;
    height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, 0.80);
    top: 0;
    left: 0;
    display: none;
    text-shadow: 1px 1px 1.75px rgba(0, 0, 0, 0.35);
}


.modal-item {
    position: fixed;
    height: 80vh;
    width: 90vw;
    background: rgba(245, 245, 245, 0.96);
    left: 0;
    top: 0;
    margin-top: 5vh;
    margin-bottom: 5vh;
    margin-left: 5vw;
    margin-right: 5vw;
    padding: 20px;
    border-radius: 7px;
}

.new-title {
    position: relative;
    font-size: 2vw;
    height: 10%;
    text-align: left;
    overflow: auto;
}

.new-body {
    font-size: 1.5em;
    padding-top: 2%;
    text-align: left;
    overflow: auto;
    height: 90%;
}

#next-button,
#prev-button,
#create {
    background-color: rgba(255, 255, 255, 0.96);
    border: none;
    color: black;
    padding: 7px;
    width: 25%;
    border-radius: 4px;
    text-shadow: 1px 1px 1.75px rgba(0, 0, 0, 0.20);
    font-size: 1.75vw;
    box-shadow: 1px 2px 1.8px rgba(0, 0, 0, 0.20);
}

#delete-article,
#delete-all-articles {
    background-color: rgba(255, 255, 255, 0.0);
    border: none;
    border-radius: 4px;
    color: white;
    width: auto;
    font-size: 1.15em;
    padding-left: 7px;
    padding-right: 7px;
    text-shadow: 1px 1px 1.75px rgba(0, 0, 0, 0.20);
    box-shadow: 1px 2px 1.8px rgba(0, 0, 0, 0.20);
}

#delete-article:hover,
#delete-all-articles:hover {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
}

#next-button,
#prev-button,
#create:hover {
    cursor: pointer;
}

#next-button:active,
#prev-button:active,
#create:active {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.45);
    color: white;
    transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out;
}


#create-article,
#cancel-create-article {
    background: rgba(0, 0, 0, 0);
    border: none;
    color: white;
    font-size: 2.5em;
    padding-left: 100px;
    padding-right: 100px;
}

#create-article,
#cancel-create-article:hover {
    cursor: pointer;
}

#create-article:hover {
    color: green;
}

#cancel-create-article:hover {
    color: red;
}

.modal-controls {
    position: relative;
    width: 90vw;
    height: 6vh;
    top: 0;
    left: 0;
    margin-top: 85vh;
    margin-left: 5vh;
}

.modal-control-container {
    position: absolute;
    height: 100%;
    width: 100%;
}

.modal-buttons {
    display: block;
    background-color: none;
    text-align: center;
}

::-webkit-scrollbar {
    width: 10px;
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::placeholder {
    color: black;
    text-shadow: 1px 1px 1.75px rgba(0, 0, 0, 0.20);
}

.text-title {
    scrollbar-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
}


.text-title::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0);
}

.text-title::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0);
}

::-webkit-scrollbar {
    border: none;
    width: 0px;
}

#new-article-name {
    border-bottom: 3px solid black;
}

textarea {
    color: black;
    background-color: rgba(255, 255, 255, 0);
    text-shadow: 1px 1px 1.75px rgba(0, 0, 0, 0.20);
    border: none;
    text-align: left;
    width: 98%;
    height: 98%;
    resize: none;
    font-size: 1.3em;
}

input {
    width: 98%;
    height: 98%;
    background-color: rgba(255, 255, 255, 0);
    border: none;
    color: black;
    font-size: 2em;
    text-shadow: 1px 1px 1.75px rgba(0, 0, 0, 0.20);
}

.ham-dropdown {
    display: block;
    background-color: rgba(245, 245, 245, 0);
    transition-duration: 0.4s;
    padding: 5px;
    border-top: 3px solid rgba(245, 245, 245, 1);
}



/*--LOCAL-ONLY ADDITIONS----------------------------------------------------*/

[hidden] {
    display: none !important;
}

/* Menu entries are buttons now (EXPORT / IMPORT), not navigation links. */
.ham-dropdown button {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.5em;
    font-weight: 900;
    color: white;
    border-radius: 5px;
    padding: 5px;
    margin-right: 4px;
    text-shadow: 1px 4px 1.75px rgba(0, 0, 0, 0.35);
}

.ham-dropdown button:first-child {
    margin-left: -5px;
}

.ham-dropdown button:hover {
    cursor: pointer;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    color: white;
    background: rgba(0, 0, 0, 0.2);
    transition: 0.05s ease-in-out;
}

/* Transient status line: replaces the old alert() popups. */
#status {
    color: whitesmoke;
    font-weight: 900;
    font-size: 0.95em;
    text-align: center;
    text-shadow: 1px 2px 1.75px rgba(0, 0, 0, 0.35);
    min-height: 1.4em;
    padding: 0 1em;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

#status.is-visible {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    #status {
        transition: none;
    }
}

/* The layout was built for a wide viewport; keep it usable on a phone. */
@media (max-width: 700px) {
    header {
        font-size: 1.4em;
    }

    .container {
        width: 90vw;
        margin-left: 5vw;
    }

    .text-title {
        font-size: 5vw;
    }

    .control-container-item,
    .footer-container {
        width: 90%;
        margin-left: -45%;
    }

    #next-button,
    #prev-button,
    #create {
        font-size: 3.5vw;
        width: 30%;
    }

    #create-article,
    #cancel-create-article {
        padding-left: 15vw;
        padding-right: 15vw;
    }
}

/*--ACCESSIBILITY & STRUCTURE----------------------------------------------*/

/* The menu button used to live inside the <h1>, which polluted the heading's
   accessible name ("(hamburger) HOT PINK THING"). It is now a sibling, so the
   heading has to stay inline to keep them on one line. */
#header-intro {
    display: inline;
}

/* The entry title is an <h2> now (the page had two <h1>s). Restore the visual
   weight the <h1> had so nothing shifts. */
.text-title h2 {
    font-size: 2em;
    font-weight: bold;
}

/* Labels for the editor fields: announced by screen readers, invisible on
   screen. Placeholders alone are not accessible names. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Every control here sets `border: none`, which leaves keyboard users with no
   visible focus indicator in several browsers. */
:focus-visible {
    outline: 3px solid rgba(40, 55, 71, 0.9);
    outline-offset: 2px;
    border-radius: 4px;
}

.modal-container a:focus-visible,
#create-article:focus-visible,
#cancel-create-article:focus-visible {
    outline-color: whitesmoke;
}
