@import url('fonts.css');

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #1b1b1c;
    font-family: Roboto;
}

.content {
    flex: 1;
    margin: 24px 4px;
    padding: 4px;
}

h1 {
    color: #e8eaec;
    font-size: 32px;
}

h2 {
    color: #e8eaec;
    font-weight: lighter;
    margin-top: 30px;
    margin-bottom: 15px;
}

h3 {
    font-size: 24px;
    margin-bottom: -10px;
    color: #6085ad
}

h4 {
    font-size: 22px;
    margin-bottom: -10px;
    color: #86a0ba
}

h5 {
    font-size: 18px;
    margin: 0;
}

small {
    font-size: 16px;
}

.center {
    text-align: center;
}

.left {
    display: block;
}

ol, ul {
    margin-top: -12px;
    padding-left: 32px;
}

li {
    font-size: 20px;
}



/* ------------------------------------------
    NAVBAR
--------------------------------------------- */

.navbar {
    position: absolute;
    top: 0; left: 0;
    font-family: arial;
    background-color: #487cb5;
    width: 100%;
    height: 72px;
    padding: 0 15% 0 15%;
}

.navbar .info {
    font-size: 24px;
    float: left;
    margin-top: 20px;
    margin-left: 60px;
    margin-right: 60px;
    justify-content: space-between;
}

.navbar .link {
    font-size: 24px;
    float: right;
    margin-top: 20px;
    margin-right: 60px;
    margin-left: 60px;
}

.navbar a {
    color: white;
    text-decoration: none;
}



/* ------------------------------------------
    HAMBURGER MENU
--------------------------------------------- */

.name {
    font-size: 24px;
    float: left;
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 60px;
    justify-content: space-between;
    display: none;
}

.hamburger {
    font-size: 40px;
    margin-top: 6px;
    margin-right: 15px;
    float: right;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}

.nav-menu {
    display: flex;
    z-index: 1;
    padding: 12px;
    justify-content: flex-end;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.nav-menu a {
    display: none;
}

.nav-menu.slide-down {
    transform: translateY(0%);
}



/* ------------------------------------------
    MAIN CONTAINER
--------------------------------------------- */

.container {
    width: 65%;
    margin: 0 auto;
    margin-top: 60px;
    margin-bottom: 10px;
    border: 1px solid black;
    padding: 5px 20px 5px 20px;
    background-color: #2b2b2b;
    color: #c6cbd0;
}	

.container a {
    color: #487cb5;
}

.container p, ul {
    clear: both;
    line-height: 1.6;
    font-size: 20px;
}

.container .img {
    width: 100%;
}

.container .cat-btn {
    position: relative;
    margin-left: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out ;
    min-width: 110%;
    height: auto;
}

.container .cat-btn:hover {
    transform: scale(1.07)
}


/* Main Overrides */

#nobg {
    background-color: transparent;
    border: none;
    margin-bottom: 20px;
}

#about {
    width: 65%;
    background-color: transparent;
    border: none;
    overflow: hidden;
}

#pictures {
    width: 65%;
    padding: 0px;
    overflow: hidden;
}

.intro {
    min-width: 100%;
    display: flex;
    flex-direction: row;
    gap: 60px;
}

.intro h1 {
    font-family: Arial;
    min-width: 320px;
    color: #6085ad;
    font-size: 36px;
}

.intro span {
    font-family: Arial;
    color: #9ca2a7;
    font-size: 24px;
}

.intro p {
    font-size: 18px;
}

#error {
    height: 65vh;
    display: flex;
    background-color: transparent;
    justify-content: center;
    align-items: center;
    border: none;
}

#error-info {
    max-width: 100vw;
    text-align: center;
}

/* Footer style */
.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2b2b2b;
    width: 100%;
    height: 56px;
    font-size: 16px;
    color: #c6cbd0;
}

.footer p {
    margin: 0;
    padding: 10px;
}

.footer  a {
    color: #c6cbd0;
    text-decoration: none;
}


/* ------------------------------------------
    PROJECT PAGE
--------------------------------------------- */

.project {
    margin: 0 auto;
    margin-top: 28px;
    width: 100%;
    height: auto;
    border: 1px solid black;
    background-color: #2b2b2b;
    color: #e8e8e8;
    overflow: hidden;
    padding: 0px;
}

.project-info {
    padding: 0px 10px;
}

.project-title {
    margin: 0;
    padding: 5px 0px 15px 0px;
    font-size: 24px !important;
    color: #6085ad;
}

.project-title, .project-below {
    display: flex;
    justify-content: space-between;
    gap: 64px
}

.project-link {
    white-space: nowrap;
}


/* Project pictures and gifs */

.project .img {
    position: relative;
    display: inline-block;
}   

.img-pc {
    max-width: 100%;
    height: auto;
    border-bottom: 1px solid black;
    background-size: cover;
    background-position: center;
}

.project .img-mb {
    display: none;
    max-width: 100%;
    height: auto;
    border-bottom: 1px solid black;
    background-size: cover;
    background-position: center;
}

.img-desc {
    position: absolute;
    background-color: #00000033;
    bottom: 10px;
    left: 5px;
    color: white;
    font-size: 16px;
    font-family: monospace;
    padding: 5px 10px;
}

.clickable{
    cursor: pointer;
}


/* Video pop-up */

.popup {
    display: none;
    background: transparent;
    transform: translate(-50%, -50%);
    position: fixed;
    width: 64%;
    height: auto;
    top: 50%;
    left: 50%;
    padding: 0;
    z-index: 3;
    margin-top: 28px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2b2b2b;
    font-family: monospace;
    color: white;
    padding: 2px 10px;
}

.popup-title {
    font-size: 16px;
}

.popup-close {
    cursor: pointer;
    font-size: 24px;
}

.popup video {
    width: 100%;
    height: 100%;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000066;
    z-index: 2;
}


/* Project Overrides */

.project-info h2 {
    font-size: 20px;
}

.project-info p {
    margin-top: -10px;
    font-size: 18px;
}



/* ------------------------------------------
    CONTACT PAGE
--------------------------------------------- */

#contact-form-container {
    display: none;
    font-size: 20px;
    margin-top: 20px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

#contact-form input, #contact-form textarea, #contact-form button {
    width: 50%;
    margin: 8px 0;
    padding: 8px;
    border: none;
    box-sizing: border-box;
    background-color: #515151;
    font-size: 20px;
    color: #c6cbd0;
}

#contact-form button {
    cursor: pointer;
    background-color: #487cb5;
    color: #c6cbd0;
    border: none;
}

#contact-form button:hover {
    background-color: #6085ad;
}

#contact-form input:focus, 
#contact-form button:focus,
textarea:focus {
    outline: none;
}

.web-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.web-btn img {
    vertical-align: middle;
    box-shadow: 4px 4px #1b1b1c;
}

.web-btn textarea {
    width: 280px;
    height: 36px;
    text-decoration: none; 
    background-color: #262626;
    border: 1px solid #363738;
    color: #c6cbd0;
    font-size: 12px;
}

#go-back {
    padding-top: 10px;
    font-size: 20px;
}


/* ------------------------------------------
    SOAPBOX
--------------------------------------------- */

#post-table {
    margin-bottom: 20px;
}

td {
    vertical-align: text-top !important;
    padding-bottom: 5px;
}

#posts {
    white-space: nowrap;
    font-family: monospace;
    word-spacing: -2px;
    font-size: 18px;
}

#post-link {
    font-family: monospace;
    word-spacing: -2px;
    font-size: 18px;
}

#tags {
    font-family: monospace;
    word-spacing: 10px;
    line-height: 30px;
    font-size: 20px;
}

.rss {
    padding: 10px 0px;
    text-align: right;
}

.rss a {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    color: #c6cbd0;
}

.rss img {
    vertical-align: middle;
    width: 16px; 
    height: 16px;
    margin-right: 2px;
}

#sb-desc {
    text-align: justify;
}


/* Soapbox Article Styling */

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 36px;
}

.post-date {
    display: block;
    font-size: 20px;
    color: #777;
    margin-top: -10px;
}

.post-image {
    max-width: 100%;
    height: auto;
    border-bottom: 1px solid black;
    background-size: cover;
    background-position: center;
}

.self-tag {
    color: #487cb5;
    padding-top: 27px;
    font-size: 20px;
    word-spacing: 5px;
    font-family: "Fira Mono", monospace;
    align-self: flex-start;
}

#tag-img {
    vertical-align: middle;
}


/* Content Styling */

hr {
    border: 1px solid #777;
    transform: scaleY(0.5);
    margin-top: 30px;
    margin-bottom: 30px;
}

code {
    background-color: #262626;
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 0.9em;
}

pre {
    background-color: #515151;
    border-radius: 3px;
    padding: 10px;
    overflow-x: auto;
    white-space: pre;
}

[class^="language-"] {
    font-size: 18px !important;
    background-color: #262626 !important;
    border-radius: 0px !important;
}



/* ------------------------------------------
    PHOTOGRAPHS PAGE
--------------------------------------------- */

.main-photo {
    width: 100%;
    min-width: 760px;
    max-height: 200px;
    object-fit: cover;
    object-position: center;
}

#pictures img {
    background-color: transparent;
    width: 100%;
    max-width: 560px;
    height: auto;
}

#pictures table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px;
}

#pictures td {
    background-color: #262626;
    border: 1px solid #363738;
    padding: 10px;
    font-size: 18px;
    vertical-align: text-top;
}

.title {
    font-size: 22px;
}

.title #left {
    display: inline-block;
    text-align: left;
}

.title #right {
    text-align: right;
    float: right;
}

.photos-links {
    line-height: 28px;
}

#pictures a:visited {
    color: #555fbc;
}

#right a:visited {
    color: #555fbc;
}



/* ------------------------------------------
    MEDIA QUERIES
--------------------------------------------- */

@media (max-width: 1500px) {
    .popup {
        width: 70%;
    }

    .main-photo {
        min-width: 640px;
    }

    .navbar {
        padding: 0 0 0 0;
    }
}

@media screen and (max-width: 1200px) {
    .footer {
        width: 100%;
    }

    .container, #about, #pictures, #box {
        width: 100%;
    }

    .container .cat-btn {
        min-width: 100%;
        margin-left: 0px;
    }

    .intro {
        gap: 10px;
    }

    .intro h1 {
        font-size: 30px;
        min-width: 180px;
    }

    .intro span {
        font-size: 26px;
    }

    .project {
        width: 100%;
    }
    
    #contact-form input, #contact-form textarea, #contact-form button {
        width: 100%;
    }

    .main-photo {
        min-width: 900px;
    }
}

@media screen and (max-width: 1050px) {
    .navbar .info, .navbar .link {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .name {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #487cb5;
        width: 100%;
        font-size: 22px;
        text-align: left;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        display: flex;
        color: white;
        text-decoration: none;
        padding: 10px;
    }

    .popup {
        width: 80%;
    }
    
    .main-photo {
        min-width: 700px;
    }
}

@media screen and (max-width: 780px) {
    .project-below {
        flex-direction: column;
        gap: 0px
    }

    #sb-desc {
        text-align: left;
    }

    td {
        padding: 5px;
    }

    .post-header {
        flex-direction: column;
    }

    .main-photo {
        min-width: 0px;
    }
}

@media screen and (max-width: 550px) {
    .container .cat-btn {
        min-width: 100%;
    }

    .intro {
        flex-direction: column;
        padding-top: 0px;
        padding-bottom: 0px;
        gap: 20px;
    }

    .intro h1 {
        font-size: 28px;
    }

    .intro span {
        font-size: 24px;
    }
    
    .project-below p {
        font-size: 16px;
    }

    .self-tag {
        font-size: 18px;
    }
}

@media screen and (max-width: 520px) {
    .project .img-pc {
        display: none;
    }

    .project .img-mb {
        display: block;
    }

    .img-desc {
        display: none;
    }

    .title #left {
        display: block;
        margin-bottom: 5px;
    }

    .title #right {
        text-align: right;
        float: left;
    }

    #error {
        padding: 10px;
    }

    #error-info h2{
        font-size: 20px;
    }

    .cat-404 {
        width: 80%;
        height: auto;
    }
}

@media screen and (max-width: 480px) {
    #tags a {
        font-size: 16px;
    }

    #posts {
        font-size: 16px;
    }
    #post-link {
        font-size: 18px;
    }
}


@media screen and (max-width: 400px) {
    #posts {
        display: none;
    }

    td {
        padding: 0px;
        padding-bottom: 10px;
    }
}

@media screen and (max-width: 320px) {
    .project .img-mb {
        display: none;
    }
}
