* {
    box-sizing: border-box;
}

body {
    background-color: #D6D0C8;
    background-image: url('https://i.imgur.com/Wg5ki1C.png');
    margin-top: 0;
    color: #302A27;
}

#all {
    width: 660px;
    position: relative;
    left: 10%;
}

#header {
    background-image: url('https://i.imgur.com/jupbmhn.png');
    background-color: #4E4B44;
    color: #d9d3c5;
    font-family: 'Special Elite', serif;

    border-radius: 0 0 7px 7px;

    width: 460px;
    height: 105px;

    margin-left: 12px;

    box-shadow: 5px 5px #302A27;
}

#header h1 {
    margin: 0;
    font-weight: normal;
    text-align: center;
    font-size: 40px;
    line-height: 105px;
    text-shadow: 3px 3px #302A27;
}

#header p {
    margin: 0;
    font-weight: normal;
    text-align: center;
    font-size: 24px;
    line-height: 60px;
    text-shadow: 3px 3px #302A27;
}

#img {
    position: absolute;
    top: 30px;
    right: 2px;
    max-width: 20%;
    max-height: 30%;
    z-index: 2;
}

#nav {
    position: fixed;
    top: 0;
    right: 7%;

    width: 145px;

    background-image: url('https://i.imgur.com/jupbmhn.png');
    background-color: #4E4B44;

    border-radius: 0 0 7px 7px;

    text-align: center;
    font-family: 'Special Elite', serif;

    box-shadow: 2px 3px #302A27;

    z-index: 1000;
}

#nav ul {
    padding: 0;
    margin: 0;
}

#nav li {
    list-style-type: none;
    margin: 7px 0;
    text-shadow: 2px 2px #302A27;
}

#nav a,
#nav a:visited {
    color: #d9d3c5;
    text-decoration: none;
}

#nav a:hover {
    color: #d9d3c5;
    font-style: italic;
}

#nav a:active {
    color: #d9d3c5;
    font-style: italic;
    font-weight: bold;
}

#maincontainer {
    width: 520px;
    position: relative;
    top: 65px;
    color: #302A27;
}

.section {
    width: 520px;
    margin-bottom: 55px;
    position: relative;
}

.section h2 {
    font-family: 'Special Elite', serif;
    font-size: 24px;
    font-weight: normal;

    margin: 0 0 15px 35px;
    padding: 5px 5px 8px 0;

    border-bottom: 1px solid #77716a;
}

.section-description {
    margin: 0 0 15px 35px;
    line-height: 1.7;
}

.content-box {
    background-image: url('https://i.imgur.com/bm02JPx.png');
    background-color: #faf7f5;

    width: 480px;

    margin-left: 35px;
    padding: 20px;

    box-shadow: 5px 5px #302A27;

    line-height: 1.9;
}

.content-box p:first-child {
    margin-top: 0;
}

.content-box p:last-child {
    margin-bottom: 0;
}

.partners-scroll {
    width: 520px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 10px 5px 18px;

    scroll-behavior: smooth;
    overscroll-behavior-x: contain;

    scrollbar-width: thin;
    scrollbar-color: #77716a #c3bdb5;
}

.partners-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.partners-scroll::-webkit-scrollbar-track {
    background-color: #302A27;
}

.partners-scroll::-webkit-scrollbar-thumb {
    background-color: #615955;
}

.partners-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

    align-items: stretch;
    gap: 15px;

    width: max-content;
}

.partner-card {
    display: block;

    flex: 0 0 220px;
    width: 220px;

    padding: 15px;

    background-image: url('https://i.imgur.com/bm02JPx.png');
    background-color: #faf7f5;

    border: 1px solid #aaa39a;
    box-shadow: 3px 3px #302A27;

    color: #292723;
    text-decoration: none;

    text-align: center;

    transition: background-color 0.2s ease;
}

.partner-card:hover {
    background-color: rgba(255, 255, 255, 0.85);
}

.partner-card img {
    width: 100%;
    height: 130px;

    object-fit: contain;

    margin-bottom: 10px;
}

.partner-card h3 {
    font-family: 'Special Elite', serif;
    font-size: 17px;
    font-weight: normal;

    margin: 5px 0 10px;
}

.partner-card p {
    font-size: 11px;
    line-height: 1.7;
    margin: 0;
}

.partners-status {
    padding: 15px;
    font-size: 12px;
    color: #514a43;
}

.partner-card[aria-disabled="true"] {
    cursor: default;
}

.partner-card[aria-disabled="true"]:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.contact-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-family: 'Special Elite', serif;
    font-weight: bold;
}

.contact-item a {
    color: #514a43;
    text-decoration: underline;
}

.contact-item a:hover {
    color: #000;
}

#credit {
    font-size: 12px;

    position: fixed;
    bottom: 0;
    right: 0;
}

#credit a {
    color: #514a43;
}

@media screen and (max-width: 700px) {

    html {
        overflow-x: hidden;
    }

    body {
        margin: 0;
        padding: 0;
        background-size: auto;
        overflow-x: hidden;
    }

    #all {
        width: 100%;
        max-width: 100%;
        left: 0;

        margin: 0;
        padding: 55px 12px 30px;
    }

    #nav {
        position: fixed;

        top: 0;
        left: 0;
        right: 0;

        width: 100%;

        border-radius: 0 0 7px 7px;

        padding: 5px 8px;

        display: flex;
        justify-content: center;
        align-items: center;
    }

    #nav ul {
        display: flex;
        flex-direction: row;

        justify-content: center;
        align-items: center;
        flex-wrap: wrap;

        gap: 5px 18px;

        width: 100%;
    }

    #nav li {
        margin: 5px 0;
        font-size: 14px;
    }

    #header {
        width: 100%;
        height: auto;
        min-height: 85px;

        margin: 0;

        border-radius: 0 0 7px 7px;
    }

    #header h1 {
        font-size: clamp(25px, 7vw, 34px);
        line-height: 1.2;

        padding: 18px 8px;
    }

    #header p {
        font-size: 18px;
        line-height: 1.4;

        padding: 0 8px 12px;
    }

    #img {
        position: relative;
        display: block;

        top: auto;
        right: auto;

        max-width: 55%;
        max-height: 150px;

        margin: 20px auto;

        object-fit: contain;
    }

    #maincontainer {
        width: 100%;
        max-width: 100%;

        top: 0;
    }

    .section {
        width: 100%;
        max-width: 100%;

        margin-bottom: 40px;
    }

    .section h2 {
        font-size: 21px;
        margin-left: 0;
    }

    .section-description {
        margin-left: 0;
        font-size: 14px;
    }

    /* Content */

    .content-box {
        width: 100%;
        max-width: 100%;

        margin-left: 0;
        padding: 15px;

        line-height: 1.7;
    }

    .partners-scroll {
        width: 100%;
        padding: 10px 5px 18px;
    }

    .partners-track {
        gap: 12px;
    }

    .partner-card {
        flex-basis: 190px;
        width: 190px;

        padding: 12px;
    }

    .partner-card img {
        height: 110px;
    }

    .partner-card h3 {
        font-size: 16px;
    }

    .partner-card p {
        font-size: 11px;
    }

    .contact-box {
        gap: 18px;
    }

    #credit {
        position: relative;

        bottom: auto;
        right: auto;

        margin-top: 25px;
        padding: 10px;

        text-align: center;
    }
}

@media screen and (max-width: 380px) {

    #all {
        padding-left: 8px;
        padding-right: 8px;
    }

    #nav ul {
        gap: 4px 12px;
    }

    #nav li {
        font-size: 12px;
    }

    #header h1 {
        font-size: 25px;
    }

    #header p {
        font-size: 15px;
    }

    .section h2 {
        font-size: 19px;
    }

    .content-box {
        padding: 10px;
        font-size: 13px;
    }

    .partner-card {
        flex-basis: 175px;
        width: 175px;
    }

    .partner-card img {
        height: 100px;
    }
}
