@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@600&display=swap');

:root {
    --primary-color: #EBEBD3;
    --hover-color: #7698B3; 
    --accent-color: #083D77; 
    --text-color: #083D77;
    --warn-color: #FF0022;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

/* MAIN TEMPLATE */
html {
    font-family: Noto Sans, Roboto, sans-serif;
    color: var(--text-color);
}

body {
    min-height: 100vh;
    min-width: 100vw;
    background-color: var(--primary-color);
    overflow-x: hidden;
}

main {
    margin: min(5em, 7%);
    padding: min(2em, 3%);
    border: 2px solid var(--accent-color);
    box-shadow: 8px 8px;
    border-radius: 15px;
    height: auto;
}

.servicesection {
    display: block;
    width: clamp(300px, 65vw, 1200px);
    margin-right: auto;
    margin-left: auto;
    border: 2px solid var(--accent-color);
    box-shadow: 4px 4px;
    border-radius: 15px;
    padding: 5px 15px 15px 15px;
    margin-bottom: 30px;
}

.pmb {
    padding: 0px;
    width: clamp(300px, 65vw, 900px);
}



/* INDEX/HOMEPAGE */

.header {
    font-size: min(3rem, 4rem);
    text-align: center;
    margin-bottom: 10px;
}

.slogan {
    font-size: 2rem;
    width: clamp(300px, 65vw, 1200px);
    margin-right: auto;
    margin-left: auto;
}

.center {
    font-style: italic;
    text-align: center;
    margin-bottom: 10px;
}

.content {
    font-size: clamp(1.2rem, 0.8rem + 0.7vw, 2rem);
    padding-top: 5px;
}

.pickuptimes {
    margin-left: 20px;
}

.warntext {
    font-size: clamp(0.8rem, 0.5rem + 0.6vw, 1.2rem);
    color: var(--warn-color);
}

.small {
    text-align: center;
    padding: 5px;
}

#textoverlay {
    position: relative;
    translate: 0px 40px;
}



a:visited {
    color: var(--text-color);
}

hr {
    border-top: 3px solid var(--hover-color);
}

/* SHIPPING */
.logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
}

#fedground {
        height: 5rem;
}

#fedexpress {
        height:5.2rem;
}

#ups {
        height:5rem;
}

#usps {
        height:2.5rem;
}

/* CONTACT */
.photowrapper {
    display: flex;
    margin-bottom: 0px;
    padding-bottom: 0px;
    box-shadow: none;
}

#contactpagebuilding {
    width: 50%;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    box-shadow: none;
}

#contactpagebuilding:hover {
    cursor: zoom-in;
}

#gmapiframe {
    width: 50%;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    box-shadow: none;
}

.enlargedphoto {
    scale: 1.75;
    transition: scale 0.25s ease;
}

.normalphoto {
    scale: 1;
    transition: scale 0.25s ease;
}

/* NAVBAR ON LOAD */
nav {
    background-color: var(--primary-color);
    border-bottom: 2px solid var(--hover-color);
}

nav ul {
    list-style: none;
    display: flex;
}

.home-li {
    margin-right: auto;
}

nav li {
    display: flex;
}

nav a {
    display: flex;
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5em 1em;
    transition: background-color 150ms ease;
    transition: color 150ms ease;
    font-size: 1.6rem;
}

nav a:hover {
    background-color: var(--hover-color);
    color: var(--primary-color);
}

nav a.active-link {
    border-bottom: 2px solid var(--text-color);
}

nav a.accent-link {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

#open-sidebar-button {
    display: none;
    background: none;
    border: none;
    padding: 1em;
    margin-left: auto;
    cursor: pointer;
}

#close-sidebar-button {
    display: none;
    background: none;
    border: none;
    padding: 1em;
    cursor: pointer;
}

#overlay {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    z-index: 9;
    display: none;
}


@media screen and (max-width: 830px) {

    /* NAVBAR ON MOBILE */
    #open-sidebar-button, #close-sidebar-button {
        display: block;
    }
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(15em, 100%);
        z-index: 10;
        border-left: 1px solid var(--hover-color);
        transition: right 237ms ease-out;
    }
    nav.show {
        right: 0;
    }
    nav.show ~ #overlay {
        display: block;
    }
    nav ul {
        width: 100%;
        flex-direction: column;
    }
    nav a {
        width: 100%;
        padding-left: 1em;
    }
    nav a.active-link {
        border-bottom: none;
    }
    nav .home-li {
        margin-right: unset;
    }

}

@media screen and (max-width: 1300px) and (min-width: 831px) {

    /* NAVBAR RESPONSIVE TEXT SIZE */
    nav a {
        font-size: 1.4rem;
    }

}