/* for older browser support: */
header, section, footer, aside, nav, main, article, figure {
    display: block;
}

body {
    background-color: #1a1a1a;
    margin: 0;
    padding: 0;
    font-family: Gotham, sans-serif;
    font-weight: normal;
    font-size: 1em;
    line-height: 1.2em;
    color: #ffbb00;
    overflow-y: scroll;
    overflow-x: hidden;
}

/* need to add this fix because IE doesn't read the viewport meta tag; actually @viewport is the official W3C standard, though */
@-webkit-viewport{width:device-width}
@-moz-viewport{width:device-width}
@-ms-viewport{width:device-width}
@-o-viewport{width:device-width}
@viewport{width:device-width}

#siteBackground {
    background-image: url('./../media/background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    background-attachment: fixed;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0.7;
    z-index: -20;

}

.flexIEWrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mainWrapper {
    min-height: 93vh;
    padding: 0;
    margin: 0;
    list-style: none;

    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.flex-container {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    -webkit-flex-flow: row nowrap;
    justify-content: space-around;
    flex-direction: row;
    flex-wrap: nowrap;
}

#content {
    background-image: url('./../media/background_blurred.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    background-attachment: fixed;
    width: 80%;
    height: auto;
    padding: 20px;
    max-width: 1340px;
    min-width: 240px;
    border-style: solid;
    border-width: 1px;
    border-color: rgba(242, 157, 27, 0.5);
}

#profile {
    width: 240px;
}

@media all and (max-width: 650px) {
    #content {
        max-width: 400px;
    }

    .flex-reverse {
        flex-wrap: wrap-reverse;
    }

    #skills {
        min-width: 240px;
        margin-right: 0;
    }

    #profile {
        margin-bottom: 20px;
    }
}

#profileImage img {
    width: 240px;
    height: 300px;
}

#skills {
    width: calc(100% - 240px);
    min-width: 240px;
    margin-right: 20px;
}

.skill {
    background-color: #ffbb00;
    color: #000000;
    margin-bottom: 10px;

}

.skill p {
    margin: 15px;
}

.skillHeading {
    cursor: pointer;
    justify-content: space-between;
    font-weight: bold;
}

.skillHeading .svg-triangle {
    width: 1.2em;
    height: 1.2em;
    padding: 15px;
}

.skillHeading .svg-triangle polygon {
    fill: #aa6600;
}

.skillHeading[data-hovered=true] .svg-triangle polygon {
    fill: white;
}

.arrow-down {
    display: inline;
}

.arrow-up {
    display: none;
}

.skillDescription {
    background-color: #dd9900;
    overflow: hidden;
    -webkit-transition: height 1s;
    -moz-transition: height 1s;
    -ms-transition: height 1s;
    -o-transition: height 1s;
    transition: height 1s;
    height: 0;
}

a:link {
    color: #f29d1b;
    opacity: 1;
    text-decoration: none;
}

a:visited {
    color: #f29d1b;
    opacity: 1;
    text-decoration: none;
}

a:focus {
    color: #ffffff;
    opacity: 1;
    text-decoration: none;
}

a:hover {
    color: #ffffff;
    opacity: 1;
    text-decoration: none;
}

a:active {
    color: #f29d1b;
    opacity: 1;
    text-decoration: none;
}

button {
    background-color: #ffbb00;
    border: none;
    border-radius: 8px;
    color: #000000;
    padding: 0.2em 0.5em;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 0.75em;
    font-weight: bold;
}

button:hover {
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 0.2em 0.3em 0 rgba(0,0,0,0.24), 0 0.25em 1em 0 rgba(0,0,0,0.19);
}

.videoReferences {
    font-weight: bold;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.videoReference {
    margin: 20px 20px;
    width: 12.5em;
    text-align: center;
    background-color: #aa6600;
    border: 1px solid #884400;
    border-radius: 4px;
}

.videoReference p {
    display: block;
    margin: 10px;
}

p {
    margin: 0;
    padding: 0;
}

table {
    width: 100%;
}

th, td {
    padding: 0;
}

footer {
    background-image: url('./../media/background_blurred.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    background-attachment: fixed;
    width: 100vw;
    height: 5vh;
    color: white;
    position: relative;
    margin-top: 2vh;
}

#copyright {
    height: 5vh;
    line-height: 5vh;
    text-align: center;
    vertical-align: middle;
    width: 200px;
    position: absolute;
    left: calc(50vw - 100px);
}

#impressumLink {
    height: 5vh;
    line-height: 5vh;
    text-align: right;
    vertical-align: middle;
    position: absolute;
    right: 30px;
}

#datenschutzLink {
    height: 5vh;
    line-height: 5vh;
    text-align: left;
    vertical-align: middle;
    position: absolute;
    left: 30px;
}

#noScriptInfo {
    position: fixed;
    width: 100vw;
    text-align: center;
    vertical-align: middle;
    line-height: 2.5em;
    background-color: #222222;
    height: 2.5em;
}

#impressum,#datenschutz {
    z-index: 1000;
    width: 90vw;
    height: 50vh;
    position: fixed;
    top: 25vh;
    left: 5vw;
    overflow-y: auto;
    background-color: #222222;
    box-sizing: border-box;
    opacity: 0;
    transition: top 1s ease-in-out, height 1s ease-in-out, opacity 0.5s ease-in-out, visibility 1s;
    visibility: hidden;
}

#impressum:target,#datenschutz:target {
    opacity: 1;
    top: 10vh;
    height: 80vh;
    visibility: visible;
}

#impressum p,#datenschutz p {
    margin-bottom: 0.75em;
}

#impressum article,#datenschutz article {
    padding: 20px;
    margin-bottom: 20px;
}

.closeButton {
    width: 100%;
    text-align: right;
    position: sticky;
    top: 0;
    padding: 10px 20px;
    box-sizing: border-box;
    background-color: #222222;
    box-shadow: 0 0 15px 15px #222222;
}