@font-face {
  font-family: 'Antique';
  src: url(fonts/Antique.woff2) format(woff2);
  font-weight: normal;
  font-style: normal;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Antique;
  background: white;
  transition: background 1s ease;
  overflow-x: hidden;
}

html {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  scroll-behavior: auto;
}

html::-webkit-scrollbar {
  display: none;
}

/* BLACK STATE */
body.black {
  background: navy;
}

/* NAVBAR */
#navbar {
  z-index: 1;
  position: fixed;
  top: -5vh;
  left: 0;
  width: 100%;
  height: 5vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 2rem;
  padding-left: 2rem;
  transition: top 1s ease;
  font-size: 2rem;
}


#risorse {
  padding: 2.1rem;
  position: fixed;
  height: 3rem;
  width: calc(100vw - 2rem);
  bottom: 2rem;
}

.r_1 img {
  position: absolute;
  display: block;
  height: 3rem;
  width: auto;
}

.r_2 img {
  left: 50vw;
  position: absolute;
  display: block;
  height: 3.4rem;
  width: auto;
  margin-top: 1.5rem;
  transform: translate(-50%, -50%);
}

.r_3 img {
  position: absolute;
  display: block;
  height: 3.2rem;
  width: auto;
  margin-top: 1.4rem;
  transform: translate(0%, -50%);
  right: 0;
}

#navbar.show {
  top: 0.5vh;
}

.online {
    position: absolute;
    font-size: 2rem;
    padding-left: 2rem;
    top: 45vh;
    color: white;
}

.nav-title {
  color: white;
}

.nav-buttons {
  display: flex;
  gap: 0.5vh;
}

.btn {
  width: 3.5vh;
  height: 3.5vh;
  border-radius: 50%;
  background: black;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateY(-10vh);
  transition: transform 1s ease;
}

.btn.show {
  transform: translateY(0);
}

.btn.empty {
  color: transparent;
}

/* SCROLLBAR */
#scrollbar {
  z-index: 1000;
  position: fixed;
  right: -1.5vh;
  top: 0;
  width: 1.5vh;
  height: 100vh;
  transition: right 1s ease;
}

#scrollbar.show {
  right: 4.5vh;
}

#scroll-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* area sopra (rosso) */
#scroll-top {
  position: absolute;
  top: 0;
  width: 100%;
  background: rgb(255,0,0);
}

/* cerchio (thumb) */
#scroll-thumb {
  z-index: 1;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5vh;
  height: 5vh;
  background: rgb(0,0,255);
}

/* area sotto (verde) */
#scroll-bottom {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgb(0,255,0);
}

/* CONTAINER */
#container {
  position: relative;
  display: grid;
  padding-top: 5vh;
  grid-template-columns: repeat(3, 1fr);
  left: -100vw;
  transition: left 1.5s;
  transition-timing-function: cubic-bezier(0.83, 0, 0.17, 1);
  column-gap: 1rem;
}

#container.show {
  left: 0vw;
}







/* RESPONSIVE */

@media (max-width: 1200px) {

  #container { 
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 800px) {

  #container { 
    grid-template-columns: repeat(1, 1fr);
  }

  #about-panel {
     width: calc(100% - 4.5vh)
  }

  #navbar {
  }

  #about-text {
    font-size: 1.05rem;
  }

  .col1 {
    font-size: 0.7rem;
  }

  .col2 {
    font-size: 0.7rem;
  }

  .col2-progetto {
    font-size: 0.7rem;
  }

}