/* === VARIABLES === */

:root {
    --background-image: url("images/background-2.jpg");
    --item-light-bg: orange;
    --item-light-fg: #000;
    --item-dark-bg: #f40;
    --item-dark-bg-translucent: rgba(209, 77, 1, 0.795);
    --item-dark-fg: #000;
    --border-color: #000;
    --button-radius: 5px;
}

/* === FONTS === */

@font-face {
    font-family: BannFont Regular;
    src: url("fonts/bannfont-regular.woff2");
}

@font-face {
    font-family: Banns Font;
    src: url("fonts/bannsfont.woff");
}

/* === PRIMARY SECTIONS === */

body {
    max-width: 800px;
    margin: 10px auto;
/* background-color was previously set to #000b with background-blend-mode being hard-light */
    background-color: #EDEDED;
    background-blend-mode: normal;
    background-image: var(--background-image);
    background-size: cover;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    min-height: 95vh;

    font-family: "BannFont Regular";
    font-size: 25px;
}

main,
header,
footer {
    max-width: 800px;
    margin: 20px 20px 0 20px;
    
}

header,
footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    gap: 20px 50px;
}

header {
    margin-top: 0px;
}

footer {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;

}
nav a img {
    transform: translateY(3px);
}

/* === HEADER AND FOOTER == */

header nav {
    min-width: 200px;
}

footer > * {
    flex-grow: 1;

    text-align: center;
}

#logo img {
    width: 100%;
    min-width: 200px;
    max-width: 400px;
    transform: translateY(8px);
}

nav a {
    margin: 4px 0;
    padding: 10px;
    display: inline-block;

    /*
    UNUSED
    border: 3px solid var(--border-color);
    border-radius: var(--button-radius);
    */

    border: 1px solid #0000;
    border-image-source: url("images/box_without_cut_thingies.png");
    border-image-slice: 300;
    border-image-width: 25;
    border-image-outset: 4px;
    border-image-repeat: stretch;

    background-color: var(--item-light-bg);
    color: var(--item-light-fg);

    text-decoration: none;
}

nav a:hover {
    background-color: var(--item-dark-bg);
    color: var(--item-dark-fg);
}

/* === SITEWIDE FORMATTING === */

h1 {
    margin: 10px 0;
}

p {
    width: 98%;
    max-width: 960px;
    margin: 1em auto;
}

hr {
    border: 9px solid transparent;
    border-image-source: url(images/hr-no-cut.png);
    border-image-slice: 51 fill;
    border-image-repeat: stretch;
}

/* === HOME PAGE === */

/* -- What We Do -- */

#what-we-do {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 350px;
}

#what-we-do > ul {
    margin: 0;
    padding: 0;

    list-style-type: none;
}

#what-we-do li {
    margin: 0;
}

/* -- Our Stuff -- */

#our-stuff {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-around;
    gap: 20px 0px;
}

#our-stuff > div {
    flex-basis: 300px;

    text-align: center;
}

.our-thing {
    max-width: 95%;
}

.our-thing-image {
    border: 15px solid #0000;
    border-image: url("images/box_without_cut_thingies.png") stretch 73;
}

.our-thing img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

.our-thing a:hover > * {
    filter: drop-shadow(0 0 5px var(--item-dark-bg-translucent));
}

/* -- Other Important Pages -- */

#other-pages {
    text-align: center;
}

#other-pages a {
    display: inline-block;
    margin: 5px;
    padding: 10px 20px;

    /* UNUSED
    border: 3px solid var(--border-color);
    border-radius: var(--button-radius);
    */

    border: 1px solid #0000;
    border-image-source: url("images/box_without_cut_thingies.png");
    border-image-slice: 300;
    border-image-width: 25;
    border-image-outset: 4px;
    border-image-repeat: stretch;

    background-color: var(--item-light-bg);
    color: var(--item-light-fg);

    text-decoration: none;
}

#other-pages a:hover {
    background-color: var(--item-dark-bg);
    color: var(--item-dark-fg);
}

/* === ABOUT PAGE === */

/* -- The Team -- */

#the-team {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-around;
    gap: 20px 0px;
}

#the-team img {
    flex-basis: 300px;
    width: 220px;
    aspect-ratio: 1;

    border: 15px solid #0000;
    border-image: url("images/box_without_cut_thingies.png") stretch 73;

    text-align: center;
}

#the-team a:hover > * {
    filter: drop-shadow(0 0 5px var(--item-dark-bg-translucent));
}

.team-name,
.team-job {
    display: block;
    width: 100%;

    text-align: center;
    line-height: 0.8;
}

.team-job {
    font-size: 0.9em;
}

/* === CONTACT PAGE === */
