@font-face {
    font-family: InterLight;
    src: url(fonts/Inter_18pt-Light.ttf);
}

@font-face {
    font-family: IBMPlexMonoLight;
    src: url(fonts/ibmplexmono/IBMPlexMono-Light.ttf);
}

@font-face {
    font-family: IBMPlexMonoRegular;
    src: url(fonts/ibmplexmono/IBMPlexMono-Regular.ttf);
}

@font-face {
    font-family: MinionProRegular;
    src: url(fonts/minion-pro/MinionPro-Regular.otf);
}

:root {
    --cream: #FFFFF4;
    --creamOpacity:rgba(255, 255, 244, 0.75)4;
    --navy: #242B6A;
    --navyOpacity: #242b6aea;
    --serif: "Times New Roman", Georgia, serif; /*MinionProRegular*/
    --mono: IBMPlexMonoRegular;
}
* {
    scroll-behavior: smooth;
}
::selection {
    background-color: var(--navy);
    color: var(--cream);
}


/** SCROLLBAR /
/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--cream);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--navy);
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}
/**/
body {
    background-color: var(--cream);
    font-family: var(--serif);
    color: var(--navy);
    margin: 0;
    font-size: 16px;
}

h1 {
    font-weight: 300;
}
h2 {
    margin: 0;
    font-weight: 300;
}

a {
   color: var(--navy);
}
a:hover {
    font-style: italic;
}
.mono {
    font-family: var(--mono);
}

#logo {
    font-size: 40px;
    margin: 0 0 5px 0;
    line-height: 38px;
}

#peko-chan {
    width: 100%;
    transform: rotate3d(50deg);
    animation: spin 5s infinite linear alternate;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.class-details, .small {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
}

#container {
    display: grid;
    grid-template-columns: 1fr 3fr 60px;
    position: fixed;

    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}

#sidebar {
    height: 100vh;
    border-right: 1px solid var(--navy);
    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;

    background-color: var(--creamOpacity);

    backdrop-filter: blur(8px);
}

#content {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

#class-schedule {
    border-left: 1px solid var(--navy);
    height: 100vh;
    padding: 20px;

    background-color: var(--creamOpacity);
    backdrop-filter: blur(8px);
}

/* NAVBAR */
nav {
    display: flex;
    flex-direction: column;
}

nav a {
    text-decoration: none;
    color: var(--navy);
    font-size: 16px;
    width: fit-content;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}
nav a > span {
    font-size: 10px;
}

nav a:hover {
    border-bottom: 1px solid var(--navy);
}

/* HOMEPAGE */
#yourworldoftext {
    position: fixed;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}
#ascii {
    z-index: 10;
    width: 100vw;
    cursor: pointer;
    user-select: none;
    position: fixed;
    bottom: -20px;
    pointer-events: none;
}
#ascii-cat {
    font-size: 12px;
    animation: cat 100s infinite;
    transform: scaleX(-1);
    width: fit-content;
}
.ascii-cat-hello {
    visibility: hidden;
    transform: scaleX(1) !important;
}
#ascii-cat:hover .ascii-cat-hello {
    visibility: visible !important;
}
@keyframes cat {
    0% {margin-bottom: 0px;margin-left: 0%;}
    5% {margin-bottom: 10px;margin-left: 10%;}
    10% {margin-bottom: 0px;margin-left: 20%;}
    15% {margin-bottom: 10px;margin-left: 30%;}
    20% {margin-bottom: 0px;margin-left: 40%;}
    25% {margin-bottom: 10px;margin-left: 50%;}
    30% {margin-bottom: 0px;margin-left: 60%;}
    35% {margin-bottom: 10px;margin-left: 70%;}
    40% {margin-bottom: 0px;margin-left: 80%;}
    45% {margin-bottom: 10px;margin-left: 90%;}
    50% {margin-bottom: 0px;margin-left: 100%;transform: scaleX(-1);}
    55% {margin-bottom: 10px;margin-left: 90%; transform: scaleX(1);}
    60% {margin-bottom: 0px;margin-left: 80%;transform: scaleX(1);}
    65% {margin-bottom: 10px;margin-left: 70%;transform: scaleX(1);}
    70% {margin-bottom: 0px;margin-left: 60%;transform: scaleX(1);}
    75% {margin-bottom: 10px;margin-left: 50%;transform: scaleX(1);}
    80% {margin-bottom: 0px;margin-left: 40%;transform: scaleX(1);}
    85% {margin-bottom: 10px;margin-left: 30%;transform: scaleX(1);}
    90% {margin-bottom: 0px;margin-left: 20%;transform: scaleX(1);}
    95% {margin-bottom: 10px;margin-left: 10%;transform: scaleX(1);}
    100% {margin-bottom: 0px;margin-left: 0%;transform: scaleX(1);}
}

/* RESOURCES LIST */
#resources {
    width: 800px;
    height: 100vh;
    position: fixed;
    top:0;
    right: 0;
    display: block;
    padding: 20px;
    box-sizing: border-box;
    background-color: var(--navyOpacity);
    backdrop-filter: blur(8px);
    color: var(--cream);
    cursor: pointer;
    transition: all 0.5s ease-in-out;
}
#resources h2 {
    display: inline-block;
    transform: rotate(-90deg) translateY(-50px) translateX(-20px);
    transform-origin: center;
    margin: 5px;
}
/* LECTURES INDEX */
#lectures-index {
    display: none;
    flex-direction: column;
}

#lectures-index a {
    text-decoration: none;
    color: var(--navy);
}

#lectures-index div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-bottom: 1px solid var(--navy);
    padding: 10px 0;
    cursor: pointer;
}

#lectures-index div:hover {
    background-color: var(--navy);
    color: var(--cream);
}

#lectures-index span, #lectures-grid span {
    font-family: var(--mono);
    font-size: 14px;
    text-transform: uppercase;
}

#lectures-index h2, #lectures-grid h2 {
    margin: 0;
}

/* LECTURES GRID */
#lectures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--navy);
}
#lectures-grid > .lecture {
    padding: 20px;
    border-right: 1px solid var(--navy);
    border-bottom: 1px solid var(--navy);
}
.lecture a {
    text-decoration: none;
    font-style: normal;
}
.lecture:hover {
    background-color: var(--navy);
    color: var(--cream);
}
.lecture:hover a {
    color: var(--cream);
}
/*#lectures-grid > .lecture:nth-last-of-type(-n + 3) {
    padding: 20px;
    border-bottom: 1px solid var(--navy);
}*/
#lectures-grid > .lecture:nth-of-type(3n) {
    padding: 20px;
    border-right: 0px solid var(--navy);
}
/*LECTURES GRID GRAPHICS*/
#lectures-grid-graphic-1 {
    border-radius: 100%;
    background-color: rgb(189, 237, 221);
    background: -webkit-radial-gradient(top, #fecccc 0%, #f77575 50%, #f84a4a 59%, #f84a4a 60%, #fecccc 70%, #fecccc 100%);
    height: auto;
    width: 80%;
    margin: 20px auto;
    aspect-ratio: 1/1;
    opacity: 90%;
    transition: all 0.5s ease-in-out;
    filter: blur(8px);
}

#lectures-grid-graphic-1:hover {
    opacity: 100%;
    filter: blur(0px);
}

/* SCHEDULE */
#schedule {
    padding: 20px;
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 100px;
}
.schedule {
    border-bottom: 1px solid var(--navy);
    padding-bottom: 10px;
}
.schedule ul {
    list-style: none;
    font-family: var(--mono);
    font-size: 12px;
}
.agenda ul {
    margin-bottom: 40px;
}
.due {
    display: block;
    margin-left: 40px;
    background-color: var(--navy);
    width: fit-content;
    color: var(--cream);
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    padding: 2px 5px;
}
.due-list ul {
    margin-top: 10px;;
}

/* TABLE OF CONTENTS */
#table-of-contents {
    display: flex;
    flex-direction: column;
}
#table-of-contents ul {
    list-style: upper-roman;
    padding:0 0 0 20px;
}
#table-of-contents a {
    text-decoration: none;
}
#table-of-contents a:hover {
    text-decoration: underline;
}

/* EXERCISE */
.exercise {
    display: grid;
    grid-template-columns: 1fr 5fr;
    border-bottom: 1px solid var(--navy);
    padding-bottom: 10px;
    padding-right: 100px;
    gap: 20px;
}
.exercise > div > .small {
    color: rgb(172, 172, 172)
}
.exercise p {
    margin: 10px 0 20px 20px;
}
.exercise ul {
    list-style: none;
    font-family: var(--mono);
    font-size: 12px;
    margin: 0;
    padding: 10px 0 20px 20px;
}

/* READINGS */
.reading {
    border-bottom: 1px solid var(--navy);
}
.reading h3 {
    margin:0 0 10px 0;
}

.table-heading {
    background-color: var(--navy);
    color: var(--cream);

    /*display: grid;
    grid-template-columns: 1fr 5fr;
    border-bottom: 1px solid var(--navy);
    gap: 20px;*/

    padding: 10px;

    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;

    position: sticky;
    top: 0;
}