* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 110%;
}

body {
  font-family: 'degular-mono', sans-serif;
  font-size: 1rem;
  background-color: rgb(255, 146, 244);
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

main {
  flex: 1;
  min-height: 0;
}

.nav-container {
  z-index: 10;
  position: sticky;
  top: 0;
  flex: 0 0 auto;
}

nav {
  display: flex;
  justify-content: space-between;
}

.title-link,
.nav-link {
  flex: 1 1;
  transition: all 200ms ease;
  padding: 0 0.25rem 0.15rem 0.25rem;
  color: black;
  background-color: rgb(255, 255, 255);
}

.title-link {
  display: block;
  flex: 0 0 auto;
  transition: all 200ms ease;
  padding: 0.15rem 0.25rem 0 0.25rem;
}

.title-link:hover,
.nav-link:hover {
  color: white;
  background-color: black;
}

.active {
  color: white;
  background-color: black;
}

.active:hover {
  color: white;
  background-color: rgb(80, 80, 80);
}

a {
  color: rgb(255, 146, 244);
  text-decoration: none;
}
a:hover {
  color: black;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 1rem;
  font-weight: normal;
}

p {
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

small {
  font-size: 0.75rem;
  line-height: 1.3;
  margin-top: 1.5rem;
  display: block;
}

#grid-container {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: 100%;
}

@media (max-width: 768px) {
  #grid-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.grid-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid-item,
.img-container {
  overflow: hidden;
  transition: all 200ms ease-out;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.img-container:hover {
  border-radius: 0 !important;
}

.grid-item img {
  width: 200%;
  height: 200%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: soft-light;
  filter: grayscale(100%) contrast(3);
  opacity: 1;
  transition: all 200ms ease-in-out;
  display: block;
  display: block;
}

.grid-item .name {
  font-size: 0.75rem;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  padding: 0.15rem 0.25rem;
  line-height: 0.85;
  color: black;
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(5px);
  transition: all 200ms ease;
}
.grid-item:hover .name {
  color: white;
  background-color: rgba(0, 0, 0, 1);
}

/* _____________ COLORS _____________  */

/* LETTER 1 */
.grid-item:nth-child(1),
.grid-item:nth-child(2),
.grid-item:nth-child(3) {
  background-color: #00a8ff;
}
.grid-item:nth-child(1) .img-container,
.grid-item:nth-child(2) .img-container,
.grid-item:nth-child(3) .img-container {
  background-color: #16f16d;
}

/* LETTER 2 */
.grid-item:nth-child(4),
.grid-item:nth-child(5),
.grid-item:nth-child(6),
.grid-item:nth-child(7) {
  background-color: #ffc3ff;
}
.grid-item:nth-child(4) .img-container,
.grid-item:nth-child(5) .img-container,
.grid-item:nth-child(6) .img-container,
.grid-item:nth-child(7) .img-container {
  background-color: #ffff00;
}
/* LETTER 3 */
.grid-item:nth-child(8),
.grid-item:nth-child(9) {
  background-color: rgb(255, 255, 226);
}
.grid-item:nth-child(8) .img-container,
.grid-item:nth-child(9) .img-container {
  background-color: red;
}
/* LETTER 4 */
.grid-item:nth-child(10),
.grid-item:nth-child(11),
.grid-item:nth-child(12) {
  background-color: #d5efeb;
}
.grid-item:nth-child(10) .img-container,
.grid-item:nth-child(11) .img-container,
.grid-item:nth-child(12) .img-container {
  background-color: #00a8ff;
}
/* LETTER 5 */

.grid-item:nth-child(13),
.grid-item:nth-child(14),
.grid-item:nth-child(15),
.grid-item:nth-child(16),
.grid-item:nth-child(17) {
  background-color: #ffff00;
}
.grid-item:nth-child(13) .img-container,
.grid-item:nth-child(14) .img-container,
.grid-item:nth-child(15) .img-container,
.grid-item:nth-child(16) .img-container,
.grid-item:nth-child(17) .img-container {
  background-color: #ffc3ff;
}
/* ________________________________ */

#list-container {
  display: flex;
  height: 100%;
}

#student-list {
  width: 50%;
  overflow-y: auto;
  list-style: none;
  padding: 1rem;
}

#student-list li {
  font-size: 1rem;
}

#student-list a {
  display: block;
  padding: 0.5vw 0;
  text-decoration: none;
  color: black;
  transition: padding 200ms ease;
}

#student-list a:hover {
  padding-left: 0.5rem;
}

#preview-pane {
  width: 50%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
}

#about-container {
  display: flex;
  background-color: #16f16d;

  h1,
  h2 {
    font-size: 2rem;
    text-transform: uppercase;
    line-height: 1;
  }

  a {
    color: white;
  }
  a:hover {
    color: rgb(137, 137, 137);
  }

  p {
    margin: 0.5rem 0 2.5rem 0;
  }
}

.description {
  padding: 2rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  overflow-y: auto;

  p {
    max-width: 60ch;
  }
}

.about-preview {
  flex: 1 1 50%;
  margin-left: auto;
  max-width: 600px;

  img {
    width: 100%;
    display: block;
    filter: grayscale(100%);
    transition: all 200ms ease;
  }

  img:hover {
    filter: grayscale(0%);
  }
}

@media (max-width: 768px) {
  #about-container {
    flex-direction: column;
  }

  .about-preview {
    max-width: none;
  }
}
