@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", sans-serif !important;
  background-color: #0d6dfd;
}

main {
  background-color: white;
  padding-bottom: 10%;
}

section {
  margin: 75px 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

footer {
  text-align: center;
  font-size: 1em;
  color: white;
  height: 2%; 
  padding: 5px;
  background-color: #0d6dfd;
}

section h4 {
  font-size: 1.3em;
  margin-top: 25px;
}

h6 {
  font-size: 1.1em;
  margin-top: 5px;
}

.navbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: #0d6dfd;
  color: white;
  padding: 0 3%;
  height: 85px;
}

.navbar .navbar-brand {
  color: white;
}

.navbar ul {
  margin-top: 35px;
}

.navbar .navbar-brand:hover {
  color: white;
}

.to-fade1, .to-fade2 {
  opacity: 0;
}

#scopo-progetto, #relazione-tecnica {
  margin-left: 16% !important;
  margin-right: 16% !important;
}

.hero-section {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 90vh;

  color: white;
  background-color: #0d6efd;
}

.hero-section h1 {
  margin-top: 12px;
}

.highlighted {
  background-color: rgba(255, 255, 0, 0.80);
}

.linkTo {
  border: 2px solid white !important;
  border-radius: 0.3rem !important;
  margin-top: 24px !important;
  color: white !important;
  margin-bottom: 64px !important;
}

.linkTo:hover {
  border: 2px solid white;
  background-color: white;
  border-radius: 0.3rem;
  color: black !important;
}

#relazione-tecnica a {
  border: 2px solid #0d6dfd !important;
  background-color: #0d6dfd !important;
  border-radius: 0.3rem !important;
  margin-top: 24px !important;
  color: white !important;
  margin-bottom: 64px !important;
}

#dl-btn {
  border: 2px solid #0d6dfd !important;
  background-color: #0d6dfd !important;
  border-radius: 0.3rem !important;
  margin-top: 24px !important;
  color: white !important;
  margin-bottom: 64px !important;
}

#relazione-tecnica a:hover {
  border: 2px solid #0d6dfd !important;
  background-color: white !important;
  border-radius: 0.3rem;
  color: #0d6dfd !important;
}

#dl-btn:hover {
  border: 2px solid #0d6dfd !important;
  background-color: white !important;
  border-radius: 0.3rem;
  color: #0d6dfd !important;
}

.with-screenshot {
  flex-direction: row;
}

.with-screenshot div {
  margin: 0 12px;
}

.screen-on-right {
  text-align: right;
}

.screen-on-left {
  text-align: left;
}

.card-header {
  width: 100%;
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.inner-card-body {
  width: 75%;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  margin: 5px 0;
}

section img {
  margin: 12px;
}

#accordion a {
  font-size: 1.15em;
  text-decoration: none !important;
}

.nulled {
  font-size: 1em;
  text-decoration: default !important;
}

.fixed-width {
  width: 60%;
}

.hero-section img {
  width: 320px !important;
  height: 320px !important;
  background-color: white;
  border: 5px solid white;
  border-radius: 50%;
}

#slogan {
  font-style: italic;
  font-weight: 400;

  width: 250px;
  margin: 5px;
  padding: 5px;
  border: 2px solid #0d6efd;
  border-bottom: 4px solid #0d6efd;
  border-radius: 0.4rem;
  background-color: #ececec;
  text-align: center;
}

.code {
  font-family: "Roboto Mono", monospace;
  font-size: 0.8em;
  font-weight: 400;

  width: 85%;
  word-wrap: break-word;
  margin: 5px;
  padding: 5px;
  border: 2px solid #0d6efd;
  border-left: 4px solid #0d6efd;
  border-radius: 0.4rem;
  background-color: #ececec;
  text-align: center;
}

.to-fix {
  font-weight: 400;
  margin: 5px;
  padding: 5px;
  border: 2px solid #dc3545;
  border-left: 4px solid #dc3545;
  border-radius: 0.4rem;
  background-color: #ececec;
  text-align: left;
}

#arrow-down {
  animation: arrow-animation 1s ease-in-out alternate infinite !important;
  margin-top: 64px;
  margin-bottom: -64px;
  color: white;
  text-decoration: none;
}

#arrow-down:hover {
  color: white;
  transform: translateY(10px);
}

#wave-container {
  width: 100%;
  height: 100px;
  overflow: hidden;
}

#wave {
  display: block;
  position: relative;
  height: 40px;
  background: #0d6efd;
}

#wave:before {
  content: "";
  display: block;
  position: absolute;
  border-radius: 100%;
  width: 100%;
  height: 300px;
  background-color: white;
  right: -25%;
  top: 20px;
}

#wave:after {
  content: "";
  display: block;
  position: absolute;
  border-radius: 100%;
  width: 100%;
  height: 300px;
  background-color: #0d6efd;
  left: -25%;
  top: -240px;
}

@keyframes arrow-animation {
  0% {
    margin-top: 0px;
    margin-bottom: 0px;
  }
  100% {
    margin-top: 25px;
    margin-bottom: -25px;
  }
}

@media (max-width: 768px) {
  .display-5 {
    font-size: 2.25em !important;
  }
  .display-6 {
    font-size: 1.85em !important;
    margin: 5px 25px;
  }

  section img {
    display: none;
  }

  .navbar {
    justify-content: center;
  }

  .navbar ul {
    display: none;
  }

  .navbar .navbar-brand img {
    width: 250px !important;
  }

  .screen-on-right {
    text-align: center;
  }
  
  .screen-on-left {
    text-align: center;
  }

  .inner-card-body {
    text-align: center;
  }

  section {
    text-align: center !important;
    justify-content: center !important;
  }
}
