/* this is the style sheet for my Park Gunwook Meeting Minutes */

:root {
  --main-bg: hsl(281, 100%, 96%);
  --accent-color: #8e44ad;
}

body {
  background-color: var(--main-bg, #e8f5ff);
}
.main-title {
  color: blueviolet;   
}

#meet-time {
  color: rgb(99, 28, 143);
}

h2 ~ p {
  color: #680042;
}

h2 + p {
  font-weight: bold;
}

h3.topics {
  background: #ebbcff;
}

.roboto-font {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

* {
  font-family: "Roboto", sans-serif;
}

button:hover { 
  color: color(display-p3 0.7 0 0.5); 
}	

h2, h3 {
  color: color-mix(in srgb, red 20%, blue);
}

section ul li {
  font-size: 1.5em;
}

main {
  padding: 2rem;
}

img {
  max-width: 80vw;
}

header {
  margin-bottom: 24px;
}

.topic img {
  border: 2pt solid #680042;
}

hr {
  height: 0.1in;
}

ol > li {
  padding: 5px; 
}

.topic {
  margin-top: 20px;
  margin-right: 10px;
  margin-bottom: 20px;
  margin-left: 10px;
}

footer {
  margin: 10px 20px 10px 20px;
}

form {
  margin: 0 auto;
  max-width: 600px;
}

fieldset {
  padding-top: 12px;
  padding-right: 24px;
  padding-bottom: 12px;
  padding-left: 24px;
}

button {
  padding: 8px 16px 8px 16px;
}

img {
  border-style: solid;
  border-width: 2px;
  border-color: #8e44ad;
  border-radius: 8px;
}

hr {
  border: 2px dashed #680042;
}

a {
  text-decoration: underline;
}

p {
  text-align: left;
}

img {
  width: 250px;
  height: auto;
  max-width: 100%;
  min-width: 120px;
}

nav ol {
  display: flex;
  flex-direction: row;
  gap: 1.5em;
  justify-content: space-between;
  align-items: center;
}

.attendance-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
  justify-items: start;
}

@media (max-width: 600px) {

  main {
    padding: 0.5rem;
  }

  nav ol {
    flex-direction: column;
    gap: 0.5em;
  }

  img, video {
    max-width: 100vw;
  }
  
}

header {
  position: sticky;
  top: 0;
  background: var(--main-bg, #f9f9ff);
  z-index: 100;
}

footer {
  position: relative;
}

details[open] > ul {
  display: block;
}

details > ul {
  display: none;
}

nav ol {
  display: flex;
  gap: 1em;
}

label {
  display: inline-block;
  width: 120px;
}

button:hover {
  color: color(display-p3 0.7 0 0.5);
}

button:active {
  background-color: #f3e6fa;
}

input:focus {
  outline: 2px solid #8e44ad;
}

section:has(details[open]) {
  border-left: 4px solid #8e44ad;
}

section {
  & ul {
    margin-left: 1em;
  }
}