.app-container {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

.main-header {
  position: fixed;
  height: 50px;
  width: 100%;
  top: 0;
  text-align: center;
  align-content: center;
  border-bottom: 1px solid lightgrey;
  z-index: 1000;
}

.main-content {
  position: absolute;
  width: 100%;
  top: 84px;
  bottom: 50px;
  overflow-y: auto;
  background-color: whitesmoke;
}

.main-footer {
  position: fixed;
  width: 100%;
  bottom: 0px;
  height: 50px;
  border-top: 1px solid lightgrey;
  align-content: center;
  text-align: center;
  background-color: white;
  color: black;
  z-index: 1000;
}

.page-header {
  border-bottom: 1px solid lightgrey;
  background: #61613f;
  background: -webkit-linear-gradient(0deg, rgba(97, 97, 63, 1) 0%, rgba(65, 71, 34, 1) 45%, rgba(38, 38, 0, 1) 100%);
  background: -moz-linear-gradient(0deg, rgba(97, 97, 63, 1) 0%, rgba(65, 71, 34, 1) 45%, rgba(38, 38, 0, 1) 100%);
  background: linear-gradient(0deg, rgba(97, 97, 63, 1) 0%, rgba(65, 71, 34, 1) 45%, rgba(38, 38, 0, 1) 100%);
  font-size: 16px;
  padding: 4px 0;
  color: white;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  position: fixed;
  top: 50px;
  width: 100%;
  height: 34px;
  z-index: 1000;
}

.page-content {
  margin: auto;
  max-width: 800px;
}

.page-message {
  margin: 20px;
  background-color: antiquewhite;
  border-radius: 6px;
  padding: 10px;
  width: fit-content;
}

.form-addedit {
  border: 1px solid lightgrey;
  border-radius: 4px;
  padding: 6px;
  margin: 4px;
  display: flex;
}

.form-addedit-dataitems {
  width: 90%;
  border-right: 1px solid lightgrey;
  padding: 6px;
}

.form-addedit-controls {
  width: 10%;
  min-width: 56px;
  padding: 6px;
  text-align: end;
}

.form-data-label {
  font-weight: bold;
  display: block;
}

.form-field-text {
  font-family: inherit;
  display: block;
  width: 100%;
  max-width: 400px;
  border-radius: 4px;
  padding: 4px;
}

.form-field-longtext {
  font-family: inherit;
  display: block;
  width: 100%;
  max-width: 800px;
  border-radius: 4px;
  padding: 4px;
  overflow-x: hidden;
}

.form-field-shorttext {
  font-family: inherit;
  display: block;
  width: 100%;
  max-width: 100px;
  border-radius: 4px;
  padding: 4px;
  overflow-x: hidden;
}

.form-field-datetime {
  font-family: inherit;
  display: block;
  width: 100%;
  max-width: 150px;
  border-radius: 4px;
  padding: 4px;
  overflow-x: hidden;
}

.form-field-dropdown {
  font-family: inherit;
  display: block;
  width: 100%;
  max-width: 400px;
  border-radius: 4px;
  padding: 4px;
  overflow-x: hidden;
}

.actionbutton-container {
  padding: 6px 0 0 4px;
}



.checkbox-container {
  margin: 4px;
}

.checkbox-label {
  margin-right: 6px;
}

.checkbox-box {
  margin-top: 2px;
}

.datacards-container {
}

.datacard {
  border: 1px solid lightgrey;
  border-radius: 4px;
  padding: 6px;
  margin: 4px;
  display: flex;
}

.datacard-dataitems {
  width: 80%;
  border-right: 1px solid lightgrey;
  padding: 6px;
}

.datacard-fullwidth {
  width: 100%;
  padding: 6px;
}

.datacard-controls {
  width: 20%;
  min-width: 56px;
  padding: 6px;
  text-align: end;
}

.dataitem-withicon {
  display: flex;
  align-items: end;
}

.dataitem-header {
  font-size: 12px;
  text-transform: uppercase;
}

.dataitem-name {
  font-weight: bold;
}

.dataitem-value {
  overflow-x: hidden;
  white-space: nowrap;
}

.dataitem-icon {
  height: 24px;
  width: 24px;
  margin: 4px 4px 0 0;
}

.login-container {
  max-width: 360px;
  margin: 3rem auto;
  padding: 2rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 0 10px #eee;
}

.loginform-toggle {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1rem;
}

  .loginform-toggle button {
    flex: 1;
    padding: 10px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    border-radius: 4px;
  }

    .loginform-toggle button.active {
      background: #007bff;
      color: white;
    }

.loginform {
  display: flex;
  flex-direction: column;
}

  .loginform input {
    margin: 8px 0;
    padding: 10px;
    font-size: 1rem;
  }

  .loginform button {
    margin-top: 1rem;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
  }

  .loginform .alertmessage {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #d00;
  }

.match-container {
}

.result-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.result-header {
  font-size: 12px;
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
  margin-left: 4px;
}

.match-header {
  width: 40%;
  display: flex;
  flex-direction: column;
}

.match-number {
  font-weight: bold;
}

.match-datetime {
}

.scores-header {
  width: 20%;
  text-align: center;
}

.result-content {
  display: flex;
  flex-direction: row;
  margin-left: 4px;
}

.home-team {
  display: flex;
  padding: 8px 0;
  align-items: center;
  width: 100%;
}

.result-home-team {
  display: flex;
  padding: 8px 0;
  align-items: center;
  height: 40px;
}

.home-team-name {
  font-weight: bold;
  padding-left: 10px;
  margin-right: 6px;
  width: 80%;
}

.home-team-badge {
  height: 30px;
  width: 30px;
}

.home-team-score {
  font-size: 20px;
  font-weight: bold;
  margin-right: 12px;
  width: 20%;
  text-align: right;
}

.home-team-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.result-teams {
  width: 40%;
}

.away-team {
  display: flex;
  padding: 8px 0;
  align-items: center;
  width: 100%;
}

.result-away-team {
  display: flex;
  padding: 8px 0;
  align-items: center;
  height: 40px;
}

.away-team-name {
  font-weight: bold;
  padding-left: 10px;
  margin-right: 6px;
  width: 80%;
}

.away-team-badge {
  height: 30px;
  width: 30px;
}

.away-team-score {
  font-size: 20px;
  font-weight: bold;
  margin-right: 12px;
  width: 20%;
  text-align: right;
}

.result-score {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

.away-team-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.player-scores {
  display: flex;
  flex-direction: column;
  width: 20%;
  text-align: -webkit-center;
}

.player-score {
  height: 40px;
  align-content: center;
  width: 100%;
}

.latest-scores {
  display: flex;
  flex-direction: column;
  width: 20%;
  text-align: -webkit-center;
}

.latest-score {
  height: 40px;
  align-content: center;
  width: 100%;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  color: red;
}

.final-scores {
  display: flex;
  flex-direction: column;
  width: 20%;
  text-align: -webkit-center;
}

.final-score {
  height: 40px;
  align-content: center;
  width: 100%;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  color: green;
}

.latest-player-points {
  display: flex;
  flex-direction: column;
  width: 20%;
  text-align: -webkit-center;
  height: 100%;
}

.latest-player-point {
  font-size: 32px;
  font-weight: bold;
  color: red;
  text-align: center;
  height: 80px;
  align-content: center;
}

.final-player-points {
  display: flex;
  flex-direction: column;
  width: 20%;
  text-align: -webkit-center;
  height: 100%;
}

.final-player-point {
  font-size: 32px;
  font-weight: bold;
  color: green;
  text-align: center;
  height: 80px;
  align-content: center;
}

.match-status-container {
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.match-status-label {
  font-size: 10px;
  text-transform: uppercase;
  margin-right: 6px;
}

.match-status {
  background-color: green;
  color: white;
  border-radius: 6px;
  height: fit-content;
  width: fit-content;
  font-size: 10px;
  padding: 2px 4px;
}

.form-results {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0.6rem 0;
}

.form-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: white;
  align-content: center;
}

  .form-badge.win {
    background-color: #28a745; /* green */
  }

  .form-badge.draw {
    background-color: #6c757d; /* gray */
  }

  .form-badge.loss {
    background-color: #dc3545; /* red */
  }

  .form-badge.neutral {
    background-color: #999;
  }

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background-color: #fff;
  padding: 1.5rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  max-height: 80%;
  overflow-y: auto;
  z-index: 10000;
}

.latest-result {
  position: relative;
}

  .latest-result::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #444;
  }

.form-divider {
  width: 2px;
  height: 32px;
  background-color: #333;
  margin: 0 0.2rem;
  align-self: center;
}

.fade-overlay-enter-active,
.fade-overlay-leave-active {
  transition: background-color 0.1s ease;
}

.fade-overlay-enter-from,
.fade-overlay-leave-to {
  background-color: rgba(0, 0, 0, 0);
}

.fade-overlay-enter-to,
.fade-overlay-leave-from {
  background-color: rgba(0, 0, 0, 0.5);
}

.fade-zoom-enter-active,
.fade-zoom-leave-active {
  transition: all 0.5s ease;
}

.fade-zoom-enter-from,
.fade-zoom-leave-to {
  opacity: 0;
  transform: scale(0.9);
}

.fade-zoom-enter-to,
.fade-zoom-leave-from {
  opacity: 1;
  transform: scale(1);
}

.pwa-update {
  position: fixed;
  left: 50%;
  bottom: calc(62px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 20000;
  width: min(92%, 520px);
  padding: 12px;
  color: white;
  background: #344014;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.pwa-update button {
  margin-left: 10px;
  padding: 7px 12px;
  color: #000082;
  background: white;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}


@media (min-width: 1024px) {
  .datacard-dataitems {
    width: 90%;
    border-right: 1px solid lightgrey;
    padding: 6px;
  }

  .datacard-controls {
    width: 10%;
    min-width: 56px;
    padding: 6px;
    text-align: end;
  }
}
