:root {
    --primary: #00bd8b;
    --primaryShade: #057b5c;
    --navSelected: #4bb79a;
    --pink: #F11EA8;
    --success: #2CA3D4;
    --secondary: #EF34B1;
    --neutral: #2d3a49;
    --background: #1d242c;
    --mid: rgb(43, 62, 84);
    --error: #fc5252;
    --brightGray: #a6aebb;
    --light: whitesmoke;
    --warning: rgb(170, 98, 38);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Positioning */

.m-auto {
  margin: auto;
}

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

.w-100 {
  width: 100%;
}

.flex {
  display: flex;
}

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

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

.mb-1 {
  margin-bottom: 1%;
}

.mb-2 {
  margin-bottom: 2%;
}

.join {
  display: inline-flex;
  align-items: stretch;
  border-radius: var(--rounded-btn, 0.5rem);
}

/* Colors */

.text-primary {
  color: var(--primary);
}

.btn-primary {
  background-color: var(--primary);
}

.text-success {
  color: var(--success);
}

.btn-success {
  background-color: var(--success);
}

.text-secondary {
  color: var(--secondary);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--background);
}

.btn-error {
  background-color: var(--error);
  color: var(--background);
}

.bg-neutral {
  background-color: var(--neutral);
}

/* Elements */

.input {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.input-bordered {
  border: 1px solid var(--brightGray);
  background-color: var(--background);
}

.gap {
  margin: 1%;
}

input[type="number"] {
  padding: 1%;
  margin-left: 2%;
  background-color: var(--neutral);
  color: whitesmoke;
  border: 1px solid whitesmoke;
  border-radius: 0.5rem;
}

/* Button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
  user-select: none;
  font-weight: bold;
  border: 1px solid black;
  margin-left: 2px;
  margin-right: 2px;
}

.btn:hover {
  filter: brightness(0.8);
}

.btn:active {
  transform: scale(0.97);
  filter: brightness(0.6);
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Padding */

.p-2 {
  padding: 0.5rem; /* 8px */
}

.p-4 {
  padding: 1rem; /* 16px */
}

/* Header */

.navSelected {
  text-decoration: underline !important;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.25rem;
  background-color: var(--success);
  color: white;
  font-family: sans-serif;
  position: relative;
}

.navbar-title {
  font-size: 2.25rem;
  font-weight: bold;
  text-decoration: none;
  color: white;
  max-width: 80vw;
  overflow-x: auto;
  scrollbar-width: none;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

#menuBtn {
  margin-left: 1%;
}

#menuBtn, .navbar-links a {
  text-decoration: none;
  color: white;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.navbar-title:hover {
  text-decoration: underline;
}

#menuBtn:hover, .navbar-links a:hover, .navbar-profile img:hover {
  text-decoration: underline;
  transform: rotate(-5deg);
}

.navbar-profile img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}

/* Home */

/* Reset & basics */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--background);
  color: var(--light);
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

main {
  min-height: 82vh;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.hero-content {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 1.5rem;
}

.hero-content img {
  width: 25%;
  max-width: 200px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
}

.hero-text p {
  margin: 1rem 0;
}

.hero-text img {
  width: 100%;
  opacity: 0.5;
  transition: opacity 0.2s linear;
}

.hero-text img:hover {
  opacity: 1;
}

/* Toast container */
.toastParent {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

/* Modal */

/* Modal overlay */
dialog {
  width: 100%;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;

  margin: 0;
  padding: 0;

  border: none;
  border-radius: 0;

  position: fixed;
  inset: 0;
}

.modal {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100% !important;
  height: 100vh !important;
  background-color: transparent;
}

.modal-container {
  display: flex;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.3);
  align-items: center;
  justify-content: center;
}

/* Modal box */
.modal-box {
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: var(--background);
  color: var(--light);
  width: 50vw;
  text-align: center;
}

.modal-box h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.modal-box hr {
  margin: 1rem 0;
}

.modal-box label {
  display: block;
  margin-bottom: 1rem;
  text-align: left;
}

.modal-box input {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
}

.modal-box ul {
  text-align: left;
  padding-left: 1rem;
  list-style: none;
  color: var(--error);
}

#profileDropdownList {
    z-index: 5;
    position: absolute;
    right: 2%;
    top: 7vh;
    background-color: var(--background);
    border: 1px solid var(--brightGray);
    text-decoration: none;
    list-style: none;
    padding: 1%;
    display: flex;
    align-items: start;
    justify-content: start;
    flex-direction: column;
    gap: 16px;
    /* display: none; */
    font-family: Arial, Helvetica, sans-serif;
}

/* Text Sizes */
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.clippedBox {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
