:root {
    /* fonts */
    --link: "Chakra Petch";

    /* font sizes */
    /* --link-size: 1.5rem; */
    --link-size: clamp(0.5rem, 2.5vw, 1.5rem);
    --link-icon-size: clamp(0.4rem, 1.8vw, 1.125rem);

    --toggle-canvas-icon: clamp(1.05rem, 4.8vw, 3rem);
    --toggle-canvas-icon-box: clamp(1.48rem, 6.8vw, 4.25rem);
    --toggle-canvas-icon-transform: clamp(0.35rem, 1.6vw, 1rem);
    --toggle-canvas-icon-transform-negative: clamp(-0.35rem, -1.6vw, -1rem);

    /* Colors */
    --white: #fff;
    --gray: #989898;
    --color-blueviolet: #9747ff;
    --black: #000;

    /* Paddings */
    --padding-xl: 1.25rem;
    --padding-3xs: 0.625rem;
}

html,
body {
    margin: 0;
    padding: 0;
    line-height: normal;
    background-color: black;
    width: 100vw;
    height: 100dvh;
    touch-action: none;
    overflow: hidden;
}

#bigContainer {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    overflow: hidden;
    position: relative;
    touch-action: none;
}

#sketch-holder {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100vwx;
    height: 100%;
}

main {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 1rem;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    top: 0;
    left: 0;
    position: absolute;
    z-index: 5;
}

h1 {
    font-family: var(--link);
    font-size: clamp(0.5rem, 5vw, 2rem);
    color: var(--white);
    margin: 0;
}

h2 {
    font-family: var(--link);
    font-size: clamp(0.375rem, 3.75vw, 1.5rem);
    color: var(--white);
    margin: 0;
}

h3 {
    font-family: var(--link);
    font-size: clamp(0.375rem, 3.75vw, 1.5rem);
    color: var(--white);
    margin: 0;
    background: black;
    display: inline;
}

.h3-container {
    display: block;
    margin: 0;
}

.header {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    align-self: stretch;
    max-width: 100%;
    overflow: hidden;
    text-align: right;
    font-size: var(--link-size);
    color: var(--white);
    font-family: var(--link);
    width: clamp(200px, 100%, 1800px);
    margin-right: auto;
    margin-left: auto;
}

nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.logo-icon {
    height: clamp(3rem, 12vh, 7.5rem);
    width: auto;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    object-fit: cover;
}

.link {
    cursor: pointer;
    display: flex;
    width: clamp(6rem, 40vw, 22.5rem);
    height: clamp(1rem, 4vh, 2.5rem);
    /* height: 2.5rem; */
    /* padding: 0px 2.5rem; */
    gap: 0rem;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    border: 1px solid var(--Gray, #989898);
    background-color: transparent;
    background-image: linear-gradient(to right,
            var(--White, #fff) 0%,
            var(--White, #fff) 100%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    transition: all 0.5s ease;

    color: var(--White, #fff);
    text-align: right;

    font-family: var(--link);
    font-size: var(--link-size);
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
}

.link:hover {
    background-size: 100% 100%;
    color: var(--Black, #000);
    gap: 0.5rem;
}

.arrow-outward {
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 0;
    transition: width 0.5s ease;
}

.link:hover .arrow-outward {
    opacity: 1;
    width: var(--link-icon-size);
    /* width: 18px; */
}

.toggle-canvas {
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-self: stretch;
    align-items: flex-start;
    justify-content: space-between;
    width: clamp(200px, 100%, 2100px);
    margin-right: auto;
    margin-left: auto;
}

.canvas-arrow {
    cursor: pointer;
    /* border: 2px solid var(--gray); */
    border: none;
    padding: var(--padding-3xs);
    background-color: transparent;
    /* width: 4.25rem;
    height: 4.25rem; */
    width: var(--toggle-canvas-icon-box);
    height: var(--toggle-canvas-icon-box);
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

.arrow-icon-left,
.arrow-icon-right,
.arrow-icon-up {
    /* height: 3rem;
    width: 3rem; */
    width: var(--toggle-canvas-icon);
    height: var(--toggle-canvas-icon);
    position: absolute;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.arrow-icon-hover {
    /* height: 3rem;
    width: 3rem; */
    width: var(--toggle-canvas-icon);
    height: var(--toggle-canvas-icon);
    opacity: 0;
    position: absolute;
    transition: opacity 0.5s ease;
}

.canvas-arrow:hover {
    /* border-color: var(--White, #fff);
    background-color: var(--White, #fff); */
}

.canvas-arrow:hover .arrow-icon-left {
    opacity: 0;
    /* transform: translateX(-1rem); */
    transform: translateX(var(--toggle-canvas-icon-transform-negative));
}

.canvas-arrow:hover .arrow-icon-right {
    opacity: 0;
    /* transform: translateX(1rem); */
    transform: translateX(var(--toggle-canvas-icon-transform));
}

.canvas-arrow:hover .arrow-icon-hover {
    opacity: 1;
    transform: translateX(0);
}

.footer-button {
    cursor: pointer;
    border: none;
    padding: var(--padding-3xs);
    background-color: transparent;
    width: 1rem;
    height: 1rem;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
}

.footer-button-left {
    margin-left: calc(var(--toggle-canvas-icon-box)/2 - 1rem);
    margin-right: 0;
}

.footer-button-right {
    margin-right: calc(var(--toggle-canvas-icon-box)/2 - 1rem);
    margin-left: 0;
}

.footer-button-icon {
    /* width: var(--toggle-canvas-icon);
    height: var(--toggle-canvas-icon); */
    position: absolute;
    opacity: 1;
    transition: all 0.5s ease;
}

.footer-button-icon-hover {
    /* width: var(--toggle-canvas-icon);
    height: var(--toggle-canvas-icon); */
    opacity: 0;
    position: absolute;
    transition: all 0.5s ease;
}

.footer-button-icon-clicked {
    opacity: 0;
}

.footer-button:hover .footer-button-icon {
    opacity: 0;
}

.footer-button:hover .footer-button-icon-hover {
    opacity: 1;
}

.tool-tip {
    position: relative;
    display: inline-block;
}

.tool-tip .tool-tip-text {
    /* visibility: hidden; */
    opacity: 0;
    width: auto;
    color: var(--gray);
    background-color: var(--black);
    text-align: center;
    text-wrap: nowrap;
    position: absolute;
    z-index: 1;
    top: -.05rem;
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
}

.tool-tip-text-left {
    left: 120%;
    transform: translateX(-1rem);
}

.tool-tip-text-right {
    right: 120%;
    transform: translateX(1rem);
}

.tool-tip:hover .tool-tip-text {
    /* visibility: visible; */
    opacity: 1;
    transform: translateX(0);
}

.div {
    width: 8rem;
    position: relative;
    text-transform: uppercase;
    display: inline-block;
    box-sizing: border-box;
    padding-left: var(--padding-xl);
    padding-right: var(--padding-xl);
}

.footer {
    display: flex;
    align-self: stretch;
    height: 4.25rem;
    width: clamp(200px, 100%, 1800px);
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    text-align: right;
    font-size: 1rem;
    color: var(--white);
    font-family: var(--link);
}

@media screen and (max-width: 450px) {
    .link {
        padding-left: var(--padding-xl);
        box-sizing: border-box;
    }

    .nav {
        display: none;
    }

    .toggle-canvas {
        flex-wrap: wrap;
    }

    .slidyboy {
        width: 75%;
    }

    .paradox {
        font-size: 2rem;
        width: 200px;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }
}

.slidyboy {
    position: absolute;
    top: 15%;
    right: 0px;
    padding: clamp(0.25rem, 2.5vw, 1rem) clamp(0.375rem, 3.75vw, 1.5rem);
    /* padding-top: 0px;
    padding-left: 1.5rem;
    padding-right: 1.5rem; */
    transform: translate(75vw, 0px);
    width: 65%;
    height: 65%;
    transition: all 0.75s ease;
    background-color: rgb(0, 0, 0, 0.5);
    opacity: 1;
    /* overflow-y: auto; */
    z-index: 10;
}

.slidyboy.toggled {
    transform: translate(0vw, 0px);
    opacity: 1;
}

.slidyboy h1,
.h3-container,
iframe,
.team-container,
.slidyboy-header {
    max-width: min(100%, calc(23.08% + 900px + clamp(0.375rem, 3.75vw, 1.5rem)));
}

.slidyboy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    overflow: hidden;
}

.slidyboy-content {
    height: calc(100% - 48px);
    overflow-y: auto;
}

.close-icon:hover {
    cursor: pointer;
}

.close-icon:hover path {
    fill: var(--white);
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.team-member {
    flex: 1 1 calc(25% - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 200px;
}

.team-member img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team-member:hover img {
    filter: grayscale(0%);
}

@keyframes curtain-down {
    0% {
        background-size: 100% 0%;
    }

    100% {
        background-size: 100% 100%;
    }
}

@keyframes curtain-up {
    0% {
        background-size: 100% 100%;
    }

    100% {
        background-size: 100% 0%;
    }
}

.team-member .member-info {
    width: 100%;
    padding-bottom: calc(clamp(0.375rem, 3.75vw, 1.5rem) / 2);
    background: linear-gradient(to bottom, var(--white) 0%, var(--white) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0%;
    transition: background-size 0.3s ease;
}

.team-member:hover .member-info {
    animation: curtain-down 0.3s forwards;
}

.team-member:not(:hover) .member-info {
    animation: curtain-up 0.3s forwards;
}

.team-member h2,
.team-member p {
    color: var(--white);
    margin: 5px 0;
}

.team-member:hover h2,
.team-member:hover p {
    color: var(--black);
}

.team-member p {
    font-family: var(--link);
    font-size: clamp(0.3rem, 2.5vw, 1.25rem);
    transition: color 0.3s ease;
}

.YouTube {
    width: 100%;
    height: 85%;
}

@media (max-width: 1024px) {
    body {
        overflow: auto;
    }
}

@media (max-width: 768px) {

    /* Adjusts the breakpoint to 768px, common for tablets and mobile devices */
    .slidyboy {
        width: 93%;
        height: 80%;
        transform: translate(100vw, 0px);
        padding-left: 10px;
        padding-right: 10px;
    }

    .slidyboy.toggled {
        transform: translate(0vw, 0px);
        opacity: 1;
    }

    .team-container {
        flex-wrap: wrap;
    }

    .team-member {
        flex: 0 0 calc(50% - 40px);
    }

    .YouTube {
        width: 100%;
        height: 45%;
    }
}

.overlay-content {
    position: absolute;
    top: calc(15% + clamp(0.25rem, 2.5vw, 1rem));
    left: 50%;
    transform: translateX(-50%);
    width: 66.67%;
    max-width: 1800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 1;
}

.overlay-content .overlay-content-header {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-content .h3-container-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 50vh;
}

.overlay-content .h3-container {
    padding: clamp(0.25rem, 2.5vw, 1rem);
    max-width: none;
    overflow-y: auto;
    padding-top: 0%;
}

.overlay-content h3 {
    color: var(--gray);
}

.noselect {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}