/* ===================================================== */
/* ===================  Base Styles  =================== */
/* ===================================================== */

:root {
    --bg-color: #11192C;
    --text-color:#F3F7F6;
    --accent-red-color: #D50C2F;
    --accent-blue-color: #0068B4;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
  
.header-background {
    background:
    linear-gradient(rgba(17, 25, 44, 0.4), rgba(17, 25, 44, 0.4)),
    url(imgs/headerBackground.png);
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

/* Container */
.header-background {
  max-width: 1300px;
  min-height: 160px;
  margin: 0 auto;
  padding: 0.875rem 0.25rem 0.25rem 0.875rem;

  display: flex;
  align-items: center;
  gap: 2.5rem;
}


.line-divider {
  height: 2px;
  background: #ffffff;
  opacity: 0.7;
  width: 50%;
  margin-left: 6rem;
}

.input-card{
  width: 100%;
  max-width: 520px;
}

.input-form {
  display: grid;
  gap: 1.25rem;
}

.input-field {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.input-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.input-field input {
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.92);
  padding: 0.2rem 0.6rem;
  outline: none;
}

.input-field input:focus {
  border-color: rgba(255,255,255,0.65);
}


/* ===================================================== */
/* ==================  Typography  ===================== */
/* ===================================================== */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-header {
    margin-left: 7.5rem;
    margin-top: 1.5rem;
    margin-bottom: .75rem;
}

.text-section{
    margin-left: 8rem;
}

/* ===================================================== */
/* ================  Button Styles ==================== */
/* ===================================================== */

.red-btn,
.blue-btn {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    padding: .7rem 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, filter 0.15s ease;
    border: none;
    outline: none;
    background-color: inherit;
    font: inherit;
    cursor: pointer;
}

.small-blue-btn {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    padding: .5rem 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, filter 0.15s ease;
    border: none;
    outline: none;
    background-color: inherit;
    font: inherit;
    cursor: pointer;
}

/* Red Button */
.red-btn {
    background-color: var(--accent-red-color);
    text-decoration: underline;
}

/* Blue Button */
.blue-btn, .small-blue-btn {
    background-color: var(--accent-blue-color);
}

/* Hover Effect */
.red-btn:hover,
.blue-btn:hover,
.small-blue-btn:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.inline-btn {
  display: flex;
  gap: 0.75rem; /* space between buttons */
  align-items: center;
}

/* ===================================================== */
/* ================ Pop-up  ================= */
/* ===================================================== */
    .open-modal-btn{
      padding: 10px 10px;
      border-radius: 10px;
      border: 1px solid rgba(0,0,0,0.2);
      background: white;
      cursor: pointer;
    }

    .popup-modal{
      position: fixed;
      inset: 0;
      display: none;
      z-index: 9999;
    }
    .popup-modal.is-open{
      display: block;
    }

    .modal-overlay{
      position: absolute;
      inset: 0;
      background: var(--modal-overlay);
    }

    .modal-style{
      position: relative;
      max-width: 500px;
      width: calc(100% - 64px);
      margin: 64px auto;
      background: #f3f3f3;
      border: 2px solid rgba(0,0,0,0.35);
      border-radius: 18px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    }
    
    .modal-content{
      padding: 10px 20px 20px;
      color: #111;
    }

    .modal-title{
     font-size: 1.75rem;
     font-weight: 600;
     margin-bottom: 0.75rem;
    }

    .modal-paragraph{
      margin: 0;
      margin-bottom: 0.75rem;
      max-width: 50ch;
    }

   .popup-btn{
      margin: 32px auto 0;
      display: block;
      padding: 12px 34px;
      border: none;
      border-radius: 14px;
      background: #0a67b4;
      color: #fff;
      font-size: 1rem;
      cursor: pointer;
      box-shadow: 0 6px 14px rgba(0,0,0,0.2);

    }

/* ===================================================== */
/* ================ Two Column Set Up  ================= */
/* ===================================================== */
.two-column-page {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 1rem;
  padding-right: 6rem;
}

.two-column-left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.two-column-wordcloud {
  width: min(720px, 100%);
  height: auto;
  display: block;
  opacity: 0.95;
}

.two-column-right {
  display: flex;
  justify-content: center;
}

.two-column-divider {
  height: 2px;
  width: 100%;
  background: #ffffff;
  opacity: 0.7;
  margin-bottom: 1.75rem;
}

.info{
  margin-left: 2rem;
  margin-bottom: .4rem;
}




/* ===================================================== */
/* ===================== Login Page ==================== */
/* ===================================================== */



.login-form {
  display: grid;
  gap: 1.25rem;
}

.login-field {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 1rem;
}

.login-field input {
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.92);
  padding: 0.2rem 0.6rem;
  outline: none;
}

.login-field input:focus {
  border-color: rgba(255,255,255,0.65);
}

.login-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}


/* footer row */
.login-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-page .blue-btn {
  padding: 0.55rem 1.6rem;
}

.login-page .red-btn{
  padding: 0.55rem 2.6rem;
}

.forgot-password {
  color: var(--accent-blue-color);
  text-decoration: underline;
  font-size: 0.95rem;
  text-align: right;
}



/* responsive */
@media (max-width: 980px) {
  .login-page {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .login-field {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .login-actions {
    justify-content: flex-start;
  }
}

/* ===================================================== */
/* ===================== Signup Page =================== */
/* ===================================================== */



.signup-form { display: grid; }


.signup-hint {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0.75rem 0;
  line-height: 1.4;
  font-size: 0.95rem;
  opacity: 0.9;
}


/* popup link */
.terms-popup-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--accent-red);
  text-decoration: underline;
  cursor: pointer;
}

.terms-popup-link:hover {
  text-decoration: none;
}


/* Terms popup */
.terms-popup-modal {
  position: absolute;
  transform: translateX(-40px);
  display: none;
  background: #ECEBE8;
  color: #11192C;
  border-radius: 6px;
  z-index: 1000;
  max-width: 500px;
  overflow: visible;
  box-shadow: var(--shadow-soft);
}

.terms-popup-modal.show {
  display: block;
}

.terms-popup-modal-content {
  max-height: 250px;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.terms-popup-modal-arrow {
  position: absolute;
  top: -7px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 10px solid #ECEBE8;
}

.terms-popup-modal-arrow::after {
  content: "";
  position: absolute;
  top: 1px;
  left: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #ECEBE8;
}

#termsPopupModalText {
  white-space: pre-wrap;
}


.signup-checkboxes {
  margin: 0.6rem 0 0.9rem 0;
  display: grid;
  gap: 0.55rem;
}

.signup-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.signup-check input {
  margin-top: 0.25rem;
}

.signup-link {
  color: var(--accent-blue-color);
  text-decoration: underline;
}

.signup-link:hover {
  filter: brightness(1.1);
}

.signup-captcha {
  margin-top: 0.5rem;
}

.signup-captcha > label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.signup-captcha-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
}

.signup-captcha-img {
  width: 120px;
  height: 34px;
  border-radius: 4px;
  background: rgba(255,255,255,0.92);
  display: block;
}

.signup-captcha-row input {
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.92);
  padding: 0.2rem 0.6rem;
  outline: none;
}

.signup-actions {
  margin-top: 1.1rem;
  display: flex;
  justify-content: flex-end;
}


/* responsive */
@media (max-width: 980px) {
  .signup-page {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
  .signup-field {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .signup-actions {
    justify-content: flex-start;
  }
}

/* ===================================================== */
/* ===================== Create a team Page =================== */
/* ===================================================== */
.member-info{
  margin-left: .2rem;
}


/* ===================================================== */
/* ============== Active Tracks ============== */
/* ===================================================== */

.active-header-background {
    background:
    linear-gradient(rgba(17, 25, 44, 0.4), rgba(17, 25, 44, 0.4)),
    url(imgs/headerBackground.png);
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

/* Container */
.active-header-background {
  max-width: 1300px;
  min-height: 160px;
  margin: 0 auto;
  padding: 0.875rem 0.25rem 0.25rem 0.875rem;

  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.active-header-img img {
  width: 250px;
  height: auto;
  display: block;
  margin-left: 6rem;
}

.active-header-selector{
  margin-left: 15rem;
  
  line-height: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card .card--link{
  text-decoration: none;
}

.add-track{
  background: #1E3A5F;        
  border-radius: 0.75rem;
  width: 340px;
  padding: 2.5rem 1.5rem;
  margin-top: 1rem;

  box-shadow: 0 10px 20px rgba(0,0,0,0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
}

.add-card-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text-color);
}
.add-track:hover {
  background: #244A75; 
  transform: scale(1.05);
}




/* ===================================================== */
/* ================  Nav Bar Layout ==================== */
/* ===================================================== */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
}
.nav-logo img {
    height: 40px;          
    width: auto;
    display: block;
}

/* Navigation links */
.nav-links {
    position: absolute;
    right: 10rem;
    top: 2.25rem;
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0 auto; 
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 0.25rem;
    position: relative;
    transition: transform 0.15s ease;

}

.nav-links a:hover {
    transform: scale(1.05);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active::after {
    width: 100%;
}


.nav-actions {
    margin-left: 0rem;
}


/* Log Out */
.nav-logout a {
    position: absolute;
    right: 1rem;
    top: -1rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border-radius: 1.25rem;
    background-color: #1E3A5F; 
    font-weight: 500;
    display: inline-block;
    padding-top: 3rem;
    transition: transform 0.15s ease,
                background-color 0.15s ease;
}

.nav-logout a:hover {
    transform: scale(1.05);
    background-color: #244A75; 
}


/* ===================================================== */
/* ================  Header ==================== */
/* ===================================================== */


/* header layout */
.header-background {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 3rem 4rem;
    color: var(--text-color);
}

/* Left Block */

.header-text {
    margin-left: 4rem;
}
header > div:first-child h1 {
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
    font-weight: 500;
}

header > div:first-child h2 {
    margin: 0 0 1.25rem 0;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

header > div:first-child p {
    margin: 0.25rem 0;
    font-size: 1.3rem;
}

/* Right Block */
.header-btn{
    margin-right: 4rem;
}

header > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin-top: 0.5rem;
}


/* ===================================================== */
/* ================  Upload Section ==================== */
/* ===================================================== */


.upload_form-inner {
  border-radius: 0.5rem;
  border: 2px solid #1a2129;
  background-color: #1E3A5F;
  padding: 0.75rem;
  margin-right: 23rem;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
}

.upload_file {
  display: inline-block;
}

.upload_submit {
  display: inline-block;
  margin-left: 1.875rem;
}

.upload_submit input {
  width: 7rem;
}

.upload_submit input[type="submit"] {
  background: var(--accent-blue-color);
  color: var(--accent-white);
  border: none;
  border-radius: 15px;
  padding: 0.375rem 0;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
}

.upload_submit input[type="submit"]:hover {
  opacity: 0.95;
}

.upload_submit input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===================================================== */
/* ================  Leader Board ==================== */
/* ===================================================== */
.leaderboard-table-wrap {
  border: 1px solid #000000;
  border-radius: 0.3rem;
  overflow: hidden; /* keeps rounded corners clean */
  background: #f6f6f6;
  margin-left: 8rem;
  margin-right: 18rem;
  margin-top: 1rem;
}

/* Table base */
.leaderboard-style {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
}

/* Header */
.leaderboard-style thead th {
  background: #D6D6D6;
  color: #111;
  text-align: left;
  font-weight: 700;
  padding: 1rem 2rem;
  border-bottom: 1px solid #000000;
}

/* Body cells */
.leaderboard-style tbody td {
  padding: 1em 2rem;
  color: var(--bg-color); 
}

/* Zebra striping */
.leaderboard-style tbody tr:nth-child(odd) td {
  background: #F7F7F7;
}

.leaderboard-style tbody tr:nth-child(even) td {
  background: #EBEBEB;
}

/* Vertical dividers between columns */
.leaderboard-style th + th,
.leaderboard-style td + td {
  border-left: 1px solid #000000;
}

/* ===================================================== */
/* ================ Selection Page ==================== */
/* ===================================================== */



/* Logo */
.header-img img {
  width: 400px;
  height: auto;
  display: block;
  margin-left: 2rem;
}

/* Title block */
.header-selector {
  text-align: left;
  line-height: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Year (your h2) */
.header-selector h2 {
  font-size: 3.5rem;
  font-weight: 200;
  margin-right: 35rem;
  margin-bottom: -1rem;
}

/* Selector (your h1) */
.header-selector h1 {
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 0.95;
  margin: 0;
  margin-right: 20rem;
}

/* title + (Mehr info) inline */
.track-selection .section-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-left: 7.5rem;
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
}

.track-selection .section-title {
  margin: 0;
  font-size: 1.75rem; 
  font-weight: 600;
  color: var(--text-color);
}

.track-selection .section-more {
  color: var(--accent-red-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

/* Cards row */
.track-selection .card-row {
  display: flex;
  gap: 4rem;
  margin-left: 7.5rem;
  margin-bottom: 3.25rem;
  flex-wrap: wrap;
}

/* Card (multi) */
.track-selection .card {
  background: #F3F0EC;        
  border-radius: 0.75rem;
  width: 340px;
  padding: 2.5rem 1.5rem;
  margin-top: 1rem;

  box-shadow: 0 10px 20px rgba(0,0,0,0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* card (single)*/
.track-selection .card--wide {
  width: 460px;
}

/* Card text */
.track-selection .card-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.75rem;
  font-weight: 400;
  color: #111;
}

.track-selection .card-subtitle {
  margin: 0 0 1.25rem 0;
  font-size: 1.25rem;
  color: #111;
}

/* Button placement */
.track-selection .card-actions {
  margin-top: 0.5rem;
}

/* Edit blue button */
.track-selection .blue-btn {
  padding: 0.55rem 1.4rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}


/* Flash Messages */
.notification-list {
    position: fixed;
    z-index: 100;
    left: calc(50vw - 350px);
    width: 700px;
    top: 5vh;
    align-items: center;
    animation-name: fadeNotification;
    animation-duration: 10s;
    animation-fill-mode: forwards;
}

.notification {
  background-color: #6b6b6b;
  width: 700px;
  text-align: center;
  padding: .25rem 0;
  border-radius: 0.75rem;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

@keyframes fadeNotification {
  from {display: block; opacity: 100%;}
  90% {display: block; opacity: 100%}
  to {display: none; opacity: 0%}
}

.notification.is-test .notification.is-info{
  background-color: #6b6b6b;
}

.notification.is-success {
  background-color: #3c8b2c;
}

.notification.is-warning {
  background-color: #c76a01;
}

.notification.is-error {
  background-color: #f01818;
}
