/*
 * 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.
 */

body {
  font-family: sans-serif;
  font-size: 16px;
  margin: 0;
  padding: 0;
  background-color: #222;
  color: #fff;

  .content {
    padding: 20px;
  }
}

.flash {
  margin: 20px 20px 0;
  padding: 10px;
  color: #fff;
  text-align: center;
  border-radius: 5px;

  &.notice {
    background-color: green;
  }

  &.alert {
    background-color: yellow;
    color: #000;
  }

  &.error {
    background-color: red;
  }
}

nav {
  display: flex;
  flex-direction: column;
  background-color: var(--color-orange);
  padding: 10px 20px;
  align-items: center;


  .logo {
    display: block;
    cursor: pointer;

    img {
      height: 48px;
    }
  }

  .actions {
    display: flex;
    gap: 10px;

    .primary,
    .secondary {
      display: flex;
      gap: 10px;

      a {
        display: block;
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        cursor: pointer;
      }
    }
  }


  @media screen and (min-width: 500px) {
    flex-direction: row;

    .actions {
      flex-direction: row;
      margin-left: auto;
      gap: 20px;

      .primary,
      .secondary {
        gap: 20px;
      }
    }
  }
}

a {
  color: #fff;
}

form[hidden] {
  display: none !important;
}