@import url("./buttons.css");
@import url("./card_score.css");
@import url("./footer.css");
@import url("./navbar.css");

@font-face {
  font-family: 'Andy';
  src: url('../fonts/ANDYB.woff') format('woff');
}

/* Main app area */
.app-main {
  width: 100%;
  flex-grow: 1;
  padding: 16px;
}

.page-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.home-title {
  color: #000000;
  font-weight: bold;
  font-size: 36px;
  text-align: center;
  text-decoration: underline;
  margin: 0;
  margin-bottom: 12px;
}

.back-arrow {
  position: absolute;
  left: 0;
  font-size: 20px;
  color: black;
  text-decoration: none;
}

.back-arrow:hover {
  color: #C4452D;
}

.home-subtitle {
  color: #000000;
  font-weight: bold;
  font-size: 24px;
  text-align: center;
  margin-top: 30px;
  text-decoration: underline;
}

.home-subtitle-competitions {
  color: #000000;
  font-weight: bold;
  font-size: 20px;
  text-align: left;
}

.caption-title {
  color: #000000;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
}

body {
  background-color: #f4e9d8;
  font-family: 'Andy', sans-serif;
}

/* Login page */
.login-page,
.login-page * {
  font-family: 'Andy', sans-serif;
}

.loginpage-subtitle {
  font-weight: bold;
  font-size: 24px;
  color: #4A2E1F;
}

.login-logo img {
  width: 200px;
  height: 200px;
  display: block;
  max-width: 100%;
  margin-bottom: 60px;
}

.login-logo img,
.login-logo-company img {
  margin-left: auto;
  margin-right: auto;
}

.login-logo-company img {
  width: 190px;
  height: 80px;
  display: block;
  max-width: 100%;
  margin-top: 140px;
}

.username-password-size {
  width: 100%;
  min-height: 80px;
  margin-bottom: 20px;
}

.login-form-size {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* =========================================
   GLOBAL FORM STYLE FOR ALL PAGES
========================================= */

input,
textarea,
select,
.form-control {
  width: 100% !important;
  min-height: 56px !important;
  padding: 0 14px !important;
  font-size: 16px !important;
  box-sizing: border-box !important;

  border: 3px solid #4A2E1F !important;
  border-radius: 14px !important;

  background-color: rgba(255, 255, 255, 0.6) !important;
  color: #4A2E1F !important;

  box-shadow: none !important;
  outline: none !important;
}

/* Textarea */
textarea {
  min-height: 120px !important;
  padding-top: 14px !important;
  resize: vertical !important;
}

/* Focus */
input:focus,
textarea:focus,
select:focus,
.form-control:focus {
  border-color: #4A2E1F !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Placeholder */
input::placeholder,
textarea::placeholder,
.form-control::placeholder {
  color: #4A2E1F !important;
  opacity: 0.75 !important;
  font-size: 16px !important;
}

/* Labels */
label {
  font-size: 18px !important;
  margin-bottom: 8px !important;
  color: #4A2E1F !important;
}

/* Crispy spacing */
.form-group,
.mb-3 {
  margin-bottom: 20px !important;
}

/* Form buttons */
form button,
form .btn-app {
  margin-top: 12px;
}

/* Mobile */
@media (max-width: 576px) {
  .login-form-size {
    width: 350px;
  }
}

/* competitions css */
.competitions-page {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.competition-item {
  padding: 12px 0;
}

.competition-item__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.competition-item__text {
  display: flex;
  flex-direction: column;
}

.competition-meta {
  margin: 0;
  font-size: 14px;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.active-competitions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.divider {
  text-decoration: underline;
  font-size: 22px;
  color: #000000;
}

.competition-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/* IMPORTANT */
.red {
  background-color: red;
}

.blue {
  background-color: blue;
}

/* Desktop */
@media (min-width: 768px) {
  .app-main {
    padding: 24px 32px;
  }

  .login-page {
    min-height: calc(100vh - 48px);
    padding: 40px 24px;
  }

  .login-form-size {
    max-width: 420px;
  }

  .login-logo img {
    width: 240px;
    height: 240px;
  }

  .login-logo-company img {
    width: 220px;
    height: auto;
  }

  .competitions-page {
    max-width: 900px;
  }
}

/* Global typography */
body,
button,
input,
textarea,
select,
a,
p,
span,
div,
h1,
h2,
h3,
h4,
h5,
h6,
label {
  font-family: 'Andy', sans-serif !important;
}

/* leaderboard pagina */
.results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}