*{
    margin: 0px;
    padding: 0px;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    box-sizing: border-box;
}
:root {
    --color-primary:       #1a73e8;   /* main brand/action color */
    --color-primary-hover: #1669c1;
    --color-secondary:     #e91e63;   /* accent or supporting color */
    --color-background:    #ffffff;
    --color-surface:       #f5f5f5;   /* cards, panels, etc. */
    --color-border:        #cccccc;
    --color-text:          #393939;
    --color-muted:         #777777;
    --color-error:         #d32f2f;
    --color-success:       #388e3c;
    --color-warning:       #fbc02d;
    --color-button:        #3b668a; /* Button color */
    --color-button-hover:  #21394d; /* Button hover color */
}

p{
  white-space: pre-line;;
}

.row {
    display: flex;
}
.title-container{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.row-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: auto;
  gap: 20px; /* Space between columns */
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.center-items-horizontally {
  justify-content: center;
}
.center-items-vertically {
  align-items: center;
}

.column-container{
  border: 1px solid #ccc;
  flex: 1;
  padding: 20px;
  background-color: rgb(255, 255, 255);
  color: var(--color-text);
  position: relative;
}
.column-container.primary{
    flex: 2;
}
.column-container.secondary{
    margin: 2px;
    width: fit-content;
    border-radius: 10px;
}
.row-item {
  border: 1px solid #ccc;
  padding: 10px;
  margin: 10px 0;
  width: 33%;
  height: auto;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content:space-between;
}

.break {
  flex-basis: 100%; /* Forces a line break */
  height: 0;
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* semi-transparent black */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}
/* Popup container (hidden by default) */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup.profile {
  justify-content: flex-end;
  align-items: flex-start;
}

/* Popup content */
.popup-content {
    background: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: fit-content;
    height: fit-content;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;   
    gap: 10px; 
}

.popup-content.profile {
    width:fit-content; 
    height: fit-content;
    top: 65px;
    right: 10px;
    position: absolute;
}

/* Buttons */
button {
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    background-color: var(--color-button);
}

.fill {
    width: 100%;
}

.button-group {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

/* Close button */
.close-button {
    background: red;
}

.close-button:hover {
    background-color:darkred;
}
button:hover{
    background-color: var(--color-button-hover);
}

.icon-button {
    position: absolute; /* Position relative to the page */
    top: 10px;          /* Distance from the top */
    right: 10px;        /* Distance from the right */
    background-color: #8f8f8f;
    border-radius: 50%; /* Circular button */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
  }

  .icon-button i {
    font-size: 20px; /* Adjust the icon size */
  }

  .icon-button:hover {
    background-color: #616161; /* Darker grey on hover */
  }

  .icon-button img {
    top: 0;
    left: 0;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
  }

  .icon-button.small {
    width: 30px;
    height: 30px;
    background-color: var(--color-primary);
  }

  .icon-button.small i{
    font-size: 100%;
  }

  .icon-button.small:hover {
    background-color: var(--color-primary-hover); /* Darker grey on hover */
  }

.clickable {
    cursor: pointer; /* Changes cursor to a hand icon */
}

.clickable:hover {
    background-color: rgba(164, 193, 255, 0.319); /* Change color on hover for better feedback */
}

/* Switches */
.switch {
    position: relative;
    display: inline-block;
    height: auto;
    width: 60px;
    aspect-ratio: 60/34;
    margin-left: auto;
    margin-top: auto;
    margin-bottom: auto;
    align-items: center;
  }
  
  .switch input { 
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    -webkit-transition: .4s;
    transition: .4s;
  }

.range {
    width: 300px;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: auto;
    width: 26px;
    aspect-ratio: 1;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 26px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }
.switch-container {
    display: flex;
    margin-left: auto;
    align-items: center; /* Align the switch and text vertically */
    gap: 0.5rem; /* Space between the switch and the text */
}
.background-overlay {
    height: 50vh; /* Full viewport height */
    width: 100%; /* Full width */
    background-position: center; /* Center cropped portion */
    background-repeat:repeat-x; 
    color: white;
    background-blend-mode: multiply;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: xxx-large;
}
.match-request-form-element-container {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between form elements */
    margin-bottom: 20px; /* Space below the form */
    background-color: white;
}

h1{
  text-align: center;
}

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

form {
  display: flex;
  flex-direction: column;
  gap: 1rem; 
  background-color: #ffffff;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  color: #333;
}

input {
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

input[type="range"] {
  width: 100%;
  padding: 0%;
  box-sizing: border-box;
  color: var(--color-secondary);
  accent-color: var(--color-secondary); /* Change the color of the range input thumb */
}

.slider-row {
  gap: 20px; /* Space between items in the row */
}

.label.form-label {
  font-size: x-large;
  padding-top: 10px;
}

.form-step{
  display:none;
}

.form-step.active {
  display: block; /* Show the active step */
}


.radio-group {
  margin: 0 0;
  display: flex; /* horizontal layout */
  flex-direction: row;
  gap: 8px;      /* spacing between buttons */
}

.radio-group input[type="radio"] {
  opacity: 0; /* make the radio input invisible */
  pointer-events: none;
  position: absolute; /* Hide the radio input */
}

.radio-group label {
  padding: 10px 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  background-color: var(--color-surface);
  transition: background-color 0.2s, border-color 0.2s;
}

/* When the radio is checked, style the label */
.radio-group input[type="radio"]:checked + label {
  background-color: var(--color-secondary);
  color: var(--color-background);
  border-color: none;
}

/* Optional hover effect */
.radio-group label:hover {
  background-color: #ddd;
}

.position-inherit {
  position:inherit;
}

.no-outline {
  border: 0;
}



@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}