:root {
    --main-bg-color: white;
    --secondary-bg-color: #111;
    --main-text-color: #111;
    --secondary-text-color: white;
    --main-shadow-color: rgba(0, 0, 0, .4);
    --secondary-shadow-color: rgba(0, 0, 0, .8);
    --main-navbar-color: rgba(200, 200, 200, .8);
    --main-text-hover-color: #555;
    --main-bg-hover-color: #aaa;
}

@media (prefers-color-scheme: dark) {
     :root {
        --main-bg-color: #111;
        --secondary-bg-color: white;
        --main-text-color: white;
        --secondary-text-color: #111;
        --main-shadow-color: rgba(200, 200, 200, .2);
        --secondary-shadow-color: rgba(200, 200, 200, .6);
        --main-navbar-color: rgba(0, 0, 0, .8);
        --main-text-hover-color: #aaa;
        --main-bg-hover-color: #555;
    }
}

* {
    margin: 0;
    font-family: 'Oswald', sans-serif;
}

#load {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 9999;
    background: url("../img/loading.gif") no-repeat center center rgba(0, 0, 0, 0.25);
    background-size: 50px 50px;
}

body {
    padding-top: 130px;
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
}

a {
    text-decoration: none;
}

footer div {
    text-align: center;
    margin-bottom: 20px;
    color: var(--main-text-color);
}

#error_footer {
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer {
    display: none;
}

nav {
    height: 100px;
    /* overflow: hidden; */
    transition: 0.4s;
    position: fixed;
    width: 100%;
    top: 0px;
    z-index: 99;
    padding: 20px 0 30px 0;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.nav_obj {
    transition: 0.2s;
    display: inline-block;
    padding: 0 20px 0 20px;
}

#nav_title {
    transition: 0.2s;
    font-size: 50px;
    transition: color .2s;
}

#nav_title h1 {
    color: var(--main-text-color);
}

#nav_title a:hover {
    color: var(--main-text-hover-color);
    transition: color .2s;
}

#nav_buttons {
    display: none;
    margin-left: -20px;
}

#nav_buttons a {
    cursor: pointer;
}

.nav_button {
    transition: 0.2s;
    display: inline-block;
    text-align: center;
    width: 50px;
    padding: 0 10px 0 10px;
    margin: 0 10px 0 10px;
    font-size: 20px;
}

.nav_button:hover a {
    transition: 0.2s;
    color: var(--main-text-hover-color);
}

.nav_button:active a {
    transition: 0.2s;
    color: red;
}

#portfolio {
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.port_img {
    opacity: 0;
    position: relative;
    display: inline-block;
    box-shadow: -10px 10px 10px var(--main-shadow-color);
    margin: 10px 10px 10px 10px;
    padding: 3px 3px 0 3px;
    background-color: var(--main-bg-color);
    border: 1px solid var(--main-text-color);
    width: 30%;
    transition: box-shadow .4s;
}

.port_img p {
    font-family: helvetica;
    position: absolute;
    font-size: 5vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.4s linear;
}

.port_img img {
    width: 100%;
    transition: .4s -webkit-filter linear;
    transition: .4s filter linear;
}

#about {
    text-align: center;
    padding: 20px;
    -webkit-touch-callout: text;
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    -o-user-select: text;
    user-select: text;
}

#error {
    text-align: center;
    padding: 20px;
    width: 50%;
    height: 200px;
    margin-left: auto;
    margin-right: auto;
}

#error h2 {
    color: red;
}

.card {
    box-shadow: -10px 10px 10px var(--main-shadow-color);
    margin: 20px auto 20px auto;
    padding: 20px;
    background-color: var(--main-bg-color);
    border: 1px solid var(--main-text-color);
    color: var(--main-text-color);
}

.card a {
    color: var(--main-text-color);
    text-decoration: underline;
}

.card a:hover {
    color: var(--main-text-hover-color);
}

.card a:active {
    color: red;
}

#blurb_card,
#insta_card {
    max-width: 1800px;
}


/* #insta-embed {} */

.insta-posts {
    transition: 0.4s;
    display: inline-block;
    padding: 10px;
    margin: 10px;
    width: 250px;
    height: 335px;
    border: 1px solid var(--main-text-color);
    vertical-align: top;
}

.insta-posts>div {
    height: 202px;
    width: 202px;
    background-color: #fff;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
}

.insta-posts>div>span {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.insta-posts>div>img {
    max-width: 200px;
    max-height: 200px;
    /* border: 1px solid grey; */
    vertical-align: middle;
}

.insta-posts>div {
    border: 1px solid grey;
}

.insta-posts p {
    text-align: left;
    color: var(--main-text-color);
}

#contact {
    text-align: center;
    padding: 20px;
    -webkit-touch-callout: text;
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    -o-user-select: text;
    user-select: text;
}

.form-items {
    color: var(--main-text-color);
    background-color: var(--main-bg-color);
    border: 1px solid var(--main-text-color);
    padding: 6px;
}

#form_card {
    max-width: 600px;
}

#textArea {
    width: 90%;
    max-width: 500px;
    height: 200px;
}

.g-recaptcha {
    display: inline-block;
}

.btn {
    color: var(--main-text-color);
    background-color: var(--main-bg-color);
    border: 1px solid var(--main-text-color);
    padding: 6px;
}

.btn:hover {
    background-color: var(--main-bg-hover-color);
    cursor: pointer;
}

.btn:active {
    background-color: red;
    color: var(--secondary-text-color);
}

#preview {
    margin-left: auto;
    margin-right: auto;
    background: rgba(0, 0, 0, .8);
    /*    animation: expand 1s 1;*/
    /*    display: none;*/
    height: 100%;
    width: 100%;
    position: fixed;
    text-align: center;
    top: 0;
    z-index: 100;
    transition: visibility 0s, opacity 0.4s linear;
    transition: opacity .4s;
    visibility: hidden;
    opacity: 0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

#preview p {
    -webkit-touch-callout: text;
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    -o-user-select: text;
    user-select: text;
}

@keyframes expand {
    from {
        width: 0%;
        height: 0%;
    }
    to {
        width: 100%;
        height: 100%;
    }
}

#preview .helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

#preview>div {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background-color: var(--main-bg-color);
    display: inline-block;
    vertical-align: middle;
    position: relative;
    border: 4px solid var(--main-text-color);
    padding: 30px;
}

#preview img {
    max-width: 1000px;
    max-height: 700px;
}

#previewCloseButton {
    background-color: var(--main-bg-color);
    border: 3px solid var(--main-text-color);
    color: var(--main-text-color);
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    position: absolute;
    top: -2.5%;
    right: -2.5%;
    font-size: 25px;
    line-height: 30px;
    width: 30px;
    height: 30px;
    text-align: center;
    transition: color .2s;
    transition: border .2s;
}

#previewCloseButton:hover {
    font-family: helvetica;
    background-color: red;
    border: 2px dotted var(--main-text-color);
    color: var(--main-text-color);
    transition: color .2s;
    transition: border .2s;
}

#previewNextButton {
    font-family: helvetica;
    background-color: var(--main-bg-color);
    border: 3px solid var(--main-text-color);
    color: var(--main-text-color);
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    position: absolute;
    top: 50%;
    right: -20px;
    font-size: 25px;
    line-height: 30px;
    width: 30px;
    height: 30px;
    text-align: center;
    transition: color .2s;
    transition: border .2s;
}

#previewPreButton {
    font-family: helvetica;
    background-color: var(--main-bg-color);
    border: 3px solid var(--main-text-color);
    color: var(--main-text-color);
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: -20px;
    font-size: 25px;
    line-height: 30px;
    width: 30px;
    height: 30px;
    text-align: center;
    transition: color .2s;
    transition: border .2s;
}

#previewNextButton:hover,
#previewPreButton:hover {
    background-color: red;
    border: 2px dotted var(--main-text-color);
    color: var(--main-text-color);
    transition: color .2s;
    transition: border .2s;
}

#preview_title,
#preview_page_title {
    color: var(--main-text-color);
    margin-top: 30px;
}

#preview_page {
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    height: 100%;
    width: 100%;
    text-align: center;
}

#preview_page>div {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background-color: var(--main-bg-color);
    display: inline-block;
    vertical-align: middle;
    position: relative;
    border: 4px solid var(--main-text-color);
    padding: 30px;
}

#preview_page img {
    max-width: 100%;
    max-height: 100%;
}

#portfolio,
#about,
#contact {
    display: none;
}

.social-buttons {
    text-align: center;
}

.social_button {
    display: inline-block;
    padding: 10px;
    font-size: 20px;
    color: var(--main-text-color);
    transition: color .2s;
}

.social_button:hover {
    color: var(--main-text-hover-color);
    transition: color .2s;
}

.social_button:active {
    color: red;
}

#konami {
    background: rgba(0, 0, 0, .6);
    height: 100%;
    position: fixed;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: visibility 0s, opacity 0.4s linear;
    transition: opacity .4s;
    visibility: hidden;
    opacity: 0;
}

#konami .helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

#konami>div {
    background-color: #000;
    box-shadow: 0px 0px 100px red;
    display: inline-block;
    width: 840px;
    height: 840px;
    vertical-align: middle;
    /*        width: 60%;*/
    position: relative;
    /*        border-radius: 8px;*/
    border: 2px solid red;
    /*        padding: 15px 5%;*/
}

#konamiCloseButton {
    background-color: #fff;
    border: 3px solid red;
    color: black;
    /*        border-radius: 50px;*/
    cursor: pointer;
    display: inline-block;
    /*        font-family: arial;*/
    font-weight: bold;
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 25px;
    line-height: 30px;
    width: 30px;
    height: 30px;
    text-align: center;
    transition: color .2s;
    transition: border .2s;
}

#konamiCloseButton:hover {
    background-color: red;
    border: 2px dotted white;
    color: white;
    transition: color .2s;
    transition: border .2s;
}

#game {
    padding: 10px;
    padding-top: 20px;
}

#theCanvas {
    align-items: center;
    margin: auto;
    z-index: 1000000;
}

@media (max-height: 900px) {
    #preview img {
        max-width: 600px;
    }
}

@media (max-width: 1200px) {
    #preview img {
        max-width: 600px;
    }
}

@media (min-width: 700px) and (min-height: 700px) {
    .port_img:hover img {
        webkit-filter: blur(8px);
        filter: blur(8px);
        transition: .4s -webkit-filter linear;
        transition: .4s filter linear;
    }
    .port_img:hover p {
        display: block;
        transition: .2s display linear;
        visibility: visible;
        opacity: 1;
        transition: visibility 0s, opacity 0.4s linear;
    }
    .port_img:hover {
        box-shadow: -10px 10px 10px var(--secondary-shadow-color);
        cursor: pointer;
        border: 1px solid red;
        transition: .4s;
    }
    .insta-posts:hover {
        transition: 0.4s;
        border: 1px solid red;
        box-shadow: -10px 10px 10px var(--main-shadow-color);
    }
}

@media (max-width: 700px) {
    #portfolio {
        padding: 10px;
        margin-left: auto;
        margin-right: auto;
    }
    .port_img {
        display: block;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    nav {
        height: 100px;
        background-color: rgba(0, 0, 0, 0);
    }
    .nav_obj {}
    .nav_button {
        font-size: 20px;
        width: 40px;
    }
    #nav_title {
        font-size: 40px;
    }
    #blurb_card .social_buttons {
        display: none;
    }
    #contact {
        width: 90%;
    }
    #textArea {
        width: 90%;
        height: 200px;
    }
    #form h3 {
        font-size: 15px;
    }
    #error {
        width: 90%;
        margin-top: -30px;
    }
}