html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    font-size: 1.05rem;
    line-height: 1.5rem;

    /* background-color: rgb(24, 26, 28); */
    background: radial-gradient(circle at top left, rgb(26, 29, 31), rgb(14, 15, 17));
    
    color: white;

    --accent: #1efadc;
    --accent-dark: #13d2bc;

    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    /* font-weight: bold; */

    font-family: "Montserrat";
}

a {
    color: white;
    text-decoration: underline;
}

h1 { font-size: 3rem; line-height: 4.5rem; margin-top: 20px; margin-bottom: 0; }


.subheading {
    color: rgb(219, 219, 219);
    font-weight: normal;
    font-size: 1.3rem;
}

main {
    padding-left: 100px;
    padding-right: 50px;
}

main > div {
    display: flex;
    position: relative;
    
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    column-gap: 40px;

    padding: 20px;
    min-height: 100vh;

    box-sizing: border-box;
    /* overflow: hidden; */
}

main > div > div:first-of-type p {
    width: max-content;
}

.image-container {
    flex-grow: 1;

    padding: 10px;
    box-sizing: border-box;

    max-width: 800px;

    overflow-y: scroll;
}

.image-container a {
    display: block;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    object-fit: contain;
}

.slideshow {
    padding: 0;

    max-width: 500px;

    overflow-y: hidden !important;
    position: relative;
}

.slideshow::after {
    content: "";
    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;
    height: 50px;

    z-index: 0;

    background-color: rgba(0,0,0,0.8);
}

.slideshow > a:has(:nth-child(2)) {
    overflow-y: scroll !important;
    max-height: inherit;
}

.slideshow .left-arrow { left: 0; transform: scaleX(-1) }
.slideshow .right-arrow { right: 0; }

.slideshow .left-arrow, .slideshow .right-arrow {
    position: absolute;
    /* top: 48%; */
    bottom: 0;

    z-index: 1;

    /* background-color: rgba(0,0,0,0.8); */

    text-shadow: 0 0 1px black;
    user-select: none;

    padding: 15px;

    cursor: pointer;

    font-size: 2rem;
}

.slideshow a {
    display: none;
}

.slideshow a.show {
    display: block;
}

main h1 {
    text-shadow: 4px 4px 0 black;
}

main p {
    max-width: 800px;
    color: rgb(206, 206, 206);
}

.inline-button {
    display: inline-block;

    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px 30px 10px 30px;

    border: 1px solid var(--accent);

    box-shadow: 4px 4px 16px black;

    color: inherit;
    text-decoration: none;
}

.inline-button:hover {
    background-color: var(--accent-dark);
    border: 1px solid var(--accent-dark);
    cursor: pointer;
}

.underline-animation {
    position: relative;
    border-radius: 2px;
    text-decoration: none;
}

.underline-animation::after {
    content: "";
    
    position: absolute;
    bottom: 3px;
    left: 0;

    z-index: -1;

    background-color: var(--accent);
    width: 0%;
    height: 5px;

    animation: underline-animation-keyframes cubic-bezier(.11,.74,.58,1) 1s forwards;
    animation-delay: 250ms;
}

.underline-animation:hover {
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

@keyframes underline-animation-keyframes {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}


#pull-by-mouse {
    position: absolute;

    top: 55%;
    right: calc((100% - 500px) / 2);
    transform: translate(70%, -50%);
}

#pull-by-mouse:hover {
    /* outline: 1px solid white; */
}

.trophy {
    width: 500px;
    filter: brightness(0) invert(95%);
}

#projects > div {
    width: 100%;
}

#projects > div > div:first-of-type p {
    width: unset !important;
}


.project-cards {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;

    width: 100%;
    max-width: unset;
}

.project-container {
    display: flex;
    text-wrap: wrap;
    flex-direction: column;

    row-gap: 10px;

    border: 1px solid rgb(110, 110, 110);
    padding: 20px;

    box-sizing: border-box;

    max-width: 500px;
}

.project-header {
    margin-bottom: 5px;
}

.project-container > a {
    position: relative;
    align-self: flex-end;
    
    display: inline;
    padding: 10px 20px 10px 20px;
    
    border: 1px solid rgb(110, 110, 110);
    text-decoration: none;

    transition: color 100ms;
    transition-delay: 50ms;
}

.project-container > a::after {
    content: "";
    position: absolute;

    top: 0;
    left: 0;
    z-index: -1;

    width: 200%;
    height: 250%;

    transform-origin: 0 50%;
    transform: translate(100%, -50%) rotate(30deg);

    background-color: rgb(227, 227, 227);

    transition: transform 300ms;
}

.project-container > a:hover::after {
    transform: translate(-5%, -50%) rotate(30deg);
}

.project-container > a:hover {
    color: black;
}

.project-container img, .project-container video {
    width: 100%;
    height: 100%;

    max-height: 200px;
    object-fit: cover;

    transition: max-height 1s;
    transition-delay: 60ms;
}

/* .project-container video:hover, .project-container img:hover {
    max-height: 550px;
} */
