@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css");
@import url("https://fonts.cdnfonts.com/css/helvetica-neue-9");

@media screen and (prefers-reduced-motion: reduce) {
  .fade-in-bck {
    animation: none !important;
  }
}

/*--- NAVBAR --- */

td {
  min-width: 12vw;
}
.navbar {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: 23px;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;
  line-height: 23px;
}

.navigazione {
  opacity: 90%;
  background-color: #020202bb !important;
}

.navbar-toggler {
  border: rgba(255, 255, 255, 0) !important;
}

.navbar-toggler {
  border: rgba(255, 255, 255, 0) !important;
}

.outlined {
  border-radius: 15px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.752) !important;
  border-width: 1px;
}

/*--- TEAM CARDS --- */

.SA {
  background-image: url("res/cerchioSA.svg");
  background-repeat: no-repeat;
  background-position: center 140px;
  background-size: 0px;
  transition: 0.3s ease-out;
}

.PROT {
  background-image: url("res/cerchioPROT.svg");
  background-repeat: no-repeat;
  background-position: center 140px;
  background-size: 0px;
  transition: 0.3s ease-out;
}

.MT {
  background-image: url("res/cerchioMT.svg");
  background-repeat: no-repeat;
  background-position: center 140px;
  background-size: 0px;
  transition: 0.3s ease-out;
}

.SIM {
  background-image: url("res/cerchioSIM.svg");
  background-repeat: no-repeat;
  background-position: center 140px;
  background-size: 0px;
  transition: 0.3s ease-out;
}

.COM {
  background-image: url("res/cerchioCOM.svg");
  background-repeat: no-repeat;
  background-position: center 140px;
  background-size: 0px;
  transition: 0.3s ease-out;
}

.STR {
  background-image: url("res/cerchioSTR.svg");
  background-repeat: no-repeat;
  background-position: center 140px;
  background-size: 0px;
  transition: 0.3s ease-out;
}

.card-team-bg {
  position: relative;
  top: 50px;
  width: 190px;
  opacity: 100%;
  transition: 0.6s ease-out;
}

.card-team {
  border-radius: 20px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.752) !important;
  border-width: 1px;
  max-width: 450px;
  min-height: 520px;
  overflow: hidden;
}

.card-team-header {
  border: #11111100;
  border-bottom: rgba(255, 255, 255, 0.752);
  border-style: solid;
  border-width: 1px;
}

.card-team:hover {
  background-size: 1000px;
}

.card-team:hover > .card-team-bg {
  opacity: 0%;
}

.card-team-body-back {
  opacity: 0%;
  transition: 0.4s ease-out;
}

.card-team-body-front {
  display: inherit;
  opacity: 100%;
  transition: 0.4s ease-out;
  border: #00000000;
  border-bottom: rgba(255, 255, 255, 0.752);
  border-style: solid;
  border-width: 1px;
}

.card-team:hover > .card-team-body-back {
  display: inherit;
  opacity: 100%;
  transition: 0.4s ease-out;
}

/*--- GENERAL CARDS --- */

.card-all {
  border-radius: 20px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.752) !important;
  border-width: 1px;
  overflow: hidden;
}

.card-all-header {
  border: #11111100;
  border-bottom: rgba(255, 255, 255, 0.752);
  border-style: solid;
  border-width: 1px;
}

.card-all-button {
  border: rgba(255, 255, 255, 0);
  width: 100%;
  height: 40px;
  border-top: white;
  border-radius: 0 0 10px 10px;
  position: relative;
  bottom: 40px;
  border-style: solid;
  border-width: 1px;
}

.team-table {
  background-color: rgba(0, 0, 0, 0) !important;
  color: white;
  border-color: rgba(255, 255, 255, 0.159);
}
.table-custom {
  overflow-x: hidden;
}
/*--- SUPPORTERS --- */

.supporters {
  min-height: 450px;
}

.supporter-img:hover {
  filter: none !important;
}

/*--- GENERAL ---*/
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
}

body {
  background-color: #020202;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  backdrop-filter: brightness(60%);
  -webkit-backdrop-filter: brightness(60%);
}

.main {
  border-radius: 15px;
  background: #020202da;
  opacity: 95%;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  overflow: clip;
  text-align: justify;
  text-justify: inter-word;
}

.bg {
  background-image: url("./res/Lunar Base 2 tras.png") !important;
  background-size: contain;
  background-repeat: no-repeat;
  background-position-y: bottom;
  background-position-x: center;
}

.bg-team {
  background-image: url("./res/moon_render.jpeg") !important;
  background-size: contain;
  background-repeat: no-repeat;
  background-position-y: bottom;
  background-position-x: center;
}

.bg-projects {
  background-size: contain;
  background-repeat: no-repeat;
  background-position-y: bottom;
  background-position-x: center;
  transition: background-image 0.6s ease-in-out;
}

.bg-scout {
  background-image: url("./res/scout_backdrop.png");
}

.bg-fire {
  background-image: url("./res/Fire04.png");
}

.bg-supporters {
  background-image: url("./res/terra-luna-1.jpg") !important;
  background-size: contain;
  background-repeat: no-repeat;
  background-position-y: bottom;
  background-position-x: center;
}

.rounded {
  border-radius: 20px !important;
}

.arrow {
  opacity: 100;
}

shadow {
  text-shadow: 2px 2px 10 black;
}

/*--- TEXT --- */

#more1 {
  display: none;
}

h1 {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: 350%;
  font-style: normal;
  font-variant: normal;
  font-weight: 700;
  color: white;
}

h2 {
  font-family: Helvetica, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-style: normal;
  font-variant: normal;
  font-weight: 700;
  color: white;
}
.paragraphtitle {
  text-align: left !important;
}

h3 {
  font-family: Helvetica, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  color: white;
}

p,
a {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 27px;
  color: white;
}
.social {
  text-decoration: none;
  font-size: 35px !important;
}

.social:hover,
.social:active {
  color: rgb(112, 112, 112);
}

.fancylink,
.fancylink:visited {
  text-decoration: none;
  color: #ba98c7;
}

.fancylink-white,
.fancylink-white:visited {
  text-decoration: none;
  color: white;
}

.fancylink:hover,
.fancylink:active,
.fancylink-white:hover,
.fancylink-white:active {
  color: rgb(112, 112, 112);
}

a:visited {
  color: white;
}

/*----ANIMAZIONI----*/
.fade-in-bck {
  -webkit-animation: fade-in-bck 1.5s cubic-bezier(0.39, 0.575, 0.565, 1) both;
  animation: fade-in-bck 1.5s cubic-bezier(0.39, 0.575, 0.565, 1) both;
  animation-delay: 0.4s;
}

@-webkit-keyframes fade-in-bck {
  0% {
    -webkit-transform: translateZ(80px);
    transform: translateZ(80px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    opacity: 1;
  }
}
@keyframes fade-in-bck {
  0% {
    -webkit-transform: translateZ(80px);
    transform: translateZ(80px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    opacity: 1;
  }
}

/*----BUTTONS----*/
.astrabutton {
  border-radius: 14px;
}
.astrabutton:hover {
  border-color: #ba98c7;
  color: white;
  background-color: rgba(0, 0, 0, 0.309);
  background-position: center;
  background-repeat: no-repeat;
  /*animation: bgset 1s;
    -webkit-animation-fill-mode: forwards; 
    animation-fill-mode: forwards;*/
  animation: borderset 0.1s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.astrabutton:active {
  border-color: #ba98c7;
  color: white;
  background-color: black;
  background-image: url("./res/SVG-star-orange.svg");
  background-size: 0%;
  background-position: center;
  background-repeat: no-repeat;
  animation: borderset 0.001s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.astrabutton:active > .anibut1 {
  animation: star 0.001s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  display: inherit;
}

.anibut1 {
  position: relative;
  opacity: 0%;
}
.astrabutton:hover > .anibut1 {
  animation: star 0.15s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  display: inherit;
}

/*----*/

.astrabutton-pill {
  border-radius: 25px;
  min-width: 15%;
}
.astrabutton-pill.black-back {
  background-color: rgba(0, 0, 0, 0.8);
}
.astrabutton-pill:hover {
  background-color: #ba98c773;
  border-color: #ba98c7;
  color: white;
  background-position: center;
  background-repeat: no-repeat;
  /*animation: bgset 1s;
  -webkit-animation-fill-mode: forwards; 
  animation-fill-mode: forwards;*/
  animation: borderset 0.1s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.astrabutton-pill:active {
  background-color: #ba98c773;
  border-color: #ba98c7;
  background-image: url("./res/SVG-star-orange.svg");
  background-size: 0%;
  background-position: center;
  background-repeat: no-repeat;
  animation: borderset 0.001s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.open {
  background-color: #ba98c773;
  border-color: #ba98c7;
}

/*----SKY AND STARS----*/
@keyframes star {
  0% {
    opacity: 0%;
    bottom: 0px;
    right: 0px;
    fill: white;
    content: url(res/SVG-star-White.svg);
  }
  40% {
    opacity: 30%;
    bottom: 5px;
    right: -5px;
    fill: white;
    content: url(res/SVG-star-White.svg);
  }
  100% {
    opacity: 100%;
    bottom: 19px;
    right: -25px;
    fill: #ba98c7;
    content: url(res/SVG-star-purple.svg);
  }
}

@keyframes bgset {
  0% {
    background-size: 0%;
  }
  50% {
    background-size: 30%;
  }
  100% {
    background-size: 300%;
  }
}

@keyframes borderset {
  0% {
    border-color: white;
  }

  60% {
    border-color: white;
  }

  100% {
    border-color: #ba98c7;
  }
}

@keyframes slide-transparency {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.animate-opacity {
  animation-name: slide-transparency;
  animation-iteration-count: infinite;
}
.freq-5 {
  animation-duration: 3s;
}
.freq-6 {
  animation-duration: 6.33s;
}
.freq-7 {
  animation-duration: 7s;
}
.freq-8 {
  animation-duration: 8.88s;
}
.freq-9 {
  animation-duration: 9s;
}
.freq-10 {
  animation-duration: 10.17s;
}
.delay-2 {
  animation-delay: 1.33s;
}
.delay-4 {
  animation-delay: 2.11s;
}
.back {
  max-width: 100vw;
  height: 10vh;
  position: absolute;
  top: 0;
  background: #00000000;
  z-index: 1;
  mix-blend-mode: lighten;
  opacity: 100%;
}
.z-1,
.z-2,
.z-3 {
  position: absolute;
  max-width: 100vw;
  height: 150vh;
  left: 0;
  top: 0;
  z-index: 1;
  transform-origin: center;
}
.tile {
  overflow: hidden;
  position: absolute;
  opacity: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-repeat: repeat;
  background-size: 512px 512px;
}
.top-left {
  background-image: url("./res/topleft.png");
}
.top-right {
  background-image: url("./res/topright.png");
}
.bottom-left {
  background-image: url("./res/bottomleft.png");
}
.bottom-right {
  background-image: url("./res/bottomright.png");
}

.night {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotateZ(40deg);
}
.star {
  position: absolute;
  transform: rotate(45deg);
  left: 50%;
  top: 50%;
  height: 4px;
  background: linear-gradient(-45deg, #ffffff, rgba(0, 0, 255, 0));
  border-radius: 999px;
  filter: drop-shadow(0 0 6px #edeef1);
  animation: tail 3s ease-in-out, falling 3s ease-in-out;
}

@keyframes tail {
  0% {
    width: 0;
  }

  30% {
    width: 100px;
  }

  100% {
    width: 0;
  }
}

@keyframes falling {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(400px);
  }
}

.star::before,
.star::after {
  content: "";
  position: absolute;
  top: calc(50% - 2px);
  right: 0;
  height: 4px;
  background: linear-gradient(
    -45deg,
    rgba(0, 0, 255, 0),
    #fcfcfc2a,
    rgba(0, 0, 255, 0)
  );
  border-radius: 100%;
  transform: translateX(50%) rotateZ(45deg);
  animation: shining 4s ease-in-out infinite;
}

@keyframes shining {
  0% {
    width: 0;
  }

  50% {
    width: 30px;
  }

  100% {
    width: 0;
  }
}

.star::after {
  transform: translateX(50%) rotateZ(-45deg);
}

.star:nth-child(1) {
  top: calc(50% - 100px);
  left: calc(50% - 250px);
  animation-delay: 1s;
}

.star:nth-child(1)::before,
.star:nth-child(1)::after {
  animation-delay: 1s;
}

.star:nth-child(2) {
  top: calc(50% - 50px);
  left: calc(50% - 200px);
  animation-delay: 1.2s;
}

.star:nth-child(2)::before,
.star:nth-child(2)::after {
  animation-delay: 1.2s;
}

.star:nth-child(3) {
  top: calc(50% - 0px);
  left: calc(50% - 150px);
  animation-delay: 1.4s;
}

.star:nth-child(3)::before,
.star:nth-child(3)::after {
  animation-delay: 1.4s;
}

.star:nth-child(4) {
  top: calc(50% - -50px);
  left: calc(50% - 200px);
  animation-delay: 1.6s;
}

.star:nth-child(4)::before,
.star:nth-child(4)::after {
  animation-delay: 1.6s;
}

.star:nth-child(5) {
  top: calc(50% - -100px);
  left: calc(50% - 250px);
  animation-delay: 1.8s;
}

.star:nth-child(5)::before,
.star:nth-child(5)::after {
  animation-delay: 1.8s;
}

body {
  max-width: 100%;
  overflow-x: hidden;
}

/*----- AR -------*/

model-viewer {
  background-color: #ffffff00;
  width: inherit;
  height: inherit;
  align-self: center;
}

#ar-button {
  position: absolute;
  align-self: baseline;
}

#ar-button:active {
  background-color: #e8eaed;
}

#ar-button:focus {
  outline: none;
}

#ar-button:focus-visible {
  outline: 1px solid #ba98c7;
}

@keyframes circle {
  from {
    transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg);
  }
}

@keyframes elongate {
  from {
    transform: translateX(100px);
  }
  to {
    transform: translateX(-100px);
  }
}

model-viewer > #ar-prompt {
  position: absolute;
  left: 50%;
  bottom: 60px;
  animation: elongate 2s infinite ease-in-out alternate;
  display: none;
}

model-viewer[ar-status="session-started"] > #ar-prompt {
  display: block;
}

model-viewer > #ar-prompt > img {
  animation: circle 4s linear infinite;
}

.loader-out {
  position: relative;
  bottom: 220px;
  min-height: 120px;
  border-radius: 5px;
  background-color: #0202026c;
}

.loader {
  transform: translateZ(1px);
  content: "";
  display: inline-block;
  width: 48px;
  height: 48px;
  margin: 8px;
  border-radius: 50%;
  background: #ffffff00;
  animation: coin-flip 5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
@keyframes coin-flip {
  0%,
  100% {
    animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
  }
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(1800deg);
    animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);
  }
  100% {
    transform: rotateY(3600deg);
  }
}
