@font-face {
    font-family: "BebasNeue-Regular";
    src: url("BebasNeue-Regular.otf") format("opentype");
}
body {
    margin: 0;
    padding: 0;
    font-size: 14pt;
    font-family: sans-serif;
    overflow-x: hidden;
    position: relative;
    text-align: center;
}
* {
    word-wrap: break-word;
}
p {
    min-width: 25vw;
}
img {
    max-width: calc(100vw - 66px);
}
a {
    color: inherit;
}
@keyframes scroll {
    from {top: 0;}
    to {top: -17.32vw;}
}
#background {
    position: absolute;
    background-image: url('img/drawing.svg');
    width: 100vw;
    height: calc(100% + 17.32vw);
    background-size: 10vw;
    overflow: hidden;
    animation-name: scroll;
    animation-duration: 10s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
#background-container {
    overflow: hidden;
    width: 100vw;
    position: absolute;
    top: 6vh;
    bottom: 0;
    min-height: 94vh;
    z-index: -1;
}
#padding {
    height: 6vh;
}
#navbar {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 6vh;
    display: flex;
    justify-content: space-evenly;
    text-align: center;
    background-color: #dcd0c0;
    color: #343434;
    list-style-type: none;
    font-size: 24pt;
    font-family: 'BebasNeue-Regular';
}
#navbar > li {
    flex: 1 1 auto;
    transition: 0.2s;
}
#navbar > li:hover {
    color: #f4f4f4;
    transition: 0.2s;
}
#navbar > li > a {
    display: block;
    height: 6vh;
    line-height: 6vh;
}
#active {
    background-color: #c0b283;
}
#resume {
    height: 94vh;
}
.container {
    display: flex;
}
body.container {
    flex-flow: column nowrap;
}
div.container {
    flex-flow: row wrap;
}
.item {
    flex: 1 1 0;
    padding: 5px 10px;
    margin: 8px;
    max-width: calc(100% - 46px);
    border: 5px solid #373737;
    transition: 0.2s;
}
.item:hover {
    background-color: #dcd0c0;
    transition: 0.2s;
}
.item:focus {
    outline: none;
    border-color: #c0b283;
    transition: 0.2s;
}
a.item {
    color: inherit;
    text-decoration: none;
}
.center {
    margin-left: auto;
    margin-right: auto;
    align-content: center;
    max-width: 75%;
}
.shadow {
    text-shadow: 2px 5px 10px #121212;
}
.dark {
    color: #f4f4f4;
    background-color: #373737;
}
.light {
    color: #373737;
    background-color: #f4f4f4;
}
@media only screen and (orientation: portrait) and (max-width: 600px), (orientation: landscape) and (max-height: 500px) {
    body {
        font-size: 10pt;
    }
    .item {
        min-width: 50%;
    }
    #navbar {
        flex-direction: column;
        height: 18vh;
        font-size: 14pt;
    }
    #padding {
        height: 18vh;
    }
    #background-container {
        top: 18vh;
        min-height: 82vh;
    }
}

