:root {
    --dark: #8D0327;
    --medium: #804929;
    --light: #ccaa9b;
    --accent: #8a694f;
    --reverse_accent: #e63a39;
    --prob-dark: #2c2c2c;
    --prob-text: rgb(216, 187, 184);
    --flavor: #091e0d;
}

* {
    font-family: "Roboto", sans-serif;
}

a, a:visited {
    text-decoration: none;
    color: var(--dark);
    font-weight: bold;
}
a:hover {
    text-decoration: none;
    color: var(--reverse_accent)
}

body {
    margin:0;
    width:100%;
    display: flex;
    background-color: var(--light);
    flex-direction: column;
}
header {
    position:sticky;
    top:0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, var(--medium), var(--accent), var(--accent), var(--accent), var(--accent), var(--medium), var(--medium));
    border-bottom: 5px solid var(--flavor);
}
nav {
    display: flex;
    flex: 3 1;
    flex-wrap: wrap;
    align-items: center;
    justify-content: start;
}
nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dark);
    padding:3px;
    margin: 2px;
    height:80px;
    width:20%;
    min-width: 100px;
    border-radius: 5px;
    text-align:center;
    background-color: var(--light);
}
.titlebox {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    border: 1px solid var(--dark);
    padding:3px 10px 3px 3px;
    margin: 2px;
    height:80px;
    width:250px;
    min-width: 136px;
    background-color: var(--light);
    border-radius: 5px;
}
.problink {
    border: 1px solid var(--prob-text);
    padding:3px;
    margin: 2px;
    height:80px;
    width:25%;
    min-width: 170px;
    background-color: var(--prob-dark);
    color: var(--prob-text) !important;
    border-radius: 5px;
    line-height: 0;
}

.banner {
    height: 160px;
    border: 1px solid var(--dark);
    background: linear-gradient(to right, var(--light), var(--light), var(--accent));
}
.content {
    display: flex;
    flex-direction: row;
    width:100%
}
main {
    width: 100%;
    min-height: 1280px;

}

.article-container {
    width: 85%;
    min-width: 315px;
}
.article-item{
    display: flex;
    flex-direction: row;
    border-bottom: 7px solid transparent;
    border-image: linear-gradient(to right, var(--accent), var(--light));
    border-image-slice: 1;
    border-bottom: 7px solid var(--accent);
    margin: 5px 0 15px 0;
}
article {
}
.offset {
    background-color: var(--accent);
    width: 85px;
    margin: 0 30px;
}

.gallery {
    display:flex;
    flex-wrap: wrap;
    flex-direction: row;
}
.gallery img {
    transition: transform 0.3s ease;
    margin: 25px 0 0 25px;
    border: 2px solid var(--flavor);
    border-radius: 5px;
    max-width: 300px;
    max-height: 300px;
    overflow: clip;
}
.gallery img:hover {
    /*margin: 50px 0 0 50px;*/
    transform: scale(1.4) translatex(25px);
    max-width: 325px;
    max-height: 325px;
}

footer {
    border-top: 5px solid var(--flavor);
    display: flex;
    flex-direction: row;
    position: sticky;
    bottom: 0;
    max-height: 120px;
    width: 100%;
    background: linear-gradient(to right, var(--medium), var(--accent), var(--accent), var(--accent), var(--accent), var(--medium), var(--medium));
}

footer div.footer-block {
    position: relative;
    width: 310px;
    height: 100%
}
footer div.footer-content {
    position: relative;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: auto;
    margin: 10px;
}

div.hidden-text {
    position: absolute;
    display: none;
}
.blue {
    font-size: 30px;
    padding:3px;
    border-radius: 2px;
    color: dodgerblue;
    background-color: white;
}
.orange {
    font-size: 30px;
    padding:3px;
    border-radius: 2px;
    color: orangered;
    background-color: white;
}
.black {
    font-size: 30px;
    padding:3px;
    border-radius: 2px;
    color: black;
    background-color: white;

}
@media screen and (max-width: 475px) {
    header {
        flex-direction: column;
        align-items: start;
    }
}
@media screen and (max-width: 330px) {
    header, .content, .banner, footer {
        display: none;
    }
    div.hidden-text {
        display: block;
        color: var(--dark);
    }
}