/* IMPORTED FONTS */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@100..900&display=swap');

/* BODY */
body {
    background-color: white;
    min-height: 100vh;
            
    margin: 0; 
    margin-top: 6vh;

    padding-bottom: 50px;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #000000 #00000000;
}

html::-webkit-scrollbar {
    width: 0.7vw;
    min-width: 10px;

    height: 0.7vh;
    min-height: 10px;
}

html::-webkit-scrollbar-track {
    background: #00000000;
}

html::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 50%;

    scrollbar-width: 6px;
}

p {
    font-family: 'Alexandria', sans-serif;
    color: #000000;

    animation: pop_up_header 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

a {
    font-family: 'Alexandria', sans-serif;
    color: black;
}

h2 {
    font-family: 'Alexandria', sans-serif;
    font-size: 1.5rem;

    color: #333333;
    max-width: 0;

    overflow: hidden;
    white-space: nowrap;
    letter-spacing: -0.035em;
    animation: typing 1s steps(40, end) 1s forwards, blink-caret 1.3s step-end 2s infinite;
}

h1 {
    font-family: 'Alexandria', sans-serif;
    font-size: 3rem;
    
    color: black;

    animation: pop_up_header 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;

    margin: -1.5vh;
}

hr {
  width: 0%;
  margin: 0.8vh 0;

  border: 0;

  border-top: 5px solid #252525; 
  animation: hr_expand 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.title_container {
    display: flex;

    flex-direction: column;
    align-items: center;

    padding-top: 5vh;
}

.grid_container {
    display: flex;

    flex-direction: column;
    align-items: center;
}

.display {
    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 4vw;

    width: fit-content;
    max-width: 60vw;
    
    overflow-x: auto;
}

.display > * {
    flex-shrink: 0;
    flex-grow: 0;
}

.project {
    display: block;
    border: 4px solid #000000;

    width: 11vw;
    height: auto;

    text-align: center;
    aspect-ratio: 1 / 1.4;

    box-sizing: border-box;
    transition: width 0.2s;

    container-type: inline-size;
}

.project > img {
    display: block;

    margin-left: auto;
    margin-right: auto;

    width: 100%;
    height: auto;
    
    aspect-ratio: 1 / 1;

    filter: invert();
    image-rendering: pixelated;
}

.project > h3 {
    font-family: 'Alexandria', sans-serif;
    font-size: 12cqw; 
    
    color: black;

    max-width: 80%;
    margin-left: auto;
    margin-right: auto;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project:hover {
    width: 13vw;
}

.card_backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;

  visibility: hidden;
}

.card_display {
    display: block;

    position: fixed;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    background-color: #ffffff;
    background-image: url("https://i.ibb.co/3ymdJJSg/card-bg.png");

    background-size: cover;
    background-position: center;

    width: auto;
    height: 80vh;

    aspect-ratio: 1 / 1.4;

    border: 4px solid #000000;

    z-index: 1000;
    visibility: hidden;
}

.card_display > h1, p {
    text-align: center;
}

.card_display > h1 {
    margin-top: 2vh;
    font-size: clamp(2rem, 3cqi, 3rem); 
}

.card_display > p {
    font-size: clamp(0.8rem, 1.2cqi, 2rem); 
}

.card_display > a > img {
    display: block;

    aspect-ratio: 1.5 / 1;
    width: 90%;

    border: 2px solid #000000;

    margin-left: auto;
    margin-right: auto;   
    
    margin-top: 2.2vh;
    margin-bottom: 1vh;

    transition: width 0.2s ease-out;
    object-fit: cover;
}

.card_display > a:hover img {
  width: 93%;
}

/* BUTTON ROW */
.button_row {
    overflow: hidden;

    display: flex;
    gap: 1vw;

    align-items: center;
    justify-content: flex-start;
}

.button_row a {
    background-color: #1e1424;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
    aspect-ratio: 1 / 1;
    width: 3vw;

    transition: width 0.3s ease-out;
}

.button_row a:hover {
    width: 3.5vw;
}

.button_row a img {
  width: 60%;
  height: 60%;
  object-fit: cover;
}

/* IMAGES */
.gort_logo_image {
    height: 100%;
    width: auto;

    margin-left: auto;
    padding-right: 5vw;

    object-fit: contain;

    display: block;
}

/* TOP BAR */
.top_nav {
    background-color: black;
    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: flex-start;

    position: fixed;

    top: 0;
    left: 0;

    height: 6vh;
    width: 100%;

    z-index: 1000;
}

.top_nav a {
    padding: 0 3vw;
    float: left;

    color: white;
    text-decoration: none;

    font-family: 'Alexandria', sans-serif;
    font-size: 1.25rem;

    transition: color 0.1s ease-out;
}

.top_nav a:hover {
    color: #d894ff;
}

.top_nav a.current {
    color: #d894ff;
    
    text-decoration: underline;
    text-underline-offset: 0.5rem;
}

.top_nav_label {
    float: right;
    text-align: center;

    color: white;

    font-family: 'Alexandria', sans-serif;
    font-size: 1.5rem;
}

/* ANIMATIONS */
.div_pop_up {
    animation: pop_up_div 0.2s ease-out forwards;
}

.div_show {
    animation: show 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pop_up_header {
    0% {
        opacity: 0;
        transform: translateY(2vh);
    }

    70% {
        transform: translateY(0);
    }

    100% {
        opacity: 1;
    }
}

@keyframes show {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pop_up_div {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    100% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes hr_expand {
    from {
        width: 0;
    }

    to {
        width: 42%;
    }
}

@keyframes typing {
    0% {
        max-width: 0;
        border-right: .15em solid #d180ff;
    }
    100% {
        max-width: 15ch;
        border-right: .15em solid #d180ff;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #d180ff;
    }
}