:root {
  --physis-main-font: "Syne", sans-serif;
  --physis-secondary-font: "Urbanist", sans-serif;
  --physis-color: #e6007e;
  --physis-text: white;
  --physis-dashed-color: #ffff00;
  --physis-hover-color: white;
  --physis-hover-text: white;
  --physis-hover-pnk-bg-color: black;
  --physis-marquee-bg-color: 230, 0, 126;
}
/* * {
  outline: 1px solid #f00 !important;
} */

/* html {
  background: var(--physis-color);
} */

body {
  margin: 0 auto;
  background: rgba(0, 0, 0, 1);
  font-family: var(--physis-secondary-font);
  color: var(--physis-text);
}
.titles {
  font-family: var(--physis-main-font);
  color: var(--physis-color);
  /* font-weight: bold; */
}
.navbar-toggler-branding {
  border-color: var(--physis-color);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(230, 0, 126, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}
.nav-branding {
  background-color: black;
  font-family: var(--physis-main-font);
}
.navbar-brand {
  font-size: 18px;
  color: var(--physis-text);
}
.navbar-brand:hover {
  color: var(--physis-color);
}
.nav-link {
  color: var(--physis-color);
}
.nav-link:hover {
  color: var(--physis-hover-text);
}
marquee {
  display: flex;
  overflow: hidden;
  gap: 1rem;
  width: 100%;
  background-color: rgba(var(--physis-marquee-bg-color), 0.75);
  padding: 1rem;
  user-select: none;
}
marquee a {
  color: var(--physis-text);
}
marquee a:hover {
  color: var(--physis-hover-pnk-bg-color);
  cursor: pointer;
}
.home-header {
  /* background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)),
    url("../media/barca2.webp");
  background-size: 110%;
  background-position: 40% 80%;
  background-repeat: no-repeat;
  padding: 250px 0;
  color: var(--physis-color);
  margin: 0 auto; */

  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)),
  url("../media/barca2.webp");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
padding: 220px 0;
color: var(--physis-color);
margin: 0 auto;
}

header h1 {
  text-align: center;
  font-weight: 800;
  font-size: 96px;
  line-height: 1;
  margin: 30px 0;
}
header h2 {
  text-align: center;
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  margin: 0;
  padding-bottom: 50px;
}
header h3 {
  text-align: center;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 5px;
  margin: 0;
}
.d-flex {
  display: flex;
}
.justify-content-center {
  justify-content: center;
  max-width: 100%;
  margin: 0 auto;
}
.btn-branding {
  display: inline-block;
  color: var(--physis-text);
  font-family: var(--physis-main-font);
  max-width: 180px;
  font-weight: 600;
  font-size: 14px;
  line-height: 21px;
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 16px;
  margin: 15px auto;
  background-color: var(--physis-color);
  text-decoration: none;
  border-radius: 10px;
  transition: all 150ms ease-in-out;
}
.btn-branding:hover {
  color: var(--physis-hover-text);
  box-shadow: 0 3px 10px white;
  cursor: pointer;
}

main section {
  margin: 0 auto;
  padding: 100px 30px;
}
.home-content section {
  max-width: 1000px;
}
.bold {
  font-weight: bold;
}
.home-content h3 {
  font-size: 18px;
}
.home-content h2 {
  font-size: 32px;
}
.home-content p {
  text-align: justify;
  line-height: 1.5;
  letter-spacing: 1px;
  font-weight: 200;
  font-size: 18px;
}

.img-responsive {
  max-width: 100%;
  display: block;
}
.grid {
  display: grid;
  grid-gap: 30px;
  place-items: center;
}

.center-item {
  align-self: center;
  justify-self: center;
}

.grid-2-columns {
  grid-template-columns: 1fr 1fr;
}

.text-side {
  max-width: 500px;
  margin: 0 auto;
}

.home-about-container {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)),
    url(../media/sfondo-physis_linee_p.svg);
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  border-radius: 50px;
}
.logo-clickable {
  display: block;
  margin-bottom: 40px;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
  cursor: pointer;
}

.logo-clickable:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 15px rgba(255, 0, 122, 0.8);
}

/* 
hr {
  border-top: 2px dashed var(--physis-dashed-color);
  padding: 5px auto;
  opacity: 0.8;
} */
.home-count-container {
  background-image: url(../media/sfondo-physis.svg);
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  font-family: var(--physis-main-font);
  color: var(--physis-text);
  text-align: center;
}
.home-count-container section {
  padding: 20px 30px;
}
.home-count-container .grid-4-columns {
  grid-template-columns: repeat(4, 1fr);
}
.counter-number {
  font-size: 90px;
  line-height: 1.2;
  font-weight: bolder;
}
.counter-title {
  font-size: 24px;
}
.grid-3-columns {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4-columns {
  grid-template-columns: repeat(4, 1fr);
}
.grid-5-columns {
  grid-template-columns: repeat(5, 1fr);
  column-gap: 5px;
  row-gap: 20px;
}

/* team-container */
.home-team-container {
  padding-bottom: 100px;
}
.home-team-container section {
  padding-bottom: 20px;
}
.home-team-container .grid-2-columns {
  grid-template-columns: 1.5fr 2fr;
}
.home-team-container .grid-3-columns {
  grid-template-columns: repeat(3, 1fr);
}

.home-flip-container {
  padding: 10px 0;
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
}

.admin-board-img{
  border-radius: 50%;
  /*this class is not needed in team.html cause the flip cards are different, dunno why*/
}

.flip-side h3 {
  color: var(--physis-color);
  font-family: var(--physis-main-font);
  text-align: center;
}
.home-flip-container img {
  width: 100%; 
  height: auto;
}

.flip-card h2 {
  font-family: var(--physis-main-font);
  color: var(--physis-dashed-color);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  padding-top: 20px;
}
.flip-card p {
  text-align: center;
  font-size: 14px;
}
.flip-card i {
  color: var(--physis-color);
  font-size: 26px;
}
.flip-card i:hover {
  color: var(--physis-hover-color);
}

.flip-card {
  background-color: transparent;
  width: 160px;
  height: 160px;
  perspective: 1000px;
  text-align: center;
  border-radius: 50%;
  overflow: hidden;
}

.flip-card-inner {
  position: relative;
  width: 160px;
  height: 160px;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}

.flip-card-front {
  background: url(../media/sfondo-physis_linee.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  color: black;
  border: 2px solid var(--physis-color);
}

.flip-card-back {
  background: url(../media/sfondo-physis_linee_p.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  color: white;
  transform: rotateY(180deg);
  border: 2px solid var(--physis-color);
}

.home-img-carousel {
  max-width: 100%;
  margin: 0 auto;
  padding: 30px 0;
  background: url(../media/sfondo-physis_linee_p.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* project-container */
.home-project-container img {
  animation: img 8s ease-in-out infinite;
  border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
}
@keyframes img {
  0% {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  }
}

/* countdown container */
.countdown-container {
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.6),
      rgba(255, 255, 255, 0.2)
    ),
    url(../media/sfondo-physis.svg);
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
}
.countdown-container h2 {
  text-align: center;
  font-size: 48px;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--physis-text);
  padding: 20px 30px 10px;
}
.countdown-container h4 {
  text-align: center;
  font-size: 30px;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--physis-text);
  padding: 20px 30px 10px;
}
.countdown-container iframe {
  border-radius: 30px;
  margin: 20px 10px 5px;
}
.countdown-container p {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 5px;
  padding: 0 30px;
}

/* home-news-support-container */
.home-news-support-container .grid {
  align-items: start;
  grid-gap: 40px;
}
.home-news-support-container img {
  max-width: 200px;
  margin: 0 auto;
}

/* footer */

footer section {
  max-width: 100%;
  margin: 0 auto;
  padding: 60px 50px 30px;
}
.footer-content {
  font-family: var(--physis-secondary-font);
  background-color: var(--physis-color);
  color: var(--physis-text);
}
footer .grid {
  text-align: center;
  justify-content: center;
  align-items: start;
}
footer .grid-3-columns {
  grid-template-columns: repeat(3, 1fr) 1.5fr;
}

footer h3 {
  font-family: var(--physis-main-font);
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
}
footer p {
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
}
footer ul {
  padding: 0;
}
footer li {
  list-style: none;
  margin: 0;
  padding: 0;
}
footer i {
  font-size: 28px;
}
footer a {
  font-size: 12px;
  color: var(--physis-text);
  transition: all 150ms ease-in-out;
}
footer a:hover {
  color: var(--physis-hover-pnk-bg-color);
  cursor: pointer;
}
footer img {
  max-width: 150px;
}

/* waves */
.waves {
  position: relative;
  width: 100%;
  height: 15vh;
  margin-bottom: -7px; /*Fix for safari gap*/
  min-height: 100px;
  max-height: 150px;
}
/* Animation */
.parallax > use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}
@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* RESPONSIVENESS */
@media (max-width: 1200px) {
  /* .flip-card-inner-one {
    -webkit-animation: rotating 5s alternate infinite;
    -moz-animation: rotating 5s alternate infinite;
    -ms-animation: rotating 5s alternate infinite;
    -o-animation: rotating 5s alternate infinite;
    animation: rotating 5s alternate infinite;
  } */
  @keyframes rotating {
    from {
      -ms-transform: rotateY(0deg);
      -moz-transform: rotateY(0deg);
      -webkit-transform: rotateY(0deg);
      -o-transform: rotateY(0deg);
      transform: rotateY(0deg);
    }
    to {
      -ms-transform: rotateY(180deg);
      -moz-transform: rotateY(180deg);
      -webkit-transform: rotateY(180deg);
      -o-transform: rotateY(180deg);
      transform: rotateY(180deg);
    }
  }
  /* .flip-card-inner-two {
    -webkit-animation: rotating 5s alternate infinite;
    -moz-animation: rotating 5s alternate infinite;
    -ms-animation: rotating 5s alternate infinite;
    -o-animation: rotating 5s alternate infinite;
    animation: rotating 5s alternate infinite;
    animation-delay: 5s;
  }
  @keyframes rotating {
    from {
      -ms-transform: rotateY(0deg);
      -moz-transform: rotateY(0deg);
      -webkit-transform: rotateY(0deg);
      -o-transform: rotateY(0deg);
      transform: rotateY(0deg);
    }
    to {
      -ms-transform: rotateY(180deg);
      -moz-transform: rotateY(180deg);
      -webkit-transform: rotateY(180deg);
      -o-transform: rotateY(180deg);
      transform: rotateY(180deg);
    }
  } */
  .home-team-container .grid-2-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  /* marquee {
    animation: marquee 20s linear infinite;
  } */
  header h1 {
    font-size: 56px;
  }
  header h2 {
    font-size: 30px;
  }
  header h3 {
    font-size: 12px;
  }
  .grid {
    grid-gap: 22px;
  }
  .grid-2-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-team-container .grid-3-columns {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-news-support-container .grid-2-columns {
    grid-template-columns: 1fr;
  }
  footer section {
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 30px 15px;
  }
}
@media (max-width: 768px) {
  .home-header {
    padding: 240px 0;
  }
  header h1 {
    font-size: 68px;
  }
  header h2 {
    font-size: 30px;
  }
  header h3 {
    font-size: 12px;
  }
  .grid-2-columns {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  main section {
    max-width: 100%;
    margin: 0 auto;
    padding: 50px 30px;
  }

  .home-count-container section {
    padding: 15px;
  }
  .home-count-container .grid-4-columns {
    grid-template-columns: repeat(2, 1fr);
  }
  .counter-number {
    font-size: 70px;
    line-height: 1.2;
    font-weight: bolder;
  }
  .counter-title {
    font-size: 18px;
  }

  .home-team-container {
    padding-bottom: 50px;
  }
  .home-team-container .grid-3-columns {
    grid-template-columns: 1fr;
  }

  .home-count-container section {
    padding: none;
  }
  .home-news-container img {
    max-width: 180px;
  }
  .countdown-container h2 {
    text-align: center;
    font-size: 32px;
    padding: 10px 30px;
  }
  .countdown-container p {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 5px;
    padding: 0 30px;
  }
  .countdown-container iframe {
    max-width: 98%;
  }
  .waves {
    height: 40px;
    min-height: 40px;
  }
  .content {
    height: 30vh;
  }
  footer .grid-4-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .counter-number {
    font-size: 70px;
    line-height: 1.2;
    font-weight: bolder;
  }
  .counter-title {
    font-size: 18px;
  }
  .flip-side .grid-2-columns {
    grid-template-columns: 1fr;
  }
  .footer-content h3 {
    font-size: 16px;
  }
}
