@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Quantico:ital,wght@0,400;0,700;1,400;1,700&family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');

:root {
  /* variables */
  
    /* fonts */
    --fnt-body: "Roboto Flex", verdana, sans-serif;
    --fnt-heading: "Archivo Black", verdana, sans-serif;
    --fnt-code: "Quantico", "courier new", monospace;

    /* colors */
    --clr-light1: #EEE;
    --clr-light2: #DFEEE8;
    --clr-dark1: #222;
    --clr-dark2: #404E4D;
    --clr-accent1: #FDE74C;
    --clr-accent2: #9BC53D;
    --clr-accent3: #E83F6F;
    --clr-accent4: #5BC0EB;
    --clr-cocc-ltblue: #98AEC8;
    --clr-cocc-medblue: #5B778C;
    --clr-cocc-dkblue: #2C5367;
    --clr-cocc-ltgray: #666666;
    --clr-cocc-dkgray: #424242;
}

body {
  background-color: var(--clr-light1);
  color: var(--clr-cocc-dkgray);
  font-family: var(--fnt-body);
  padding: 12px;
  font-size: 90%;
}

.assignment-container {
  width: 88%; max-width: 90ch;
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: var(--fnt-heading);
  margin: 16px 0 8px 0;
  letter-spacing: .1em;
}

h1 {
  border-bottom: 1px solid var(--clr-cocc-dkblue);
  margin-bottom: .5em;
  text-align: center;
  text-transform: lowercase;
}

h1 span {
  display: block;
  text-align: center;
  color: var(--clr-light1);
  text-shadow: 2px 2px 1px var(--clr-cocc-dkblue);
  font-weight: normal;
  margin: -1em 0 1em 0em;
  text-transform: uppercase;
}

h3 {
  font-family: var(--fnt-body);
  color: var(--clr-cocc-dkgray);
  text-align: left;
  line-height: 1.6;
  
}

h3 span {
  color: var(--clr-accent3);
  margin-right: 0;

}

h3 span::after {
  content: " | "
}

p, li {
  line-height: 1.8;
  font-size: 1.1em;
  max-width: 80ch;
}

h1 + p, .subtitle, .quote {
  color: var(--clr-accent3);
  text-align: left;
  margin: 0 0 4em 2em;
  width: 50%; min-width: 350px;
  float: right;
  border-left: 1px solid var(--clr-accent3);
  padding: .6em;
  position: relative;
  font-size: 1em; 
  line-height: 1.4;
  
}

.quote {
  background-image: url(../img/quotemark1.svg);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 40px;
}

header p {
  clear: both;
}

.qauthor {
  display: block;
  font-size: .9em; font-style: italic;
  color: var(--clr-dark2);
  text-align: right;
  position: absolute;
  right: 0; bottom: 0px;
  transform: translateY(110%);
}

h2 {
  color: var(--clr-cocc-dkblue);
}

ul {
  margin-left: 24px;
  list-style-type: square;
}

ul li li {
  list-style-type: circle;
}

ol {
  margin-left: 24px;
}

ol li li {
  list-style-type: lower-alpha;
}

p:hover, li:hover {
  background-color: var(--clr-accent1);
}

p.strong {
  font-weight: bold;
}

p.attention {
  border: 2px solid var(--clr-accent3);
  margin-top: 8px; padding: 8px;
}

.subtitle:hover, .quote:hover {
  background-color: transparent;
}

code, pre {
  font-family: var(--fnt-code);
  color: var(--clr-accent3);
}

figure {
  margin: 1em;
}

/* Basic styling for thumbnails */
.thumbnail-gallery {
  display: flex;
  gap: 10px;
}

.thumbnail {
  width: 200px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.thumbnail:hover {
  transform: scale(1.1);
}

/* Overlay styling */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay-image {
  max-width: 90%;
  max-height: 90%;
  border: 5px solid #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Close button styling */
.close-btn {
  position: absolute;
  top: 32px;
  right: 48px;
  font-size: 56px;
  color: var(--clr-accent1);
  cursor: pointer;
}
