/* =========================
   Base
========================= */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #111;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-bottom: 120px;
}

/* =========================
   Buttons
========================= */

button {
  font-size: 18px;
  padding: 14px 28px;
  margin: 20px 0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #6cf;
  color: #000;
  transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
  background: #5ab8dd;
}

button:active {
  transform: scale(0.98);
}

button:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* =========================
   Comment Area
========================= */

#comments {
  width: 90%;
  max-width: 700px;
  margin-top: 20px;
}

#comments h2 {
  margin-bottom: 10px;
}

/* =========================
   Inputs
========================= */

input,
textarea {
  width: 100%;
  margin-bottom: 10px;
  font-size: 16px;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #444;
  background: #222;
  color: #fff;
}

input:focus,
textarea:focus {
  outline: 2px solid #6cf;
  border-color: #6cf;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* =========================
   Comment List
========================= */

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  border-bottom: 1px solid #333;
  padding: 12px 0;
  word-break: break-word;
}

/* =========================
   Media
========================= */

img,
video {
  max-width: 100%;
  height: auto;
  margin-top: 8px;
  border-radius: 4px;
}

/* =========================
   Links
========================= */

a {
  color: #6cf;
  text-decoration: underline;
  word-break: break-all;
}

a:hover {
  color: #9de4ff;
}

/* =========================
   Footer
========================= */

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #000;
  border-top: 4px solid #6cf;
  text-align: center;
  padding: 16px;
  font-size: 14px;
}

footer a {
  color: #6cf;
}
