@font-face {
  font-family: "Permanent Marker";
  src: url(../fonts/PermanentMarker-Regular.ttf);
}

@font-face {
  font-family: "Montserrat"; /* set name */
  src: url(../fonts/Montserrat-VariableFont_wght.ttf); /* url of the font */
}

@media print {
  #menu {
    visibility: hidden;
  }
  #prospettiva {
    display: none;
  }
  #floppy-tweet {
    display: none;
  }
}

html {
  font-size: 19px;
  color: #ccc;
}

body {
  background-image: linear-gradient(white, black), url(bkg.jpg);
  background-blend-mode: saturation;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  margin: 0px;
}

#menu {
  background-image: url(/safe/floppy2.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 5px #111);

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  #menu {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: -130px;
    height: 210px;
    width: 210px;
    padding-bottom: 20px;
    z-index: 1;

    transition: bottom 0.5s;
  }

  #menu:hover {
    bottom: 0px;
  }

  main {
    margin: 0px;
    min-height: 100vh;
    padding: 20px 15px 100px 15px;
  }

  footer {
    margin: 0px;
    min-height: 10vh;
    padding: 20px 15px 100px 15px;
  }

  #floppy-tweet {
    margin: 0 auto;
  }

  #prospettiva {
    display: none;
  }
}

@media (min-width: 768px) {
  #menu {
    background-image: url(floppy2.png);
    background-size: contain;
    background-position: center;
    filter: drop-shadow(0 0 10px #111);

    /*display: block;*/
    position: fixed;
    right: 15px;
    bottom: -155px;
    height: 220px;
    width: 220px;
    padding-bottom: 45px;
    z-index: 1;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    transition: bottom 0.7s;
  }

  #menu:hover {
    bottom: 15;
  }

  main {
    margin: 0 auto;
    padding: 20px 70px 80px 70px;
    max-width: 700px;
    min-width: 228px;
  }

  footer {
    margin: 0 auto;
    padding: 15px 70px 20px 70px;
    max-width: 700px;
    min-width: 228px;
  }

  .twitter-tweet,
  .twitter-tweet-rendered {
    display: block;
    position: absolute;
    left: -495;
    top: 190;
    transition: left 0.7s;
  }

  .twitter-tweet:hover,
  .twitter-tweet-rendered:hover {
    left: 5;
  }

  #prospettiva {
    margin: 0 auto;
    padding: 35px 70px;
    max-width: 700px;
    min-width: 228px;
    font-family: "Lato", sans-serif;
    background-color: firebrick;

    text-transform: uppercase;
    letter-spacing: 0.9rem;
    line-height: 1.2rem;

    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  #social {
    font-size: 1.3rem;
  }

  #social a{
    color:#ccc;
  }

  main h2 {
    margin-top: 50px;
  }
}

#menu p {
  margin: 1px;
  font-family: "Permanent Marker", cursive;
  text-align: center;
}
#menu a {
  text-decoration: none;
  color: black;
}
#menu a:visited {
  color: black;
}
#menu a:hover {
  color: Firebrick;
}

h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", "Gemunu Libre", sans-serif;
  margin-top: 30px;
}

main {
  background-color: #111;
  font-family: "Lato", sans-serif;
}

main h1 {
  font-family: "Montserrat", "Gemunu Libre", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  font-size: 3rem;
  text-align: center;
}

main p {
  font-weight: normal;
  line-height: 1.5em;
}

main a {
  color: firebrick;
}

main strong {
  font-weight: 400;
  color: #111;
  background-color: #999;
  padding: 0 5px 0 5px;
  border-radius: 50% 20% / 10% 40%;
}

main hr {
  border-color: #666;
  margin: 30px 0px;
}

.reference {
  text-decoration: underline;
  color: royalblue;
}

.divtoshow {
  position: fixed;
  display: none;
  background-color: #ccc;
  border-radius: 10px;
  box-shadow: 0px 0px 5px royalblue;
  padding: 0px;
  font-weight: 500;
  font-size: 0.8em;
  color: black;
}
.divtoshow img {
  border-radius: 7px;
}

#chart {
  border: solid 5px #666;
  margin: 30px 20px 0px 20px;
}

.didascalia {
  font-size: 0.7rem;
  text-align: center;
  margin-bottom: 40px;
}

footer {
  background-color: #666;
  font-size: 0.7rem;
  text-align: center;
  font-family: "Lato", sans-serif;
}
footer a {
  color: #111;
}
