@font-face {
  font-family: fti_display_font;
  src: url(fonts/GTSuperDisplay-Light.ttf);
  font-weight: 300;
}
@font-face {
  font-family: fti_normal_font;
  src: url(fonts/TWKLausanne-300.ttf);
  font-weight: 300;
}

html {
  overflow-x: clip;
  padding: 0;
  margin: 0;
  font-family: fti_display_font;
  line-height: 1;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: start;
  min-height: 100vh;
  background: rgb(110, 51, 213, 1);
  background: -moz-linear-gradient(
    161deg,
    rgba(185, 92, 255, 1) 0%,
    rgba(110, 51, 213, 1) 100%
  );
  background: -webkit-linear-gradient(
    161deg,
    rgba(185, 92, 255, 1) 0%,
    rgba(110, 51, 213, 1) 100%
  );
  background: linear-gradient(
    161deg,
    rgba(185, 92, 255, 1) 0%,
    rgba(110, 51, 213, 1) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#b95cff",endColorstr="#6e33d5",GradientType=1);
}
body {
  width: 100vw;
  max-width: 500px;
  margin: 0;
}

main {
  display: flex;
  align-items: center;
  flex-direction: column;
  line-height: 1.2;
  gap: 20px;
  padding: 30px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 60px;
}

p {
  margin: 0;
}

img.logo {
  max-width: 40px;
}
img.arrow {
  object-fit: contain;
  height: 100px;
}

img.kobe {
  border-radius: 0 30px 0 30px;
  object-fit: cover;
  width: 200px;
  height: auto;
  transform: rotate(5deg);
  margin-top: 50px;
}
img.kobe.voor {
  width: 120px;
  height: 120px;
  transform: rotate(-5deg);
  margin-top: 20px;
}

div,
form {
  display: flex;
  flex-direction: column;
  font-size: 20px;
}

.buttons {
  gap: 10px;
  width: 100%;
}

div.images {
  flex-direction: row;
}

.nav-btn,
button {
  text-decoration: none;
  background-color: #fff;
  border-radius: 0 30px 0 30px;
  font-family: fti_display_font;
  font-size: 18px;
  padding: 12px 22px;
  color: #6e33d5;
  border: 0;
}

.nav-btn {
  background-color: #f27361;
  color: #fff;
  font-family: fti_normal_font;
  font-weight: inherit;
  font-size: 12px;
}

.arrow {
  margin: 0;
}

#camera-capture,
#camera-input {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}
/* Hide #camera-input on devices wider than 768px */
@media (min-width: 768px) {
  #camera-capture-label {
    display: none;
  }
}
.buttons label.inputmask {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: #6e33d5;
  text-align: center;
  border-radius: 0 30px 0 30px;
  padding: 12px 22px;
  cursor: pointer;
}
.buttons label.inputmask img {
  display: none;
  position: absolute;
  width: 20px;
  left: 70px;
}

.checkbox {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  margin-bottom: 30px;
}
.checkbox input[type="checkbox"] {
    min-width: 25px;
  }
.checkbox label {
  font-size: 14px;
  font-family: fti_display_font;
}
.checkbox label a {
  color: #fff;
  opacity: 0.8;
}

/* LOADER */
#loader {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  margin-left: auto;
  margin-right: auto;
}

#loading-text-container {
  display: hidden;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin-right: 10px;
  margin-left: 10px;
  align-items: center;
  position: absolute;
  top: 10%;
}

#loading-img-container {
  align-items: center;
  position: absolute;
  width: 80%;
  max-width: 300px;
  height: 40%;
}

#loading-img-container div {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

#loading-img-container div img {
  width: auto;
  height: auto;
  display: block;
}

#loading-img-container div:first-child {
  z-index: 3;
}

#loading-img-container div:last-child {
  z-index: 4;
  animation: revealSVG 5s infinite ease-in-out;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}

@keyframes revealSVG {
  to {
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 0);
  }
}

.buttons button {
  position: relative;
  text-align: left;
  padding-left: 30px;
  font-size: 18px;
  cursor: pointer;
}
.buttons button::after {
  content: url("assets/share.svg");
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 0 30px 0 30px;
  height: 46px;
  width: 55px;
  background-color: #f27361;
  display: flex;
  justify-content: center;
  align-items: center;
}
.buttons button.download::after {
  content: url("assets/download.svg");
}
.buttons button.regenerate::after {
  content: url("assets/retake.svg");
}

.avatar {
  position: relative;
  width: 100%;
}

.avatar .avatar-img {
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
.avatar .avatar-banner {
  position: absolute;
  bottom: 0;
  width: 100%;
}
.avatar .regenerate {
  width: 20px;
}

#regenerate-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 50px;
  height: 50px;
  position: absolute;
  bottom: -25px;
  right: -25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
}

.radio-button {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 30px;
}

.radio-button input[type="radio"] {
  display: none;
}

.radio-button input[type="radio"] + label {
  cursor: pointer;
  padding: 20px;
  border-radius: 10px;
  background-color: transparent;
  color: #fff;
  width: 50%;
  text-align: center;
  font-family: fti_display_font;
}

.radio-button input[type="radio"]:checked + label {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

input[type="checkbox"] {
  width: 25px;
  height: 25px;
  border-radius: 3px;
  margin: 0;
  appearance: none;
  background: transparent;
  border: 1px solid #f27361;
  position: relative;
}

input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  color: #685654;
}

input[type="checkbox"]:checked {
  background-color: #f27361;
  border-color: #f27361;
}

#download-tip {
  display: none;
  font-size: 18px;
  color: #fff;
  text-align: center;
  margin-top: 20px;
  background-color: #7f38dc;
  border-radius: 12px;
  padding: 16px 20px 16px 20px;
  text-align: left;
}

@media (max-width: 768px) {
  /* On mobile: show the tip, hide the button */
  #download-tip {
    display: block; /* Show */
  }
  .desktop-download-button {
    display: none; /* Hide */
  }
}

@media (min-width: 769px) {
  /* On desktop: hide the tip, show the button */
  #download-tip {
    display: none; /* Hide */
  }
  .desktop-download-button {
    display: block; /* Show */
  }
}
