@import url('vars.css');

* {
    box-sizing: border-box;
}


html, body {
    background-color: var(--bg);
    color: var(--text);
    height: 100%;
    margin: 0;
    font-family: var(--font);
    overflow: hidden;
}
.container {
    content: "";
    display: flex;
    clear: both;
    align-items: center;
    justify-content: center;
}
.column {
    float: left;
    width: 45%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.text {
    font-size: 2rem;
    margin-top: 12vh;
    z-index: 1000;
}
.title {
    font-weight: bold;
    font-size: 5rem;
    margin-top: 20vh;
    margin-bottom: -10px;
    color: var(--primary);
    z-index: 1000;
}
.threed {
    align-items: center;
    margin-block: center;
    float: right;
}
@media screen and (max-width: 980px) {
    .threed {
        display: none;
    }
    #settings {
        display: none;
    }
    .controls {
        display: none;
    }
    .controls:hover .popup {
        display: none;
    }
    .column {
        width: 100%;
    }
}
@media screen and (max-width: 500px) {
    .buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    button {
        width: 100%;
    }
    .controls {
        display: none;
    }
    .title {
        margin-top: 7vh;
    }
}
@media screen and (max-height: 900px) {
    .text {
        margin-top: 3vh;
    }
    .controls {
        display: none;
    }
}
.icons {
    position: fixed;
}
.icon {
    margin-top: 10px;
    margin-left: 10px;
    cursor: pointer;
}
#light {
    display: none;
}
canvas {
    border-radius: 20px;
    cursor: grab;
    margin-inline: 10px;
    z-index: 1;
}
canvas:active {
    cursor: grabbing;
}
.buttons {
    margin-top: 40px;
    display: flex;
    gap: 1rem;
}
button {
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    background-color: var(--bg);
    border: 3px solid;
    padding: 10px 30px 10px 30px;
    font-size: 1.7rem;
    text-wrap: nowrap;
    color: var(--text);
  }
  
  button::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1px;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: left;
    transform-origin: left;
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
    -webkit-transition-timing-function: ease-in-out;
    transition-timing-function: ease-in-out;
  }
  
  button:hover::before {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
  }
  
  button::after {
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
  }
  
  button:active {
    transition: transform 0.2s ease-in-out;
    transform: scale(0.95);
  }
#about {
    border-color: var(--secondary);
}
#contact {
    border-color: var(--primary);
}
#about:hover::before {
    background-color: var(--secondary);
}
#contact:hover::before {
    background-color: var(--primary);
}
.controls {
    display: block;
    background-color: var(--bg);
    padding: 10px 20px 10px 10px;
    text-align: right;
    position: absolute;
    display: inline-block;
    font-size: 2rem;
    right: 0;
    bottom: 0;
    cursor: pointer;
    border-top-left-radius: 10px;
    z-index: 100000;
}
.popup {
    display: none;
    position: absolute;
    background-color: var(--bg);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(255, 132, 0, 0.3);
    padding: 12px 16px;
    z-index: 1;
    bottom: 60px;
    right: 10px;
    border-radius: 10px;
}
.controls:hover .popup {
    display: block;
}
input {
    font-size: 25px;
    width: 2ch;
    border: none;
    background-color: var(--bg);
    text-align: center;
    color: var(--text);
}
input:focus {
    outline: none;
}

/* Projects */

body.scroll {
    overflow: scroll;
}

nav {
    z-index: 1000000;
    position: fixed;
    width: 100%;
    height: 100px;
    background-color: var(--bg);
    cursor: unset;
}
h1.proj {
    font-weight: bold;
    font-size: 3rem;
    color: var(--accent);
    margin-top: 0;
    margin-left: 20px;
}
.back {
    top: 2px;
    margin-left: 8px;
    position: relative;
    color: var(--text);
    font-family: var(--code);
}
a {
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
}
  
a::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 3px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}
  
a:hover::before {
    transform: scaleX(0.4);
}
.pcontainer {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    margin-inline: 10px;
    padding-bottom: 100px;
    justify-content: center;
    overflow: visible;
    margin-top: 120px;
}
.pbox {
    background-color: #ffdbb1;
    padding: 20px;
    border-radius: 10px;
    height: 350px;
    aspect-ratio: 0.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
}
.pbox:hover {
   transform: scale(1.05);
}
.pbox:active {
    transform: scale(0.95);
}
.pimage {
    border-radius: 10000px;
    align-items: center;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.25));
}
.saturate {
    filter: brightness(1.1) saturate(1.07) drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}
.noround {
    border-radius: 0px;
}
.ptitle {
    font-size: 1.3rem;
    color: black;
}
@media screen and (max-width: 540px) {
    .pbox {
        width: 80%;
    }
}
.ctContainer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.ctContainer > div {
    height: 100vh;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg);
    transition: all 0.5s;
    cursor: pointer;
}
.ctContainer > div:hover {
    background-color: var(--text);
    color: var(--accent);
    transform: scale(1.05);
}
.ctContainer > div:active {
    transform: scale(1);
}
.email {
    border-right: 2px solid var(--primary);
}
.discord {
    border-left: 2px solid var(--primary);
}
.big {
    font-weight: 900;
    font-size: 7rem;
    letter-spacing: -2px;
    font-family: var(--font);
}
@keyframes jump-shaking {
    0% { transform: translateX(0) }
    40% { transform: translateX(0) }
    55% { transform: translateY(-9px) }
    60% { transform: translateY(-9px) rotate(9deg) }
    65% { transform: translateY(-9px) rotate(-9deg) }
    70% { transform: translateY(-9px) rotate(9deg) }
    75% { transform: translateY(-9px) rotate(-9deg) }
    100% { transform: translateY(0) rotate(0) }
  }
#shake {
    z-index: 10;
    animation: jump-shaking 3s infinite;
    transition: all 0.4s ease;
}
#shake:hover {
    animation: none;
}