/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
*/

:root {
  --bg-color: #222;
  --alt-bg-color: #333;
  --text-color: #fff;
  --accent: #90FF1E;
  --app-font: 'Poppins', sans-serif;
  --admin-accent: #2d8cff;
  --admin-error: #ff4d4d;
  --admin-message: #ffb84d;
  --admin-confirm: #4caf50;
  font-size: 16px;
  background-color: var(--bg-color);
  font-family: var(--app-font);
  font-weight: 400;
  color: var(--text-color);
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100dvh;
  padding-bottom: 285px;
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: var(--alt-bg-color);
  text-align: center;
  padding: 30px 5%;
  margin-top: 50px;

  & button {
    font-size: 1.25rem;
  }

  & p {
    font-size: 1.5rem;
  }
}

.app__margin,
.app__primary-heading,
.app__secondary-heading,
.app__certifications {
  width: 90%;
  max-width: 900px;
}

.app__primary-heading,
.app__secondary-heading {
  font-weight: 700;
  margin: 50px auto 30px auto;
  text-align: center;
}

.app__center-content,
.app__certifications,
.footer__container,
.footer__social-links {
  display: flex;
}

.app__center-content {
  flex-grow: 1;
  justify-content: center;
  align-items: center;
}

.app__margin {
  margin: 0 auto;
}

.app__primary-heading {
  font-size: 2rem;
}

.app__secondary-heading {
  font-size: 1.5rem;
}

.app__paragraph {
  margin-bottom: 20px;
}

.app__link {
  color: var(--accent);
  text-decoration: underline;
}

.app__certifications {
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 auto;
}

.app__certifications img {
  width: 120px;
  height: 120px;
}

.app__error-message {
  color: var(--admin-error);
  font-weight: 500;
  margin: 5 20px;
}

.footer__container {
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer__social-links {
  gap: 40px;

  & a {
    display: block;
    background-color: var(--bg-color);
    color: var(--accent);
    width: 50px;
    height: 50px;
    padding: 10px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s
  }

  & a:hover {
    background-color: var(--accent);
    color: var(--bg-color);
  }
}

.app__modal {
  position: fixed;
  top: 0;
  left: 0;
  background-color: color-mix(in srgb, var(--alt-bg-color) 95%, transparent);
  backdrop-filter: blur(10px);
  width: 100%;
  height: 100dvh;
  overflow: auto;
  z-index: 99;
  transition: opacity 0.3s ease;
}

@media only screen and (width > 768px) {
  body {
    padding-bottom: 160px;
  }

  .app__primary-heading {
    font-size: 3rem;
    margin-bottom: 55px;
  }

  .app__certifications {
    gap: 40px;
  }

  .app__certifications img {
    width: 150px;
    height: 150px;
  }

  .app__thank-you-header {
    max-width: 500px;
    margin: 0 auto;
  }

  .footer__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
