div {
    overflow: hidden;
}

h1, 
h2, 
h3, 
p {
    margin-top: 0;
    margin-bottom: 0;
}

a, a:visited, a:hover, a:active {
  color: inherit;
  text-decoration: none;
}

img {
    max-width: 100%;
}

hr {
    color: var(--textcolor);
    background-color: var(--textcolor);
    background: var(--textcolor);
    border-color: var(--textcolor);
}

button {
    font-size: 1rem;
    border-radius: .5rem;
    text-align: center;
    padding: 0;
    font-weight: bold;
    border-color: var(--textcolor);
}

/* general tools */
.centerer {
    text-align: center;
}

.button {
    height: 3.5rem;
    font-weight: bold;
    font-size: 1.5rem;
    border-radius: .75rem;
    padding: 0 .75rem 0;
    border-radius: .5rem;
    color: var(--primary);
    margin-left: auto;
    margin-right: auto;
    border-color: var(--textcolor);
    background-color: var(--textcolor);
}

.pagination {
    text-align: center;
    margin: .5rem;
}

/*specific to base*/
.header {
    height: 25vw;
    background-size: 100% 100%;
    background-image: url("https://omaha-underground.t3.storage.dev/static/images/light-banner.png");
    background-color: var(--primary);
}

@media (prefers-color-scheme: dark) {
    .header {
        background-image: url("https://omaha-underground.t3.storage.dev/static/images/dark-banner.png");
    }
}

.under-header {
    display: grid;
    grid-template-columns: 40% 20% 40%;
    padding: 0 1rem 0;
}

.base-user {
    margin: 0 auto;
}

.base-user p {
    margin-top: .5rem;
}

.base-user img {
    max-height: 3rem;
    float: left;
    margin: .25rem .5rem 0 0;
}

#nav-hidden-menu {
    display: block;
    justify-self: center;
    margin: .25rem 0 .25rem;
}

#nav-hidden-menu button {
    width: 6rem;
    height: 3rem;
    border-radius: .75rem;
    font-size: 1.25rem;
}

.logout {
    justify-self: right;
}

.logout button {
    margin-top: .25rem;
    width: 5rem;
    height: 2rem;
}

#nav-full-menu {
    display: none;
}
nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: space-around;
    margin: .5rem 0 1rem;
    gap: 1rem 1rem;
    padding: 0 1rem 0;
}

nav div {
    align-items: center;
    text-align: center;
    background-color: var(--textcolor);
    color: var(--primary);
    padding: .75rem 0;
    font-size: .75rem;
}

.main-content {
    padding: .5rem .5rem 0;
    min-height: 55vh;
    margin-bottom: 2rem;
}

.base-bottom {
    text-align: center;
}

.back-button {
    margin: 0.5rem 0.5rem 0;
}

@media screen and (min-width: 700px) {
    :root{
        font-size: 1.75vw;
    }

    a:hover {
        text-decoration: underline;
    }

    button:hover {
        color: var(--textcolor);
        background-color: var(--primary);
    }

    .login-base {
        text-align: right;
    }

    .header {
        height: 8rem;
        width: 32rem;
        margin: 0 auto;
    }

    .under-header {
        position: absolute;
        top: 0;
        right: 0;
        margin-top: .5rem;
        display: flex;
        flex-direction: column;
        width: 140px;
        overflow-wrap: break-word;
    }

    .logout {
        text-align: right;
    }

    .base-user {
        width: 100%
    }

    #nav-full-menu {
        display: flex;
    }

    nav {
        flex-direction: row;
        align-items: end;
        justify-content: center;
        margin: 0 auto;
        gap: .5rem;
        width: 60%;
    }
    
    nav div {
        align-items: center;
        background-color: var(--textcolor);
        padding: .75rem;
    }

    #nav-hidden-menu {
        display: none;
    }

    nav div:hover {
        background-color: var(--primary);
        outline: 1px var(--textcolor) solid;
        color: var(--textcolor);
    }

    .main-content {
        width: 90%;
        max-width: 900px;
        margin: 0 auto;
    }
}

@media screen and (min-width: 850px) {
    :root {
        font-size: 15px;
    }
}