/* Imports */
@import "./basis-styling.css";
@import "https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css";

main {
  overflow: visible;
  padding: clamp(1rem, 3vw, 2rem) clamp(5%, 15vw, 20%);
  gap: clamp(1rem, 2vw, 1.5rem);
  color: #2a3a42;
  padding-left: 20%;
  padding-right: 20%;
  border-radius: 20px;
  box-shadow: none;
  padding-bottom: 5%;
}

.titel-stats {
  display: flex;
}
#burger-menu.active .titel-stats {
  display: none;
}

#title-container-2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: clamp(20%, 30vw, 40%);
  font-family: "Akira", sans-serif;
  font-weight: bold;
  color: #2a3a42;
  padding: 0 clamp(1rem, 2vw, 1.5rem);
  gap: clamp(0.05rem, 0.1vw, 0.1rem);
}

#logo {
  font-family: "Akira", sans-serif;
  font-weight: bold;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: clamp(2rem, 6vw, 4rem);
  margin-bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(42, 123, 155, 1) 0%,
    rgba(85, 182, 133, 1) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4),
    0 0 10px rgba(255, 255, 255, 0.2);
  transition: 1s ease-in-out;
}

#subslogan {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-family: "SF Pro", sans-serif;
  color: #98c0cc;
  margin-top: 0;
}

#auth-container {
  display: flex;
  width: 100%;
}

#login-form-container,
#register-form-container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: clamp(2rem, 5vw, 3rem);
}

#register-form-container {
  display: none;
}

.gfg-div {
  width: clamp(250px, 50vw, 430px);
  height: auto;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.8rem, 3.5vw, 2.2rem);
  border-radius: clamp(1.5rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 8px 8px 16px #bebebe, -8px -8px 16px #ffffff53;
}

.gfg-logo {
  background: url("gfg-logo.png");
  background-size: cover;
  width: clamp(80px, 15vw, 100px);
  height: clamp(80px, 15vw, 100px);
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0px 0px 2px #5f5f5f, 0px 0px 0px 5px #e1f1fd, 8px 8px 15px #a7aaaf,
    -8px -8px 15px #ffffff;
}

.gfg-title {
  text-align: center;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  padding-top: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 0.5px;
  font-family: "Akira", sans-serif;
  background: linear-gradient(
    90deg,
    rgba(42, 123, 155, 1) 0%,
    rgba(85, 182, 133, 1) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4),
    0 0 10px rgba(255, 255, 255, 0.2);
  transition: 1s ease-in-out;
}

.gfg-sub-title {
  text-align: center;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  padding-top: clamp(0.3rem, 0.8vw, 0.5rem);
  letter-spacing: 2px;
  color: #2a3a42cc;
  font-family: "SF Pro", sans-serif;
}

.gfg-input-fields {
  width: 100%;
  padding: clamp(0.8rem, 2vw, 1.2rem) 0;
}

.gfg-input-fields input {
  border: none;
  outline: none;
  background: transparent;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: #2a3a42;
  padding: clamp(0.8rem, 1.5vw, 1rem) clamp(0.5rem, 1vw, 0.8rem);
  width: 100%;
  font-family: "SF Pro", sans-serif;
}

.gfg-email,
.gfg-password,
.gfg-name {
  margin-bottom: clamp(0.8rem, 1.5vw, 1.2rem);
  border-radius: clamp(0.8rem, 1.5vw, 1.2rem);
  background: #e0e0e030;
  background-color: rgba(255, 255, 255, 0.175);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.15);
  border: 1px solid #a1bdd930;
  border-bottom: 1.3px solid rgba(255, 255, 255, 0.352);
  display: flex;
  align-items: center;
  padding-left: clamp(0.8rem, 1.5vw, 1rem);
}

.gfg-password {
  position: relative;
  padding-right: clamp(2rem, 3vw, 2.5rem);
  padding-left: clamp(0.8rem, 1.5vw, 1rem);
}

.gfg-password input {
  flex: 1;
  border: none;
  background: transparent;
  padding: clamp(0.8rem, 1.5vw, 1rem);
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  width: 100%;
  transition: 1s ease;
}

.eye-icon {
  position: absolute;
  right: clamp(0.8rem, 1.5vw, 1.2rem);
  cursor: pointer;
  user-select: none;
  width: clamp(0.8rem, 1.5vw, 1.1rem);
}

.gfg-input-fields svg {
  height: clamp(1rem, 2vw, 1.3rem);
  margin-right: clamp(0.5rem, 1vw, 0.8rem);
  fill: #2a3a42;
}

.gfg-button {
  outline: none;
  border: none;
  cursor: pointer;
  width: 100%;
  height: clamp(2rem, 4vw, 3rem);
  border-radius: clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: bold;
  font-family: "Lato", sans-serif;
  color: #fff;
  background: linear-gradient(90deg, #98c0cd 0%, rgba(85, 182, 134, 0.76) 100%);
  box-shadow: 5px 5px 10px #768fb231, -5px -5px 10px #a0c1f03d;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform-origin: center;
  transition: 0.3s ease-out;
  border-image-slice: 1;
  filter: drop-shadow(3px 3px 6px #35557138)
    drop-shadow(-3px -3px 6px #ffffff4a);
}

#register {
  background: #006aff5d;
}

.gfg-button:hover {
  transform: scale(0.98);
}

.gfg-button:active {
  background-color: #a2c9ff83;
}

.gfg-link {
  padding-top: clamp(0.8rem, 1.5vw, 1.2rem);
  text-align: center;
}

.gfg-link a {
  text-decoration: none;
  color: #2a3a42aa;
  font-size: clamp(0.7rem, 1.3vw, 0.9rem);
  transition: color 0.3s;
}

.gfg-link a:hover {
  color: #2a7b9b;
}

.profile-page {
  padding: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.glass {
  padding: clamp(0.8rem, 1.5vw, 1rem);
  background: #e0e0e030;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 8px 8px 16px #bebebe, -8px -8px 16px #d1e0ec;
  display: flex;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.profile-pic {
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

#add-picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: 0.4s ease-in-out;
  background-color: rgba(0, 0, 0, 0.21);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pic:hover #add-picture {
  opacity: 1;
}

#upload-icon {
  width: clamp(20px, 4vw, 30px);
  filter: invert();
}

#profile-pic-image {
  height: 100%;
  width: 100%;
  object-fit: fill;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(clamp(120px, 25vw, 180px), 1fr)
  );
  gap: clamp(0.5rem, 1vw, 1rem);
}

.stat-box {
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1vw, 0.8rem);
}

.my-sets {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.my-sets .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sets-list {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1vw, 1rem);
}

.set-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: clamp(0.5rem, 1vw, 0.8rem);
}

.set-card:hover {
  transform: scale(1.02);
}

.set-card p {
  color: #2a3a42;
  margin: 0;
  line-height: clamp(0.8rem, 1.5vw, 1rem);
  font-size: clamp(0.7rem, 1.3vw, 0.9rem);
}

.set-card-datum {
  color: rgba(0, 0, 0, 0.19);
}

.outer-holder {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p-holder {
  display: flex;
  flex-direction: row;
  gap: clamp(0.5rem, 1vw, 0.8rem);
  margin-top: clamp(0.3rem, 0.5vw, 0.5rem);
}

.outer-container-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 50%;
  flex-shrink: 0;
  height: clamp(2rem, 4vw, 3rem);
  width: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  padding: clamp(0.5rem, 1vw, 0.8rem);
  filter: drop-shadow(7px 7px 4px #00000016);
}

.outer-container-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.new-set-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(0.3rem, 0.6vw, 0.5rem);
  height: clamp(1.8rem, 3.5vw, 2.2rem);
  padding: 0 clamp(1rem, 2vw, 1.5rem);
  font-family: "atrament", sans-serif;
  font-weight: normal;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: #2a3a42;
  border-radius: clamp(1rem, 2vw, 1.5rem);
  background: #006aff5d;
  box-shadow: 5px 5px 10px #768fb231, -5px -5px 10px #a0c1f03d;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform-origin: center;
  transition: 0.3s ease-out;
  border: none;
  filter: drop-shadow(3px 3px 6px #35557138)
    drop-shadow(-3px -3px 6px #ffffff4a);
}

.new-set-btn:hover {
  transform: scale(0.95);
}

#logout-container {
  width: 100%;
  padding: clamp(2%, 5vw, 5%) 0;
}

#logout-container span {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(0.3rem, 0.6vw, 0.5rem);
  height: clamp(2rem, 4vw, 2.5rem);
  padding: 0 clamp(1rem, 2vw, 1.5rem);
  font-family: "atrament", sans-serif;
  font-weight: normal;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: #2a3a42;
  border-radius: clamp(1rem, 2vw, 1.5rem);
  background-color: #e7e7e747;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform-origin: center;
  transition: 0.3s ease-out;
  border-width: 0.5px;
  border-style: solid;
  border-color: #8181812f;
  border-top-color: #ffffff;
  border-left-color: #f2f2f2;
  border-image-slice: 1;
  filter: drop-shadow(3px 3px 6px #35557138)
    drop-shadow(-3px -3px 6px #ffffff4a);
}

#logout-container span:hover {
  transform: scale(0.97);
}

#more-sets {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}

#more-sets a {
  transition: 0.5s ease;
}

#more-sets a:hover {
  color: #4a6a7a;
}

.gfg-google-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: clamp(0.8rem, 1.5vw, 1rem);
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.gfg-google-apple p {
  color: #2a3a42;
  margin: 0;
  line-height: clamp(0.8rem, 1.5vw, 1rem);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
}

.icon-buttons {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: clamp(2rem, 5vw, 3rem);
  overflow: hidden;
  justify-content: center;
  align-items: center;
}

.icon-logo {
  height: clamp(2rem, 4vw, 2.5rem);
  cursor: pointer;
}

.taal-alert {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #e1f1fd;
  padding: clamp(0.5rem, 1vw, 1rem) clamp(1rem, 2vw, 1.5rem);
  border-radius: clamp(0.8rem, 1.5vw, 1rem);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  font-family: "SF Pro", sans-serif;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  color: #222;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 0.8rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: top 0.6s ease, opacity 0.6s ease, visibility 0s linear 0.6s;
  z-index: 9999;
}

.taal-alert.show {
  top: clamp(1rem, 2vw, 1.5rem);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.taal-alert .alert-sluit {
  background: none;
  border: none;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  cursor: pointer;
  color: #666;
  padding: 0 clamp(0.3rem, 0.5vw, 0.5rem);
}

.button-logos {
  background-color: transparent;
  border: none;
  outline: none;
}

#password-info {
  font-size: clamp(0.7rem, 1.3vw, 0.9rem);
  color: rgba(0, 0, 0, 0.186);
}

#password-container {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1vw, 0.8rem);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1vw, 0.8rem);
}

#top-data-container {
  display: flex;
  flex-direction: row;
  gap: clamp(0.5rem, 1vw, 0.8rem);
  align-items: center;
}

#bottom-data {
  display: flex;
  flex-direction: row;
  gap: clamp(0.3rem, 0.5vw, 0.5rem);
}

#joined-data-icon {
  height: clamp(1rem, 2vw, 1.2rem);
}

.top-data {
  height: clamp(0.9rem, 1.8vw, 1.1rem);
  cursor: pointer;
}

#streak-icon {
  height: clamp(0.9rem, 1.8vw, 1.1rem);
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  animation: pulse infinite 1s;
}

.tooltip {
  position: relative;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: max-content;
  max-width: clamp(150px, 30vw, 200px);
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: clamp(0.3rem, 0.5vw, 0.5rem) clamp(0.5rem, 0.8vw, 0.8rem);
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

#clock {
  -webkit-animation-duration: 4000ms;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  animation: spin 4s linear infinite;
}

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

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

@media screen and (max-width: 768px) {
  main {
    padding-left: 5%;
    padding-right: 5%;
    margin-left: 0 !important;
    /* iOS safe area support */
    padding-left: max(5%, env(safe-area-inset-left));
    padding-right: max(5%, env(safe-area-inset-right));
    padding-top: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-top));
    padding-bottom: max(5%, env(safe-area-inset-bottom));
  }

  .tooltip {
    user-select: none;
  }
  .tooltip:active .tooltiptext {
    visibility: visible;
    opacity: 1;
  }
}
