/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

:root {
  --primary-color: #333;
  --secondary-color: #465a3d;
  --accent-color: #007bff;
  --background-color: #f8f9fa;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
}

body {
  font-family: var(--font-family);
  color: var(--primary-color);
  background-color: var(--background-color);
  line-height: 1.5;
  margin: 0;
}

button {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 15px;
}

input {
  padding: 15px;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  display: flex;
  flex-direction: column;
}

.container > * {
  margin: 5px;
}

.container--center {
  align-items: center;
}

form {
  display: flex;
  flex-direction: column;
}

form > label {
  font-weight: 700;
  margin-bottom: 5px;
}

form > input {
  margin-bottom: 15px;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.activities {
  width: 100%;
  list-style: none;
  padding: 0;
}

.activity-card {
  color: var(--primary-color);
}

.activity-card:hover {
  text-decoration: none;
}

.activity__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5em;
}

.activity__type {
  border: 1px solid;
  padding: 0.2em;
}

.activity--text .activity__type {
  color: blue;
  border-color: blue;
}

.activity--quiz .activity__type {
  color: red;
  border-color: red;
}

.activities li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
}

.activity__progress {
  display: flex;
  flex-direction: column;
}

.activity__progress__bar {
  display: flex;
  width: 100%;
  gap: 2px;
  margin-top: 0.5rem;
}

.activity__progress__text {
  display: flex;
  justify-content: space-between;
}

.activity__progress-bar__block {
  width: 100%;
  height: 0.7em;
}
