/*
Theme Name: Vince Theme
Author: Travis Wight
Description: Custom theme for Vince Hudock's website
Version: 0.9.10
*/

:root {
    /* Colors */
    --main: #3a141d;
    --dark: #5b091e;
    --red: #dd3f4b;
    --orange: #f58454;
    --light-orange: #fcbd5a;
    --yellow: #ffe074;
    --light: #ffeeb8;
    --black: #0f0f0f;
    --white: #fff;

    /* Font Sizes */
    --text-2xs: 10px;
    --text-xs: 14px;
    --text-sm: 16px;
    --text-base: 18px;
    --text-lg: 20px;
    --text-xl: 24px;
    --text-2xl: 32px;
    --text-3xl: 42px;
    --text-4xl: 48px;

    /* Font Families */
    --header-font: "Bungee Shade", sans-serif;
    --text-font: "Space Mono", monospace;
    --google-icons: "Material Symbols Outlined";

    /* Misc. */
    --xl-shadow: 0px 0px 0px 20px var(--red), 0px 0px 0px 40px var(--light-orange), 0px 0px 0px 60px var(--yellow);;
    --xl-shadow-inset: inset 0px 0px 0px 20px var(--red), inset 0px 0px 0px 40px var(--light-orange), inset 0px 0px 0px 60px var(--yellow);

    --base-shadow: 0px 0px 0px 5px var(--red), 0px 0px 0px 10px var(--light-orange), 0px 0px 0px 15px var(--yellow);
    --base-shadow-inset: inset 0px 0px 0px 5px var(--red), inset 0px 0px 0px 10px var(--light-orange), inset 0px 0px 0px 15px var(--yellow);

    --sm-shadow: 0px 0px 0px 1px var(--red), 0px 0px 0px 2px var(--light-orange), 0px 0px 0px 3px var(--yellow);
    --sm-shadow-inset: inset 0px 0px 0px 1px var(--red), inset 0px 0px 0px 2px var(--light-orange), inset 0px 0px 0px 3px var(--yellow);
}

/* General
------------------------------------ */

html, body {
    position: relative;
    padding: 0;
    margin: 0;
    font-family: var(--text-font);
    font-style: normal;
    font-weight: 400;
    font-size: var(--text-base);
    color: var(--main);
    --webkit-font-smoothing: antialiased;
    --webkit-text-size-adjust: none;
    background-color: var(--light);
}
a {
    text-decoration: none;
}
.page-layout {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}
.page-contents {
    position: relative;
    height: 100%;
    flex-shrink: 1;
    flex-grow: 1;
}
.border {
    border: 1px solid var(--dark);
    border-radius: 5px;
    box-shadow: var(--sm-shadow-inset);
}
.border-base {
    border-radius: 10px;
    box-shadow: var(--base-shadow-inset);
}
.input-container input {
    position: relative;
    width: 100%;
    padding: 0 15px;
    line-height: 40px;
    background-color: var(--white);
    outline: none;
    box-sizing: border-box;
    color: var(--red);
    font-family: var(--text-font);
}

/* Content
------------------------------------ */

.content {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}
.content *:first-child {
    margin-top: 0;
}
.content h1, .content h2 {
    font-size: var(--text-4xl);
    font-family: var(--header-font);
    color: var(--red);
}
.content h3 {
    font-size: var(--text-xl);
    font-family: var(--header-font);
    color: var(--red);
}
.content h4 {
    font-size: var(--text-lg);
    font-family: var(--header-font);
    color: var(--red);
}
.content h5 {
    font-size: var(--text-base);
    font-family: var(--header-font);
    color: var(--red);
}
.content h6 {
    font-size: var(--text-sm);
    font-family: var(--header-font);
    color: var(--red);
}
.content h1, h2, h3, h4, h5, h6, p {
    margin: 15px 0;
}
.content a {
    font-weight: 700;
    color: var(--red);
}
.content a:hover {
    color: var(--dark);
}

/* Menu
------------------------------------ */

.menu-part {
    position: relative;
    padding: 15px;
    box-sizing: border-box;
    z-index: 100;
    border: 1px solid var(--dark);
    background-color: var(--light);
}
.menu-inner {
    position: relative;
    width: 100%;
}

/* Desktop View
------------------------------------ */

.desktop-view {
    position: absolute;
    height: 100%;
    width: 100%;
}
.desktop-background {
    position: absolute;
    display: flex;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.desktop-background img {
    position: relative;
    max-width: 450px;
    height: auto;
    max-height: calc(100vh - 120px);
    padding: 30px;
}
.desktop-container {
    position: relative;
    height: 100%;
    width: 100%;
    z-index: 2;
    overflow: hidden;
}

/* Icons Grid
------------------------------------ */

.icons-grid {
    position: absolute;
    display: flex;
    flex-direction: column;
    column-gap: 30px;
    row-gap: 30px;
    flex-wrap: wrap;
    height: 100%;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    align-content: start;
    overflow: hidden;
}

/* Menu Icon
------------------------------------ */

.menu-icon {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95px;
    box-sizing: border-box;
    cursor: pointer;
    top: 0;
    left: 0;
}
.menu-icon.reverting {
    transition-duration: .25s;
    transition-property: top, right, bottom, left;
}
.icon-title {
    margin-top: 10px;
    padding: 2.5px 15px;
    box-sizing: border-box;
    background-color: var(--light);
}
.icon-title p {
    margin: 0;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--red);
}

/* Popup
------------------------------------ */

.popups-container {
    position: absolute;
    display: flex;
    height: 100%;
    width: 100%;
    padding: 15px;
    top: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}
.popup {
    position: relative;
    width: 100%;
    max-height: calc(100vh - 88px);
    z-index: 99;
    top: 0;
    left: 0;
    padding-top: 60px;
    overflow: hidden;
    transform: scale(1);
    transition: .25s transform;
}
.popup.base {
    max-width: 550px;
}
.popup.wide {
    max-width: 1250px;
}
.popup.shake {
    animation: shake;
    animation-duration: .25s;
}
.popup.current {
    z-index: 100;
}
.popup.reverting {
    transition-duration: .25s;
    transition-property: top, right, bottom, left;
}
.popup.hidden {
    z-index: -1;
    visibility: hidden;
    transform: scale(.1);
}
.popup .menu-inner {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}
.popup .menu-inner::before {
    position: absolute;
    content: "";
    width: 100%;
    top: 5px;
    left: 0;
    border-bottom: 5px solid var(--yellow);
}
.popup-contents {
    position: relative;
    max-height: calc(100vh - 175px);
    overflow: auto;
}
.popup-controls {
    position: absolute;
    display: flex;
    align-items: center;
    height: 60px;
    width: calc(100% + 30px);
    top: -60px;
    left: -15px;
    padding: 15px;
    z-index: 2;
    box-sizing: border-box;
}
.popup-controls::before {
    position: absolute;
    content: "";
    top: -60px;
    left: -60px;
    width: calc(100% + 120px);
    height: 120px;
    box-shadow: var(--xl-shadow-inset);
}
.popup-controls::after {
    position: absolute;
    content: "";
    top: 60px;
    left: 5px;
    width: calc(100% - 10px);
    border-bottom: 5px solid var(--light-orange);
}
.popup-close {
    position: relative;
    display: flex;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    background-color: var(--light);
}
.popup-close::before {
    position: relative;
    content: "\e5cd";
    font-family: var(--google-icons);
    font-weight: 400;
    color: var(--red);
}
.popup-close:hover {
    background-color: var(--white);
}
.popup-header {
    position: relative;
    padding-top: 20px;
    text-align: center;
    font-family: var(--header-font);
    font-weight: 400;
}
.popup-header.large {
    padding: 15px;
    padding-bottom: 0;
}
.popup-header-inner {
    position: relative;
}
.popup-header-inner.large {
    padding: 8px;
}
.popup-header-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-header-container.large {
    height: 300px;
    background-size: cover;
    background-position: center;
}
.popup-header-container.large::before {
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    opacity: .5;
    background-color: var(--red);
}
.popup-header-container h2 {
    display: inline-block;
    margin: 0;
    font-size: var(--text-3xl);
    color: var(--red);
    z-index: 2;
}
.popup-header-container.large h2 {
    font-size: var(--text-4xl);
    color: var(--light);
}
.popup-container {
    position: relative;
    padding: 15px;
}

/* Embed Popup
------------------------------------ */

.embed-container {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Embed Popup
------------------------------------ */

.triple-image-links-container {
    position: relative;
    display: flex;
    column-gap: 15px;
    row-gap: 15px;
}
.triple-image-link {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 1;
    row-gap: 5px;
    width: 100%;
    cursor: default;
}
.triple-image-item {
    position: relative;
    display: block;
    padding: 8px;
    box-sizing: border-box;
    cursor: pointer;
}
.triple-image {
    position: relative;
    padding-top: calc(100% * (3/2));
    background-color: var(--light-orange);
}
.triple-image-inner {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
}
.triple-image img {
    position: relative;
    height: 100%;
    width: auto;
}
.triple-image-title {
    position: relative;
    display: flex;
    justify-content: center;
}
.triple-image-title p {
    display: inline-block;
    margin: 0;
    font-weight: 700;
    color: var(--red);
    cursor: pointer;
}
.triple-image-title p:hover {
    color: var(--dark);
}

/* Password Popup
------------------------------------ */

.password-popup-container {
    position: relative;
    display: flex;
    margin: 0;
    column-gap: 5px;
}
.password-popup-container .input-container {
    width: 100%;
}
.password-popup-container button {
    position: relative;
    display: flex;
    width: 40px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    color: var(--red);
    background-color: var(--light);
}
.password-popup-container button:hover {
    background-color: var(--white);
}
.password-popup-container button::before {
    position: relative;
    content: "\e5c8";
    font-family: var(--google-icons);
    font-weight: 400;
}

/* Posts Popup
------------------------------------ */

.posts-popup {
    position: relative;
}
.posts-container {
    position: relative;
    display: flex;
    row-gap: 30px;
    column-gap: 30px;
}
.posts-grid-container {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    row-gap: 30px;
}
.posts-grid {
    position: relative;
    display: grid;
    row-gap: 15px;
    column-gap: 15px;
    grid-template-columns: 1fr 1fr;
}
.posts-sidebar {
    position: relative;
    width: 300px;
    flex-shrink: 0;
}
.posts-navigation {
    position: relative;
    display: flex;
}
.posts-nav-link {
    position: relative;
}
.posts-nav-link a {
    position: relative;
    display: block;
    padding: 0 15px;
    border: 1px solid var(--dark);
    border-radius: 5px;
    box-shadow: var(--sm-shadow-inset);
    line-height: 40px;
    font-weight: 700;
    color: var(--red);
}
.posts-nav-link a:hover {
    background-color: var(--white);
}
.posts-nav-link#next-page {
    margin-left: auto;
}

/* Single Popup
------------------------------------ */

.single-popup {
    position: relative;
}
.single-popup .content {
    margin: 0;
}
.single-popup .content-container {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    row-gap: 15px;
}
.single-popup .post-title {
    margin: 0;
    margin-bottom: 5px;
    font-size: var(--text-4xl);
    font-family: var(--header-font);
    color: var(--red);
}
.single-popup .post-attr {
    margin-bottom: 15px;
}

/* Post Item
------------------------------------ */

.post-item {
    position: relative;
}
.post-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    padding-top: calc(100% * (1/2));
}
.post-thumbnail-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 8px;
    box-sizing: border-box;
}
.post-thumbnail-image {
    position: relative;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
}
.post-title {
    margin: 0;
    margin-top: 10px;
}
.post-title a {
    color: var(--red);
}
.post-title a:hover {
    color: var(--dark);
}
.post-attr {
    margin: 0;
    font-size: var(--text-sm);
}
.post-attr strong {
    color: var(--red);
}

/* Skull Quiz Popup
------------------------------------ */

.quiz-container {
    position: relative;
}
.quiz-item {
    position: relative;
    display: none;
    flex-direction: column;
    row-gap: 15px;
}
.quiz-item.active {
    display: flex;
}
.quiz-item-title {
    margin: 0;
    text-align: center;
    font-size: var(--text-lg);
    color: var(--red);
}
.quiz-options {
    position: relative;
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}
.quiz-button {
    padding: 5.5px 15px;
    text-align: center;
    font-weight: 700;
    color: var(--red);
    cursor: pointer;
}
.quiz-button:hover {
    background-color: var(--white);
}
.quiz-book-container {
    position: relative;
    display: flex;
    justify-content: center;
}
.quiz-book-container .triple-image-link {
    max-width: 152.667px;
}

/* Sidebar
------------------------------------ */

.sidebar {
    position: relative;
    display: flex;
    width: 300px;
    flex-direction: column;
    row-gap: 15px;
    flex-shrink: 0;
}
.sidebar-item {
    position: relative;
    text-align: center;
    font-family: var(--header-font);;
}
.sidebar-item h3 {
    margin: 0;
    font-size: var(--text-xl);
    color: var(--red);
}
.sidebar-list {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    margin-top: 15px;
    padding: 0;
    row-gap: 15px;
    font-family: var(--text-font);
    list-style: none;
}
.sidebar-list li {
    position: relative;
    width: 100%;
}
.sidebar-link {
    position: relative;
    display: block;
    width: 100%;
    padding: 0 15px;
    line-height: 40px;
    box-sizing: border-box;
    color: var(--red);
    font-weight: 700;
}
.sidebar-link:hover {
    background-color: var(--white);
}

/* Footer
------------------------------------ */

.footer {
    position: relative;
    width: 100%;
    height: 60px;
    flex-shrink: 0;
}
.footer::after {
    position: absolute;
    content: "";
    bottom: 0;
    width: 100%;
    box-shadow: var(--xl-shadow);
    z-index: 1;
}
.footer-grid {
    position: relative;
    display: flex;
    padding: 10px 15px;
    height: 100%;
    width: 100%;
    column-gap: 15px;
    box-sizing: border-box;
    z-index: 2;
}
.footer-item {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
}
.footer-item.left {
    justify-content: start;
}
.footer-item.middle {
    justify-content: center;
}
.footer-item.right {
    justify-content: end;
}

/* Start Button
------------------------------------ */

.start-button {
    position: relative;
    display: flex;
    padding: 0 15px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: var(--light);
}
.start-button:hover {
    background-color: var(--white);
}
.start-button p {
    position: relative;
    margin: 0;
    padding-left: 25px;
    font-weight: 700;
    color: var(--red);
}
.start-button p::before {
    position: absolute;
    content: "\e5d2";
    top: 3.5px;
    left: 0;
    font-family: var(--google-icons);
    font-weight: 400;
}

/* Start Menu
------------------------------------ */

#start-menu {
    position: absolute;
    width: 300px;
    left: -315px;
    bottom: 75px;
    transition: .25s transform;
}
#start-menu.active {
    transform: translateX(330px);
}
.start-menu-contents {
    position: relative;
    max-height: calc(100vh - 120px);
    overflow: auto;
}
.start-header {
    position: relative;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
    font-family: var(--header-font);
    font-weight: 400;
}
.start-header h2 {
    margin: 0;
    font-size: var(--text-3xl);
    color: var(--red);
}
.start-list {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 15px;
    padding-top: 0;
    margin: 0;
    row-gap: 15px;
    list-style: none;
}
.start-link {
    position: relative;
}
.start-link a {
    position: relative;
    display: block;
    width: 100%;
    line-height: 40px;
    text-align: center;
    font-weight: 700;
    color: var(--red);
}
.start-link a:hover {
    background-color: var(--white);
}
.start-socials {
    position: relative;
    display: none;
    width: 100%;
    padding: 15px;
    padding-top: 0;
    justify-content: center;
    box-sizing: border-box;
}

/* Book Ad
------------------------------------ */

.book-popup {
    position: absolute;
    max-width: 550px;
    width: calc(100% - 30px);
    left: 50%;
    bottom: -500px;
    /* bottom: 15px; */
    transition: .25s transform;
    transform: translateX(-50%);
}
.book-popup.active {
    transform: translateX(-50%) translateY(-515px);
}
.book-popup-contents {
    position: relative;
    display: flex;
    max-height: calc(100vh - 120px);
    padding: 15px;
    overflow: auto;
    box-sizing: border-box;
    column-gap: 15px;
}
.book-popup-contents .triple-image-link {
    flex-shrink: 0;
    flex-grow: 0;
    width: 152.667px;
}
.book-popup-info {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    row-gap: 15px;
    align-items: center;
    justify-content: center;
}
.book-popup-info h2 {
    text-align: center;
    margin: 0;
    font-family: var(--header-font);
    font-size: var(--text-3xl);
    color: var(--red);
}
.book-popup-link {
    padding: 0 15px;
    line-height: 40px;
    font-weight: 700;
    color: var(--red);
}
.book-popup-link:hover {
    background-color: var(--white);
}

/* Socials Bar
------------------------------------ */

.socials-bar {
    position: relative;
    display: flex;
    column-gap: 10px;
}
.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    box-sizing: border-box;
    background-color: var(--light);
}
.social-link:hover {
    background-color: var(--white);
}
.social-link img {
    width: 25px;
    height: auto;
}

/* Clock
------------------------------------ */

.clock {
    position: relative;
    display: flex;
    padding: 0 15px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background-color: var(--light);
}
.clock p {
    position: relative;
    margin: 0;
    padding-left: 25px;
    font-weight: 700;
    color: var(--red);
}
.clock p::before {
    position: absolute;
    content: "\e8b5";
    top: 3px;
    left: 0;
    font-family: var(--google-icons);
    font-weight: 400;
}
#clock-colon.hide {
    visibility: hidden;
}

/* Load Overlay
------------------------------------ */

.load-overlay {
    position: absolute;
    display: flex;
    height: 100vh;
    width: 100%;
    padding: 30px;
    top: 0;
    left: 0;
    opacity: 1;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-sizing: border-box;
    background-color: var(--light);
    transition: .25s opacity;
}
.load-overlay.disolving {
    opacity: 0;
}
.load-overlay.hidden {
    display: none;
}
.loader-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 15px;
    justify-content: center;
    padding: 15px;
    width: 100%;
    max-width: 330px;
    user-select: none;
}
.loader-container img {
    width: 150px;
}
.loader-container h2 {
    margin: 0;
    font-family: var(--header-font);
    font-size: var(--text-2xl);
    color: var(--red);
}
.loading-bar {
    position: relative;
    height: 40px;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--dark);
    box-sizing: border-box;
}
.loader {
    position: relative;
    height: 100%;
    width: 0%;
    background-color: var(--red);
    transition: 1.5s width linear;
}
.loader.complete {
    width: 100%;
}

/* Animations
------------------------------------ */

@keyframes shake {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Media Queries
------------------------------------ */

@media screen and (max-width: 950px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 720px) {
    .posts-container {
        flex-wrap: wrap;
    }
    .posts-grid-container {
        flex-shrink: 0;
    }
    .sidebar {
        width: 100%;
    }
}

@media screen and (max-width: 580px) {
    .start-socials {
        display: flex;
    }
    .footer .socials-bar {
        display: none;
    }
}