:root {
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
}

* {
    padding: 0;
    margin: 0;
    font-family: 'Karla', sans-serif;
    box-sizing: border-box;
}

html,
body {
    max-width: 100vw;
    height: 100%;
    background-color: var(--slate-900);
    display: flex;
    justify-content: center;
}

/* Headings */
h1 {
    font-size: larger;
    text-align: center;
    color: var(--slate-100);
}

h2 {
    font-size: large;
    color: var(--slate-300);
}

h3 {
    font-size: medium;
    color: var(--slate-400);
}

h4 {
    color: var(--slate-400);
}

/* Lists */
ul {
    color: var(--slate-400);
    list-style-type: none;
    font-size: large;
}

li {
    padding: 2px 5%;
    position: relative;
    text-align: center;
}

/* Footer */
footer {
    position: fixed;
    bottom: 5px;
    opacity: 0.5;
    right: 5px;
}

/* Main Container */
.main.container {
    background-color: var(--slate-800);
    padding: 20px;
    max-width: 600px;
    height: fit-content;
    overflow: hidden;
}

/* Flex Containers */
.container {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 10px;
}

.first-display {
    display: flex;
}

.second-display {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}

.second-display > h2 {
    text-align: center;
}

/* Photo Styling */
div.photo {
    align-self: center;
    width: calc(100% - 10px);
    height: auto;
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 10px;
    border: 2px solid var(--slate-100);
}

img.photo {
    width: 100%;
    height: auto;
}

/* Text Alignment */
.right {
    text-align: end;
}

.center {
    text-align: center;
}

/* Title Styling */
div.title.full {
    width: 100%;
}

div.title.half {
    width: calc(50% - 5px);
    text-align: center;
}

/* Line Styling */
div.line {
    position: relative;
    display: flex;
    flex-direction: row;
}

.line > hr {
    position: absolute;
    border-top: 0 solid var(--slate-200);
}

hr.line-1 {
    width: 80%;
    left: 0%;
}

hr.line-2 {
    width: 3%;
    left: 83%;
}

hr.line-3 {
    width: 1.5%;
    left: 89%;
}

/* Vertical Line Styling */
.vertical {
    position: relative;
    width: 600px;
    left: 50%;
    top: 290px;
}

.vertical > .line {
    transform: rotate(90deg);
    left: -50%;
}

.line.right {
    transform: rotate(180deg);
}

/* Project Display */
.projects.display {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    overflow: auto;
    -ms-overflow-style: none; /* Hides scrollbar in IE and Edge */
    scrollbar-width: none;    /* Hides scrollbar in Firefox */
}

.projects.display::-webkit-scrollbar {
    display: none;            /* Hides scrollbar in WebKit-based browsers */
}

.project {
    margin: 5px 45px;
    min-width: 210px;
    overflow: hidden;
    transition: opacity 0.5s ease-out;
}

.project.first {
    margin-left: 0;
}

.project.last {
    margin-right: 0;
}

.project > img {
    width: 100%;
    height: auto;
    border-radius: 5%;
    margin: 2px solid var(--slate-200);
}

.project > h3 {
    text-align: center;
}

/* Current Project Styling */
.current-project {
    display: flex;
    flex-direction: row;
}

.current-project > ul {
    padding: 5px;
    flex: 1 1 35%;
}

.current-project > h3 {
    padding: 5px;
    flex: 1 1 65%;
}

/* Year Title Styling */
div.title.half.year {
    width: calc(45% - 5px);
    height: 200px;
    text-align: center;
    position: relative;
}

.year > h2 {
    padding: 0 5px;
}

.half.year.left {
    left: 50%;
}

.half.year.left > h2 {
    text-align: left;
}

.half.year.right {
    left: calc(5% + 5px);
}

.half.year.right > h2 {
    text-align: right;
}

/* Arrow Container */
.arrow-container {
    top: calc(50% - 12px);
    position: absolute;
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.arrow {
    position: relative;
    height: 24px;
    width: 24px;
    right: -12px;
}

.arrow.right {
    transform: rotate(180deg);
    left: -12px;
}

/* Media Queries */
@media (max-width: 600px) {
    .first-display {
        flex-direction: column;
    }

    div.title.half.year {
        width: calc(30% - 5px);
        height: 200px;
        text-align: center;
    }

    .half.year.right {
        left: calc(20% + 5px);
    }

    .project {
        margin: 5px 7.5vw;
        min-width: 35vw;
    }

    .project.first {
        margin-left: 0;
    }

    .project.last {
        margin-right: 0;
    }
}
