@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* general styling for meeting minutes page */
:root {
  --main-color: #2c3e50;
  --card-color: #ffffff;
  --page-bg: #f4f6f8;
}

* {
  box-sizing: border-box;
}

/* element selector */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--page-bg, #f4f6f8);
  color: #222;
  margin: 0; /* short margin */
  min-width: 280px;
  min-height: 100pt;
}

/* id selector */
#attendance {
  background-color: white;
}

/* element selector */
header {
  background-color: rgb(44, 62, 80);
  color: white;
  margin-bottom: 20px;
  padding: 2rem 5%;
  border-bottom: 4px solid #3498db;
  text-align: center;
}

/* text styling */
h1 {
  color: orange; /* color name */
  text-decoration: underline;
  text-align: center;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

h2 {
  color: hsl(210, 35%, 30%); /* hsl */
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 12px;
  margin-left: 0; /* long margin */
}

main {
  width: 90%;
  max-width: 900px;
  min-width: 300px;
  margin: 2rem auto; /* auto margin */
}

/* class selector */
.quick-note {
  color: #555; /* hex */
  margin: 1rem auto;
  width: 90%;
  max-width: 900px;
}

/* box model */
section {
  background-color: var(--card-color, #ffffff);
  margin: 20px 0 16px 0; /* short margin */
  padding-top: 12px;
  padding-right: 18px;
  padding-bottom: 12px;
  padding-left: 18px; /* long padding */
  border-style: solid;
  border-color: #dce1e7;
  border-width: 2px;
  border-radius: 8px;
}

/* short padding example */
nav {
  background-color: white;
  padding: 10px 14px 10px 14px;
  margin-bottom: 20px;
}

/* display values */
nav li {
  display: inline-block;
}

span {
  display: inline;
}

img,
audio,
video {
  display: block;
  width: 300px;
  max-width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* position values */
footer {
  position: relative;
  text-align: center;
  background-color: #ffffff;
  padding: 1rem;
  margin-top: 40px;
}

.quick-note {
  position: static;
}

/* links */
a {
  color: #3498db;
  text-decoration: underline;
}

a:hover {
  color: red;
}

a:active {
  color: green;
}

/* form button */
button {
  background-color: #3498db;
  color: white;
  border-style: solid;
  border-color: #3498db;
  border-width: 1px;
  border-radius: 6px;
  padding: 8px 14px; /* short padding */
}

/* selector list */
h3, summary {
  color: #555;
}

/* attribute selector */
a[target="_blank"] {
  font-weight: 600;
}

/* descendant combinator */
nav ul li {
  list-style: none;
}

/* child combinator */
#media > h2 {
  margin-bottom: 1rem;
}

/* general sibling combinator */
h2 ~ p {
  color: hsla(0, 0%, 27%, 1);
}

/* adjacent sibling combinator */
h2 + h3 {
  margin-top: 0.25rem;
}

/* combining two selectors */
section.highlighted {
  background-color: #fffbea;
  border-color: #f1c40f;
}

/* pseudo-class selector */
section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* :has() selector */
section:has(h3) {
  background-color: #fafcff;
}

/* flexbox layout */
.media-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
}

.media-grid > div {
  flex: 1 1 200px;
}

/* grid layout */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

/* nested selectors */
nav {
  & ul {
    & li {
      margin-right: 10px;
    }
  }
}

/* wider-gamut color */
h1 {
  background-color: color-mix(in srgb, #2c3e50 80%, white);
}

/* absolute unit */
footer {
  border-top: 0.03in solid #dce1e7;
}

/* height */
header {
  min-height: 80px;
}

footer {
  height: 60px;
}

/* display none */
.extra-hidden {
  display: none;
}

/* media query */
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  nav li {
    display: block;
    margin-bottom: 6px;
  }
}