:root {
    --brown: #A65F1B;
    --light-brown: #DB7C24;
    --orange: #FE7F01;
    --yellow: #FFDF20;
    --green: #22aa38;
    --orange-hover: #fda54b;
    --green-hover: #42cf58;
    --gradient: linear-gradient(to bottom,rgba(255,255,255,0.2) 0%,rgba(255,255,255,0) 100%);
    --text-shadow: 0 1px rgba(0,0,0,.25);
    --hover-shadow: 0 1px rgba(0,0,0,.25),0 0 15px #fff;
    --normal-text: #4a4a4a;
    --serif: "Liberation", "Times New Roman";
    --white-background: #f8f8f8;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

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

p, h1, h2, h3, h4, h5, figure {
    all: unset;
}

input:focus, textarea:focus {
    outline: none;
}

input[type="submit"] {
    all: unset;
    cursor: pointer;
}

textarea {
    resize: none;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
}

.max-width {
    margin: auto;
    width: 80%;
    max-width: 1800px;
}

header {
    position: relative;
    display: flex;
}

#logo-place {
    display: flex;
    justify-content: center;
    width: 10%;
    min-width: 118px;
}

#logo {
    padding: 10px 40px 0 10px;
}

#logo img {
    max-width: 135px;
    max-height: 135px;
    width: 100%;
}

nav {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
    width: 90%;
}

#upper-nav {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
}

#site-title {
    display: flex;
    flex-direction: column;
    color: var(--brown);
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-family: var(--serif), serif;
    span:first-child {
        font-size: 16px;
    }
}

#upper-right {
    display: flex;
    align-items: center;
    column-gap: 20px;
}

#location {
    display: flex;
    column-gap: 5px;
    color: var(--normal-text);
    &:hover {
        color: var(--orange);
    }
    svg {
        height: 16px;
    }
    span {
        font-size: 14px;
        font-weight: bold;
    }
}

#login {
    color: var(--normal-text);
    &:hover {
        color: var(--green);
    }
}

#home-svg {
    width: 20px;
}

#menu-part-container {
    display: flex;
    flex: 1;
    align-items: center;
    width: 100%;
}

#menu-part {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

#main-menu {
    display: flex;
    li {
        display: flex;
        &.selected {
            border-bottom: 4px solid var(--light-brown);
        }
    }
}

#main-menu li a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    color: var(--normal-text);
    font-weight: bold;
    text-align: center;
    &:hover {
        color: #fff;
        background: var(--light-brown);
    }
}

#main-menu li:first-child a {
    padding-left: 10px;
    padding-right: 10px;
}

#mobile-menu-button {
    display: none;
}

.menu-button {
    column-gap: 10px;
    align-items: center;
    flex-shrink: 0;
    align-self: center;
    border-radius: 6px;
    border: 2px solid var(--normal-text);
    padding: 5px 10px;
    color: var(--normal-text);
    font-weight: bold;
    min-height: 34px;
}

.burger-menu {
    display: flex;
    flex-direction: column;
    row-gap: 2px;
    width: 16px;
    div {
        border: 1px solid var(--normal-text);
        width: 100%;
    }
}

#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 720000;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    padding: 40px 20px;
    background: var(--white-background);
    color: var(--normal-text);
    a {
        color: var(--normal-text);
    }
    #mobile-menu-menu {
        display: flex;
        flex-direction: column;
        a {
            font-size: 18px;
            font-weight: bold;
        }
        .menu-item-desc {
            font-size: 16px;
        }
        li {
            display: flex;
            flex-direction: column;
            border-bottom: 1px solid lightgray;
            padding: 16px 0;
        }
    }
    &.hidden {
        display: none;
    }
}

.fullscreen-menu-top-part {
    display: flex;
    justify-content: space-between;
    h3 {
        font-size: 28px;
        font-weight: bold;
        color: var(--brown);
    }
}

#fullscreen-menu-right {
    display: flex;
    column-gap: 40px;
    align-items: center;
}

#fullscreen-menu-search {
    display: flex;
    column-gap: 10px;
    align-items: center;
    padding: 0;
    span {
        font-size: 18px;
        font-weight: bold;
    }
}

.exit-modal {
    position: relative;
    width: 40px;
    height: 40px;
    &::before, &::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        border-top: 4px solid var(--normal-text);
        width: 100%;
    }
    &::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    &::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
}

#mobile-menu-menus {
    display: flex;
    flex-direction: column;
    row-gap: 40px;
    overflow: auto;
}

#mobile-menu-aside {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    section {
        display: flex;
        flex-direction: column;
        row-gap: 10px;
        h2 {
            font-weight: bold;
            color: var(--brown);
            text-transform: uppercase;
        }
    }
}

header.fixed {
    #logo {
        position: fixed;
        top: 0;
        img {
            width: 40px;
            height: 40px;
            min-width: unset;
            min-height: unset;
        }
        z-index: 10001;
    }
    #menu-part-container {
        position: fixed;
        top: 0;
        left: 0;
        padding: 10px 10px 10px 10%;
        z-index: 10000;
        background: #fff;
    }
}

#horizontal-buttons {
    display: flex;
    flex-shrink: 0;
    align-self: center;
    column-gap: 10px;
}

#horizontal-buttons a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    color: #fff;
    font-weight: bold;
}

a.search-button {
    padding-left: 10px;
    padding-right: 10px;
}

.search-button:hover {
    background: var(--light-brown);
}

.search-button svg {
    height: 20px;
    color: var(--normal-text);
}

.search-button:hover svg {
    color: #fff;
}

#mass-hours {
    background: var(--orange);
    &:hover {
        background: var(--orange-hover);
    }
    svg {
        display: none;
        width: 20px;
    }
}

#donate-button {
    background: var(--green);
    &:hover {
        background: var(--green-hover);
    }
}

#principal {
    background: var(--white-background);
    min-height: 72vh;
}

#principal-center {
    display: flex;
    column-gap: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
}

main {
    flex: 1;
}

#main-navigation {
    margin-bottom: 20px;
    font-size: 14px;
    font-style: italic;
    color: var(--orange);
    a {
        color: var(--brown);
        &:hover {
            text-decoration: underline;
        }
    }
}

main h2 {
    margin: 10px 0;
    font-size: 28px;
    font-weight: bold;
    color: var(--brown);
}

article {
    display: flex;
    flex-direction: column;
}

article p {
    padding: 10px 0;
}

aside {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    row-gap: 20px;
    padding-top: 40px;
    width: 400px;
    .section-title h2 {
        position: relative;
        font-size: 20px;
        font-weight: bold;
        text-transform: uppercase;
        z-index: 1;
    }

    .section-title h2::after {
        content: "";
        position: absolute;
        top: 14px;
        left: 8px;
        border-bottom: 12px solid var(--orange);
        width: 100%;
        z-index: -1;
    }

    section:nth-child(even) .section-title h2::after {
        border-color: var(--green);
    }
}

aside section {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    ul {
        display: flex;
        flex-direction: column;
        row-gap: 5px;
    }
    li:before {
        content: "- ";
    }
    a {
        color: #000;
        &:hover {
            color: var(--brown);
        }
    }
}

#modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    z-index: 20000;
    display: flex;
    align-items: center;
}

#modal{
    border-radius: 8px;
    margin: auto;
    padding: 10px 20px;
    max-width: 80vw;
    max-height: 90vh;
    color: #fff;
    background: var(--white-background);
}

#img-modal{
    display: flex;
    flex-direction: column;
    width: 100%;
}

#img-modal-upper-part{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 10px 0;
}

#img-new-tab{
    color: #fff;
    background: var(--green) var(--gradient);
}

#img-modal figure{
    max-width: 100%;
}

#img-modal figure img{
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

#img-modal figcaption{
    padding: 10px;
    font-weight: bold;
}

footer {
    padding: 20px 0 5px 0;
    background: var(--brown);
    color: #fff;
}

#footer-center {
    display: flex;
    row-gap: 20px;
    column-gap: 100px;
    flex-wrap: wrap;
}

footer section {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

footer h2 {
    display: flex;
    flex-direction: column;
    font-size: 48px;
    font-family: var(--serif), serif;
    font-weight: bold;
}

footer h2 span:first-child {
    font-size: 44px;
}

footer a {
    color: #fff;
}

footer a:hover {
    text-decoration: underline;
}

footer h3 {
    font-size: 22px;
    font-weight: bold;
}

footer h4 {
    font-size: 18px;
    font-weight: bold;
}

.footer-vt-list {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    padding-left: 10px;
    font-size: 18px;
}

.footer-ht-list {
    display: flex;
    column-gap: 40px;
}

.footer-ht-list li {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px 0;
}

.footer-ht-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 10px;
    height: 100%;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.footer-ht-list img {
    height: 30px;
}

@media (max-width: 1700px) {
    .max-width {
        width: 90%;
    }
    #logo {
        padding-right: 10px;
    }
}

@media (max-width: 1472px) {
    .max-width {
        padding: 0 20px;
        width: 100%;
    }
}

@media (max-width: 1300px) {
    aside {
        width: 300px;
    }
}

@media (max-width: 1200px) {
    #mass-hours {
        span {
            display: none;
        }
        svg {
            display: unset;
        }
    }
    aside {
        width: 250px;
    }
}

@media (max-width: 1072px) {
    #main-menu {
        display: none;
    }
    #mobile-menu-button {
        display: flex;
    }
    aside {
        display: none;
    }
    #aside-button {
        display: flex;
    }
    header.fixed {
        #logo {
            display: none;
        }
        #menu-part-container {
            padding: 10px;
        }
    }
}

@media (max-width: 700px) {
    #upper-right {
        display: none;
    }
}

@media (max-width: 544px) {
    nav {
        margin: 0;
        width: 100%;
    }
    #logo-place {
        min-width: 64px;
        width: 64px;
        height: 64px;
    }
    header:not(.fixed) {
        padding-bottom: 54px;
        #menu-part-container {
            position: absolute;
            bottom: 5px;
            left: 0;
            padding: 0 10px;
        }
    }
    footer h2 {
        font-size: 32px;
    }
    footer h2 span:first-child {
        font-size: 24px;
    }
    footer h3 {
        font-size: 20px;
    }
    footer h4 {
        font-size: 16px;
    }
    .footer-ht-list {
        column-gap: 10px;
    }
}

@media (max-width: 416px) {
    .max-width {
        padding: 0 10px;
    }
}

@media (max-width: 380px) {
    #horizontal-buttons a.search-button {
        display: none;
    }
    #fullscreen-menu-right {
        column-gap: 10px;
    }
}
