@charset "UTF-8";
@font-face {
  font-family: "Hind";
  src: url("/static/fonts/Hind-Regular.ttf");
  font-style: normal;
}
@font-face {
  font-family: "Hind Medium";
  src: url("/static/fonts/Hind-Medium.ttf");
  font-style: normal;
  font-weight: 500;
}
@font-face {
  font-family: "Prompt";
  src: url("/static/fonts/Prompt-Medium.ttf");
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "Rambla";
  src: url("/static/fonts/Rambla-Bold.ttf");
  font-style: normal;
  font-weight: 500;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1 {
  font-family: "Prompt", sans-serif;
  color: rgb(37, 114, 202);
}

h2,
h3,
h4,
h5,
h6 {
  font-family: "Rambla", sans-serif;
}

strong,
b {
  font-family: "Hind Medium", sans-serif;
}

a {
  text-decoration: none;
  color: rgb(37, 114, 202);
}

img {
  max-width: 100%;
  border-radius: 8px;
}

button,
.cta {
  padding: 10px 19px;
  border-radius: 5px;
  display: flex;
  border: none;
  justify-content: center;
  text-align: center;
  width: auto;
  color: rgb(250, 250, 250);
  background: rgb(37, 114, 202);
  margin: 0.5rem 0;
  padding: 0.8rem 1rem;
}
button:hover,
.cta:hover {
  cursor: pointer;
}

#open-nav,
#close-nav {
  display: block;
  width: auto;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Hind", sans-serif;
  background: url("/static/img/waves.svg"), radial-gradient(rgb(37, 114, 202), rgb(33.0523012552, 101.8368200837, 180.4476987448));
  background-repeat: no-repeat, no-repeat;
  background-position: center bottom, center;
  background-size: 100% auto, cover;
  background-attachment: fixed, fixed;
  color: rgb(250, 250, 250);
  display: flex;
  flex-direction: column;
}

nav.nav {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  height: 8vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgb(250, 250, 250);
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  z-index: 101;
  padding: 1rem 10vw;
}
nav.nav img {
  height: 7vh;
  margin: 1rem 0;
}
nav.nav .menu {
  height: 100%;
  display: flex;
  align-items: center;
}
nav.nav .menu #close-nav {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  color: rgb(3, 3, 3);
  font-size: 1.5rem;
  display: none;
}
nav.nav .menu a {
  text-decoration: none;
  color: rgb(3, 3, 3);
  font-weight: bold;
  padding: 0 1rem;
}
nav.nav.nav-open {
  height: 100vh;
}
nav.nav.nav-open .menu {
  flex-direction: column;
}

#open-nav {
  position: fixed;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  background: none;
  color: rgb(3, 3, 3);
}

main.main {
  margin-top: 8vh;
  flex: 1;
}
main.main section {
  padding: 2rem 10vw;
}
main.main article {
  background: rgb(250, 250, 250);
  color: rgb(3, 3, 3);
  padding: 2rem;
  border-radius: 10px;
  max-width: 1000px;
  margin: 1rem auto;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}
main.main article h1 {
  font-size: 2rem;
}
main.main article h2 {
  font-size: 1.6rem;
  margin: 1rem 0 0.7rem 0;
}
main.main article h3 {
  font-size: 1.2rem;
}
main.main article p,
main.main article strong,
main.main article li,
main.main article a {
  font-size: 1rem;
}

article.admin-main .left {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  width: 100%;
}
article.admin-main .right {
  display: flex;
  flex-direction: column;
  height: 100%;
}

footer.footer {
  background: rgb(250, 250, 250);
}
footer.footer .content {
  background: rgb(250, 250, 250);
  color: rgb(3, 3, 3);
  padding: 2rem;
  border-radius: 10px;
  max-width: 1000px;
  margin: 1rem auto;
}

a.kilpailut {
  transition: 0.2s ease;
  height: 500px;
  background: url("/static/img/kilpailut.svg");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  width: 100%;
}
a.kilpailut::after {
  content: "";
  opacity: 0;
  background-image: url("/static/img/kilpailut-hover.svg");
}
a.kilpailut:hover {
  background: url("/static/img/kilpailut-hover.svg");
}

a.voittajat {
  transition: 0.2s ease;
  height: 500px;
  background: url("/static/img/voittajat.svg");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  width: 100%;
}
a.voittajat::after {
  content: "";
  opacity: 0;
  background-image: url("/static/img/voittajat-hover.svg");
}
a.voittajat:hover {
  background: url("/static/img/voittajat-hover.svg");
}

a.luo-tili {
  transition: 0.2s ease;
  height: 500px;
  background: url("/static/img/luo-tili.svg");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  width: 100%;
}
a.luo-tili::after {
  content: "";
  opacity: 0;
  background-image: url("/static/img/luo-tili-hover.svg");
}
a.luo-tili:hover {
  background: url("/static/img/luo-tili-hover.svg");
}

ul#competition-catches a li {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
ul#competition-catches a li img {
  max-height: 70px;
}

.floating-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  height: 50px;
  display: flex;
  padding: 0.2rem 1rem;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: rgb(37, 114, 202);
  font-size: 1rem;
  color: #fff;
}

.input-field label {
  display: block;
  padding: 1rem 0 0.2rem 0;
}
.input-field input,
.input-field textarea {
  font-family: inherit;
  padding: 8px;
  width: 100%;
  font-size: clamp(16px, 1rem, 1rem);
  border-radius: 5px;
  border: 1px solid rgb(211.75, 211.75, 211.75);
  outline: none;
  transition: 0.3s ease;
  margin: 0.3rem 0;
}
.input-field input:focus,
.input-field textarea:focus {
  border: 1px solid rgb(135.25, 135.25, 135.25);
}

form h2,
form h3 {
  margin: 0.9rem 0 0.3rem 0;
  border-bottom: 1px solid rgb(211.75, 211.75, 211.75);
  padding: 0.3rem 0;
}
form #map {
  height: 35vh;
}
form .form-field label {
  display: block;
  padding: 1rem 0 0.2rem 0;
}
form .form-field input,
form .form-field textarea {
  font-family: inherit;
  padding: 8px;
  width: 100%;
  font-size: clamp(16px, 1rem, 1rem);
  border-radius: 5px;
  border: 1px solid rgb(211.75, 211.75, 211.75);
  outline: none;
  transition: 0.3s ease;
  margin: 0.3rem 0;
}
form .form-field input:focus,
form .form-field textarea:focus {
  border: 1px solid rgb(135.25, 135.25, 135.25);
}
form .form-field select {
  width: 100%;
  padding: 8px;
}
form .form-field .checkbox {
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
form .form-field .checkbox label {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}
form .form-field .checkbox input[type=checkbox] {
  appearance: none;
  background-color: #fff;
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 1.15em;
  height: 1.15em;
  border: 0.15em solid currentColor;
  border-radius: 0.15em;
  transform: translateY(-0.075em);
  margin-right: 10px;
  display: grid;
  place-content: center;
}
form .form-field .checkbox input[type=checkbox]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em rgb(37, 114, 202);
}
form .form-field .checkbox input[type=checkbox]:checked::before {
  transform: scale(1);
}
form .form-progress {
  padding: 0.5rem 0;
}
form .form-progress progress {
  display: none;
  width: 100%;
  padding: 1rem;
}
form .form-progress .progress-text {
  display: none;
}
form .form-button {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 0 0 0;
  gap: 1rem;
}
form .form-button button {
  background: rgb(37, 114, 202);
}
form .form-links a {
  text-decoration: none;
  color: rgb(37, 114, 202);
}

#competition-completed {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 217, 0, 0.6);
  border: 1px solid rgba(255, 217, 0, 0.9);
  text-align: center;
  border-radius: 10px;
  display: none;
}

.map-column .map-area {
  display: flex;
}
.map-column .map-area #competition-map {
  width: 100%;
  border-radius: 10px;
  height: 100%;
  min-height: 35vh;
  object-fit: cover;
  flex: 1 1 auto;
}

.mapboxgl-map {
  min-height: 100%;
  width: 100%;
}

ul,
ol {
  margin: 0.2rem 1.5rem;
}

ul#competitions-list {
  margin: 0;
}

ul#user-list a {
  color: rgb(37, 114, 202);
}

ul#competition-winners li {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  padding: 0.5rem 0;
  margin: 0.3rem 0;
  border-bottom: 1px solid rgb(37, 114, 202);
  gap: 5px;
}
ul#competition-winners li .angler-name {
  display: flex;
  align-items: center;
}
ul#competition-winners li .angler-name .fa-solid {
  color: gold;
  margin-right: 5px;
}

ul#moderatable-fishes {
  list-style: none;
  margin: 0;
}
ul#moderatable-fishes li {
  padding: 0.5rem 0;
  margin: 0.2rem 0;
  border-bottom: 1px solid rgb(28.5, 28.5, 28.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
ul#moderatable-fishes li img {
  width: 50px;
}

ul#leaderboard-list {
  margin: 0;
}
ul#leaderboard-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  margin: 0.3rem 0;
  border-bottom: 1px solid rgb(37, 114, 202);
}

.accept-reject button {
  flex: 1;
}
.accept-reject #reject {
  background: #cf4f4f;
}

dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 1.5rem;
  border-radius: 10px;
  min-width: 40vw;
}
dialog button.reject {
  background: #cf4f4f;
}

.ul-styled {
  list-style: none;
  margin: 0;
}
.ul-styled li {
  padding: 8px 0;
  border-bottom: 1px solid rgb(37, 114, 202);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mw-40 {
  max-width: 40vw;
  margin: 0 auto;
}

.card {
  background: #fff;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}
.card .card-title {
  padding: 1rem;
  border-bottom: 1px solid rgb(211.75, 211.75, 211.75);
}
.card .card-content {
  padding: 1rem;
}

ul.limited-height {
  max-height: 200px;
  overflow-y: scroll;
}

ul#moderations {
  list-style: none;
  margin: 1rem 0;
}
ul#moderations li {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0.5rem 0;
  margin: 0.3rem 0;
}
ul#moderations .approved {
  border-bottom: 2px solid #8fcf4f;
}
ul#moderations .rejected {
  border-bottom: 2px solid #cf4f4f;
}

.competition-link {
  text-decoration: none;
  color: rgb(3, 3, 3);
}
.competition-link .competition-card {
  border: 1px solid rgb(211.75, 211.75, 211.75);
  border-radius: 10px;
  margin: 1rem 0;
  width: 100%;
  overflow: hidden;
  transition: 0.2s ease;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}
.competition-link .competition-card.completed-competition {
  position: relative;
}
.competition-link .competition-card.completed-competition::after {
  content: "Kisa on päättynyt!";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: flex;
  font-size: 2rem;
  color: rgb(37, 114, 202);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  filter: blur(0);
  z-index: 101;
}
.competition-link .competition-card:hover {
  transform: scale(1.01);
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
}
.competition-link .competition-card .left {
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.competition-link .competition-card .left .competition-title {
  color: rgb(37, 114, 202);
  text-decoration: underline;
}
.competition-link .competition-card .left .content {
  flex: 1;
  padding: 1rem 0;
}
.competition-link .competition-card .left .footer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.competition-link .competition-card .card-map {
  height: 100%;
  min-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(37, 114, 202);
  color: rgb(250, 250, 250);
}

.competition-content {
  display: none;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 5rem;
}
.loading .loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  border: 3px solid;
  border-color: #217dff #0033ff transparent transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
.loading .loader::after,
.loading .loader::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid;
  border-color: transparent transparent #00ff84 #0d8500;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-sizing: border-box;
  animation: rotationBack 0.5s linear infinite;
  transform-origin: center center;
}
.loading .loader::before {
  width: 32px;
  height: 32px;
  border-color: #1303ff #14fdd6 transparent transparent;
  animation: rotation 1.5s linear infinite;
}
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

.alert {
  text-align: center;
  padding: 0.4rem 1rem;
  border-radius: 5px;
  margin: 1rem 0;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 4vh;
}

.alert-error {
  background: rgba(239, 52, 52, 0.569);
  border: 1px solid rgba(239, 52, 52, 0.9);
}

.alert-success {
  background: rgba(142, 239, 52, 0.569);
  border: 1px solid rgba(142, 239, 52, 0.9);
}

.alert-warning {
  background: rgba(239, 202, 52, 0.569);
  border: 1px solid rgba(239, 202, 52, 0.9);
}

.admin-action-button {
  display: block;
  padding: 0.5rem 1rem;
  margin: 0.3rem 0.5rem 0.3rem 0;
  background: rgb(37, 114, 202);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.2s ease;
}
.admin-action-button:hover {
  background: rgb(29.1046025105, 89.6736401674, 158.8953974895);
}

.grid {
  display: grid;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.grid-2-1 {
  grid-template-columns: 2fr 1.4fr;
}

.grid-3-1 {
  grid-template-columns: 3fr 1.2fr;
}

.gap-1 {
  gap: 1rem;
}

.gap-2 {
  gap: 2rem;
}

.ptb-2 {
  padding: 2rem 0 2rem 0;
}

.pt-2 {
  padding: 2rem 0 0 0;
}

.flex {
  display: flex;
}

.flex-1 {
  flex: 1;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

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

@media screen and (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
  nav.nav {
    height: 0;
    overflow: hidden;
    padding: 0;
    flex-direction: column;
  }
  nav.nav .menu {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.2s ease;
  }
  nav.nav .menu #close-nav {
    display: block;
  }
  nav.nav .menu a {
    padding: 1rem;
  }
  dialog {
    min-width: 90vw;
    margin: 0 auto;
  }
  main.main {
    margin-top: 5vh;
  }
  main.main section {
    padding: 1rem;
  }
  main.main article {
    padding: 1rem;
    min-width: 100%;
    margin: 1rem auto;
  }
  ul#competition-winners li {
    align-items: center;
    gap: 5px;
  }
  ul#competition-winners li p,
  ul#competition-winners li strong {
    font-size: 2.5vmin;
  }
  ul#competition-winners li .angler-name {
    display: flex;
    align-items: center;
  }
  ul#competition-winners li .angler-name .fa-solid {
    color: gold;
    font-size: 2vmin;
    margin-right: 5px;
  }
}

/*# sourceMappingURL=main.css.map */
