:root {
  --font-family: 'Roboto', sans-serif;
  --header-height: 50px;
  --nav-height: 50px;

  --background-color: white;
  --text-color: #424242;
  --input-background-color: #fcfcfc;
  --input-text-color: black;
  --input-placeholder-color: #666;
  --blue-color: blue;
  --red-color: #8A0000;
  --purple-color: purple;
  --green-color: #006E00;
  --button-primary-background-color: #0a2d3c;
  --button-primary-text-color: white;
  --button-background-color: #e7e7e7;
  --input-border-color: rgba(181, 181, 181, 0.5);
  --input-background-color: rgba(255, 255, 255, 0.05);
  --drop-shadow-color: #d6d6d6;
  --selection-background-color: #b3d4fc;
  --selection-text-color: black;
  --header-background-color: #061d27;
  --header-text-color: white;
  --nav-background-color: var(--background-color);
  --link-color: var(--text-color);
  --card-background-color: white;

  --drop-shadow: 1px 1px 3px 1px var(--drop-shadow-color);
  --mobile-breakpoint: 600px;

}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #121212;
    --text-color: rgb(179 179 179);
    --input-background-color: #1e1e1e;
    --input-text-color: white;
    --input-placeholder-color: #999;
    --blue-color: #BDBDFF;
    --red-color: #FFA8A8;
    --purple-color: #FF99FF;
    --green-color: #007a00;
    --button-primary-background-color: #005a9e;
    --button-primary-text-color: white;
    --button-background-color: #252525;
    --drop-shadow-color: #444;
    --selection-background-color: #3a3a3a;
    --selection-text-color: white;
    --header-background-color: #0d0d0d;
    --header-text-color: white;
    --nav-background-color: var(--background-color);
    --card-background-color: #1e1e1e;

    --drop-shadow: none;
  }
}

.blue {
  color: var(--blue-color);
}

.red {
  color: var(--red-color);
}

.purple {
  color: var(--purple-color);
}

.green {
  color: var(--green-color);
}

* {
  box-sizing: border-box;
}

html,
body {

  a,
  a:visited {
    color: var(--link-color);
    text-decoration: none;
  }
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-family);
  margin: 0;
  padding: 0;

  display: flex;
  /* min-height: 100vh; */
  flex-direction: column;
  align-items: center;

  .error {
    color: red;
  }

  #loadingScreen {
    padding-top: 50px;
    /* background-color: var(--background-color); */
  }

  .fullWidthContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .container {
    width: 100%;
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
  }


  .fullWidthContainer:has(header) {
    background: var(--header-background-color);
    color: var(--header-text-color);
  }

  .fullWidthContainer:has(main) {
    overflow-y: auto;
    max-height: calc(100vh - var(--header-height));
  }

  header {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;

    a,
    a:visited {
      color: var(--header-text-color);
    }


    .title {
      font-size: 20px;
      font-weight: bold;

    }

    svg {
      margin-right: 7px;
    }
  }

  .fullWidthContainer:has(nav) {
    background: var(--nav-background-color);
  }

  nav {
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  nav:empty,
  footer:empty {
    display: none;
  }

  .content {
    flex: 1;
    display: flex;
    flex-direction: column;




    main {
      position: relative;
    }


  }


  footer {
    margin-top: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 20px;

    .left {}

    .center {}

    .right {
      .AWattribution {
        width: 200px;
        text-align: right;

        p {
          margin: 0;
          margin-bottom: 0px;
        }

        a {
          display: flex;
          align-items: center;
          justify-content: flex-end;
          text-decoration: none;
          color: var(--text-color);

          img {
            height: 20px;
          }
        }
      }
    }


  }

  p {
    margin: 0;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 0;
    padding: 0;
    margin-bottom: 10px;
  }

  h3,
  h4,
  h5,
  h6 {
    margin-bottom: 5px;
  }

  button,
  .button {
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 16px;
    background-color: var(--button-background-color);
    color: var(--button-text-color);
    border: 0px;
    /* Standard property */
    user-select: none;

    /* Vendor prefixes for broader compatibility */
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari, Chrome */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    transition: background-color 0.2s;
  }

  button.primary,
  .button.primary,
  button.active,
  .button.active {
    background-color: var(--button-primary-background-color);
    color: var(--button-primary-text-color);
  }

  button.disabled,
  .button.disabled,
  button:disabled,
  .button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  /* 
  .buttonGroup {
    display: flex;

    button {
      border-radius: 0px;
      padding-left: 8px;
      padding-right: 8px;
    }

    button:first-child {
      padding-left: 12px;
      border-top-left-radius: 8px;
      border-bottom-left-radius: 8px;
    }

    button:last-child {
      padding-right: 12px;
      border-top-right-radius: 8px;
      border-bottom-right-radius: 8px;
    }
  } */

  .buttonGroup {
    display: flex;
    overflow: hidden;

    button {
      border-radius: 0px;
      padding-left: 11px;
      padding-right: 11px;
    }

    button:first-child {
      padding-left: 12px;
      border-top-left-radius: 80px;
      border-bottom-left-radius: 80px;
    }

    button:last-child {
      padding-right: 12px;
      border-top-right-radius: 80px;
      border-bottom-right-radius: 80px;
    }
  }



  .card {
    margin-bottom: 30px;
    background: var(--card-background-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--drop-shadow);
  }

  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
  }

  .modal-content {
    background: var(--card-background-color);
    padding: 24px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;

    h2 {
      font-size: 1.2rem;
      font-weight: 500;
      margin: 0;
    }
  }

  .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1;
    padding: 0;
  }

  .form-group {
    margin-bottom: 15px;

    label {
      display: block;
      margin-bottom: 5px;
      font-size: 0.9rem;
    }

    input {
      width: 100%;
      padding: 10px;
      border: 1px solid var(--input-border-color);
      border-radius: 6px;
      background: var(--input-background-color);
      color: var(--text-color);
    }
  }

  .error-message {
    color: var(--red-color);
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 1.2em;
  }

  .divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    font-size: 0.9rem;
    color: #888;
  }

  .divider::before,
  .divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #444;
  }

  .divider::before {
    left: 0;
  }

  .divider::after {
    right: 0;
  }

  #googleSignInBtn {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .features-list {
    margin: 20px 0;
    padding: 15px;
    background: var(--button-background-color);
    border-radius: 8px;

    ul {
      margin: 0;
      padding-left: 20px;
      list-style-type: disc;

      li {
        margin-bottom: 8px;
        font-size: 0.95rem;
      }
    }

    .price {
      margin-top: 15px;
      font-weight: bold;
      font-size: 1.2rem;
      text-align: center;
      color: var(--text-color);
    }
  }

  #passwordGroup {
    margin-top: 15px;
  }

  .forgot-password-link {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--blue-color);
    text-decoration: underline;
    text-align: right;
  }

  #stripe-checkout-element {
    margin-top: 20px;
    min-height: 40px;
  }

  .hidden {
    display: none !important;
  }

  #processingStep {
    text-align: center;
    padding: 30px 0;

    .spinner {
      margin: 20px auto;
      width: 40px;
      height: 40px;
      border: 4px solid rgba(0, 0, 0, 0.1);
      border-left-color: var(--blue-color);
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }
  }

}



@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {

  /* header,
  nav,
  footer {
    padding-left: 15px;
    padding-right: 15px;
  } */
}