html {
    background-color: var(--back);
}

body {
    margin: 0;
    background-color: var(--green);
    font-size: smaller;
    font-family: "Oswald", sans-serif;
}

.lift {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.lift:hover {
    transform: translate(5px,-5px);
    box-shadow: -5px 5px 0px var(--white);
    cursor: pointer;
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#bars {
    position: fixed;
    top: 120px;
    left: 0;
    width: 100vw;
    height: 60px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    margin: 0;
    transform: rotate();
}

#bar1 {
    height: 20%;
    background-color: var(--white);
}

#bar2 {
    height: 80%;
    background-color: var(--orange);
}

#viewport {
    position: relative;
    display: flex;
    justify-content: space-between;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

#texture {
    background-image: url("/assets/textures/paint_relief-61.png") !important;
    opacity: .3 !important;
    z-index: 2;
}
#greeting-message {
    font-size: 8em;
    line-height: 1em;
    padding: .3vw;
    margin: .2vw;
    color: var(--white);
    position: fixed;
    inset: 0;
    z-index: 10;
    text-align: center;
    background-color: var(--green);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px;
}

#greeting-message::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("/assets/textures/paint_relief-61.png") center/cover no-repeat fixed;
    opacity: .3 !important;
    z-index: 2;
    mix-blend-mode: color-burn;
    pointer-events: none;
    transform: none;
}

header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 120px;
    display: flex;
    justify-content: end;
    align-items: center;
    background-color: var(--green);
    /*! z-index: 20; */
}

#header-text {
    font-family: "Oswald", sans-serif;
    box-sizing: border-box;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: end;
    width: 0;
    transition: width .2s ease-in-out;
}

header h1 {
    font-size: 5em;
    margin: 0;
    color: var(--white);
    position: relative;
    font-weight: normal;
    padding-right: 8px;
    top: 18px;
}

.Erik {
    position: relative;
    left: 0.5px;
    top: 6.6px;
}

header h2 {
    font-size: 3.7em;
    line-height: 1em;
    margin: .2vw;
    border-radius: 10px;
    color: var(--white);
    font-weight: 400;
}

#video-column-background {
    position: fixed;
    left: 5vw;
    top: 0;
    background-color: var(--green);
    z-index: 2;
}

#video-column {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: rgba(143, 185, 98, 0);
    margin-left: 5vw;
    overflow-y: scroll;
    opacity: 0;
    transition: background-color .5s ease-in-out, opacity .5s ease-in-out;
}

#video-viewport {
    flex-shrink: 0;  
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: visible;
}

h3 { 
    font-size: 2em;
    line-height: 1em;
    padding: 0.7vw;
    margin: .2vw;
    border-radius: 10px;
    color: var(--white);
    text-wrap: nowrap;
}

#video-container {
    opacity: 0;
    transition: opacity .5s ease-in-out;
    display: grid;
    align-items: center;
    width: fit-content;
    height: fit-content;
    overflow: hidden;
}

video {
    position: relative;
    justify-self: center;
    height: auto;
    box-sizing: border-box;
    border-radius: 27px;
    border: 0.5vw solid var(--orange);
}
video:fullscreen,
video:-webkit-full-screen,
video:-moz-full-screen,
video:-ms-fullscreen {
    border: none;
}

iframe {
    position: relative;
    justify-self: center;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-sizing: border-box;
    border: .5vw solid var(--orange);
}

#description-button:hover {
    cursor: pointer;
}

#description-button {
    display: none;
    align-items: center;
    position: relative;
    width: calc(100% - 2vw);
    /*! margin-top: 6px; */
    justify-content: start;
    flex-direction: row;
    transition: width .5s ease-in-out;
}

#description-button::before {
    content: "";
    flex: 1;
    border-top: 2px solid var(--orange);
    position: absolute;
    top: 17px;
    z-index: -1;
    width: 100%;
}

#description-button p {
    position: relative;
    background: var(--green);
    padding: 0 5px;
    margin: 0;
    font-size: 2em;
    z-index: 1;
    left: 2.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#description-button p::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url("/assets/textures/paint_relief-61.png") center/cover no-repeat fixed;
    opacity: .3 !important;
    z-index: 2;
    mix-blend-mode: color-burn;
    opacity: 0.2;
    pointer-events: none;
    transform: none;
}
#video-info {
    align-self: start;
    position: relative;
    left: 2vw;
    width: calc(100% - 4vw);
    display: block;
    font-size: 2em;
}

.display-none {
    display: none !important;
    height: 0px !important;
}

.video-text {
    position: relative;
    left: 1vw;
    width: calc(100% - 2vw);
}

#suggested-column {
    position: absolute;
    right: 0;
    display: none;
    grid-template-columns: 1fr 1fr;
    width: 0;
    height: calc(100% - 180px);
    transition: width .5s ease-in-out;
    top: 180px;
}

#categories {
    display: flex;
    flex-direction: column;
    padding: 0 5px 5px 5px;
}

.category {
    box-sizing: border-box;
    margin: 0 0 10px 0;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 99%;
    height: 100%;
    background-color: var(--orange);
    overflow: hidden;
    border-radius: 5px;
}

.selected {
    background-color: var(--back);
}

#categories .category:first-of-type {
    margin-top: 10px;
}

#suggested-videos {
    right: 0;
    padding: 0 5px 5px 5px;
    overflow: scroll;
}

.suggested-video {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.suggested-video-link {
    box-sizing: border-box;
    margin: 0 0 10px 0;
    padding: 5px;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 99%;
    height: 100%;
    background-color: var(--orange);
    overflow: hidden;
    border-radius: 5px;
}

.suggested-video:first-of-type .suggested-video-link {
    margin-top: 10px !important;
}

.suggested-video:last-of-type .suggested-video-link {
    margin: 0 0 10px 0;
}

.thumb-label {
    display: block;
    color: var(--white);
    font-size: 2em;
    margin: 0;
    padding-bottom: 5px;
    text-align: center;
    line-height: 1;
}

.thumbnail {
    width: calc(100%);
    margin-top: auto;
    position: relative;
    z-index: 5;
}

/* Media queries */
@media (max-width: 1120px) {
    body {
        font-size: x-small;
    }
    #header-text {
        top: 18px;
    }
    #page-title h1{
        top: 12px;
        /*! left: 5px */
    }
    .Erik {
        top: 5.6px;
    }
}

@media (max-width: 831px) {
    h2 {
        display: none;
    }
}

@media (max-width: 576px) {
    source {
        border-radius: 4px;
    }
    iframe {
        border-radius: 11px;
    }
    #video-container {
        border-radius: 10px;
    } 
}

@media (orientation: portrait) {
    #viewport {
        display: flex;
        flex-direction: column;
        align-items: center; 
        overflow-y: scroll;
    }
    header {
        background: none;
        z-index: 20;
        position: relative !important;
        height: 20px;
        justify-content: center;
    }
    #header-text {
        /*! display: none; */
        width: 77vw !important;
        z-index: 20;
        flex-direction: row-reverse;
        top: 11px;
        align-items: end;
        justify-content: space-between;
        font-size: -4.2em;
    }
    #erik-mccready {
        display: none
    }
    #page-title {
        font-size: 0.3em;
        position: relative;
        line-height: 1;
        text-align: end;
        top: 7.0px;
    }
    #page-title h1{
        top: -2px;
        padding-right: 0;
        font-weight: 300;
    }
    #video-title {
        text-align: end;
        top: 10px;
        position: relative;
    }
    #video-column {
        width: 90vw !important;
        margin: 0;
        justify-self: center;
        height: 100vh;
        overflow-x: visible;
    }
    #video-viewport {
        height: auto;
        width: 90%;
    }
    #video-container {
        max-width: none !important;
        width: 100%;
        height: auto;
    }
    iframe {
        width: 100% !important;
        height: 101% !important;
    }
    video {
        width: 100% !important;
    }
    #video-info {
        position: relative;
        left: calc(2.5vw + 5px);
    }
    #suggested-column {
        position: relative;
        top: 15px;
        flex-direction: column-reverse;
        justify-content: start;
        height: fit-content;
    }
    #categories {
        flex-direction: row;
        gap: 10px;
        height: fit-content;
    }
    #categories .category:first-of-type {
        margin: 0 !important;
    }
    .category {
        font-size: .7em;
    }
    .category p {
        padding: 40px 0;
    }
    #suggested-videos {
        display: flex;
        flex-direction: row;
        gap: 10px;
        padding-top: 6px;
    }
    .suggested-video {
        width: 200px;
        flex-shrink: 0;
    }
    .suggested-video:first-of-type .suggested-video-link {
        margin-top: 0 !important;
    }
}
