/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v7.0.29,
* Autoprefixer: v9.7.6
* Browsers: last 4 version
*/

/* SITE WIDE */

body {
  margin: 0px; 
  padding: 20px 10vw;
  font-family: "Roboto", sans-serif;
  font-size: 30pt;
  color: #52576f;
}

body.index {
  height: 100%;
  overflow: hidden;
  margin: -165px 0px; /* Very jank but makes the index language choice look centered on mobile */
}
  
body.index .wrapper {
  display: flex;
  flex-direction: column;
}

p {
  margin-top: 0px;
  margin-bottom: 11px;
}

code {
  font-family: "Roboto Mono", monospace;
  font-size: 12pt;
  color: #52576f;
}

header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: top;
      -ms-flex-align: top;
          align-items: top;
  padding-top: 28px;
}

footer {
  padding: 0px 16px;
}

.top {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.text-page {
  padding: 0px 0px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding: 1rem;
  line-height: 1.6;
  text-align: justify;
}

hr {
  margin-left: 0px;
  margin-right: 0px;
}

.grid-of-social-icons {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  text-align: center;
  -ms-flex-line-pack: center;
      align-content: center;
}

.social-icon {
  max-width: 50%;
}

#homepage {
  padding-top: 100px;
  padding-right: 0px;
  padding-bottom: 25px;
  padding-left: 0px;
}

.lang-choice {
  background-color: white;
  height: 100vh;
  font-family: "Roboto", sans-serif;
  font-size: 38pt;
  color: #52576f;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.links {
  background-color: white;
  height: 100vh;
  font-family: "Roboto", sans-serif;
  font-size: 18pt;
  color: #52576f;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.cliccable-linkBox {
  width: 20vh;
  padding: 25px;
  margin: 5px;
  /* border: solid black 1px;; */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;

}

.cliccable-linkBox .text {
  align-self: center;
  margin: 0;
  padding-left: 10px;
  flex: 2 1 auto;
  display: flex;
  justify-content: center;
}

.missing-page {
  background-color: white;
  height: 100vh;
  font-family: "Roboto", sans-serif;
  font-size: 18pt;
  color: #52576f;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.elegant-hyperlink {
  color: #52576f;
}

.elegant-link {
  color: #52576f;
  text-decoration: none;
  -webkit-transition: -webkit-transform 0.5s;
  transition: -webkit-transform 0.5s;
  -o-transition: transform 0.5s;
  transition: transform 0.5s;
  transition: transform 0.5s, -webkit-transform 0.5s;
}

.elegant-link-toolong {
  color: #52576f;
  text-decoration: none;
  -webkit-transition: -webkit-transform 0.5s;
  transition: -webkit-transform 0.5s;
  -o-transition: transform 0.5s;
  transition: transform 0.5s;
  transition: transform 0.5s, -webkit-transform 0.5s;
}

.elegant-link:visited {
  text-decoration: none;
}

.elegant-link:hover {
  text-decoration: underline;
}

.body-text {
  font-size: 14pt;
}

/* NAV BAR */

.ListItem {
  margin-right: 3rem;
}

.lang-btn {
  padding: 0 1rem;
}

/* PROJECTS SECITON */

.project-page {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  text-align: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 1rem;
  line-height: 1.6;
}

.grid-of-pics {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  text-align: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.pics-in-grid {
  max-width: 100%;
  max-height: 100%;
}

/* PUBLICATIONS SECTION */

pre {
  overflow-x: auto;
}

details {
  margin: 5px;
}

.downloads {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.Pub-Hidden {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.publications {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding: 1rem;
}

.publication-tag {
  text-transform: uppercase;
  font-size: 11pt;
}

.type-phd {
  color: red;
}

.type-chapter {
  color: green;
}

.type-conference-paper {
  color: cornflowerblue;
}

.type-poster {
  color: blue;
}

.type-demo {
  color: brown;
}

.type-workshop {
  color: orange;
}

.type-article {
  color: magenta;
}

.type-performance {
  color: plum;
}

.BibTex-Box {
  background-color: #fafafa;
  border-color: darkgray;
  border-radius: 1px;
  border-width: 0.01cm;
  border-style: solid;
}

#BibTex-Code {
  margin-left: 0.5rem;
}

/* MENU BAR CODE */

.header {
  min-height: 2.75rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: left;
      -ms-flex-align: left;
          align-items: left;
  -webkit-box-pack: left;
      -ms-flex-pack: left;
          justify-content: left;
  padding: 0 1rem;
  -webkit-box-flex: 1;
      -ms-flex: auto;
          flex: auto;
}

.header ul {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background-color: #fff;
}

.header li a {
  display: block;
  padding: 20px 0px;
  border-right: 1px solid #fff;
  text-decoration: none;
}

/* MENU */

.header .menu {
  clear: both;
  max-height: 0;
  -webkit-transition: max-height 0.2s ease-out;
  -o-transition: max-height 0.2s ease-out;
  transition: max-height 0.2s ease-out;
}

/* BURGER ICON */

.header .menu-icon {
  cursor: pointer;
  float: right;
  padding: 10px 0px;
  padding-bottom: 30px;
  position: relative;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.header .menu-icon .nav-icon {
  background: #333;
  display: block;
  height: 4px;
  position: relative;
  -webkit-transition: background 0.2s ease-out;
  -o-transition: background 0.2s ease-out;
  transition: background 0.2s ease-out;
  width: 36px;
}

.header .menu-icon .nav-icon:before,
.header .menu-icon .nav-icon:after {
  background: #000;
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  -webkit-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
  width: 100%;
}

.header .menu-icon .nav-icon:before {
  top: 10px;
}

.header .menu-icon .nav-icon:after {
  top: -10px;
}

/* MENU BURGER BUTTON */

.header .menu-btn {
  display: none;
}

.header .menu-btn:checked ~ .menu {
  max-height: 550px;
}

.header .menu-btn:checked ~ .menu-icon .nav-icon {
  background: transparent;
}

.header .menu-btn:checked ~ .menu-icon .nav-icon:before {
  -webkit-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
          transform: rotate(-45deg);
  top: 0;
}

.header .menu-btn:checked ~ .menu-icon .nav-icon:after {
  -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
          transform: rotate(45deg);
  top: 0;
}

.copyright {
  text-align: center;
  font-size: 65%;
  color: #52576f70;
}

/* Moto */

.years {
    text-align: center;
    margin: 20px 0;
}

.years input[type="radio"] {
    display: none;
}

.years label {
    margin: 0 10px;
    cursor: pointer;
    font-weight: bold;
}

.years img {
    display: none;
    margin: 20px auto;
    max-width: 10px;
}

#year-2007:checked + label ~ .images #img-2007,
#year-2008:checked + label ~ .images #img-2008,
#year-2010:checked + label ~ .images #img-2010,
#year-2023:checked + label ~ .images #img-2023,
#year-2024:checked + label ~ .images #img-2024 {
    display: block;
}

/* Sound Design per Videogiochi */

.with-sidebar-main {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.with-sidebar-main > :last-child {
  flex-basis: 1;
  flex-grow: 1;
}

.with-sidebar-main > :first-child {
  flex-basis: 0;
  flex-grow: 999;
  min-inline-size: 60%;
}

.with-sidebar-lessons {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.with-sidebar-lessons > :last-child {
  flex-basis: 20rem;
  flex-grow: 1;
}

.with-sidebar-lessons > :first-child {
  flex-basis: 0;
  flex-grow: 999;
  min-inline-size: 60%;
}

.bottom-navigation {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  text-align: center;
  -ms-flex-line-pack: center;
      align-content: center;
  margin: 50px;
}

.elegant-link-noAnim {
  color: #52576f;
  text-decoration: none;
}

.elegant-link-noAnim:visited {
  text-decoration: none;
}

.elegant-link-noAnim:hover {
  text-decoration: underline;
}

.align-hideable-items {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  text-align: center;
  -ms-flex-line-pack: center;
      align-content: center;  text-align: center;
}

.hideable-on-resize {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  text-align: center;
  -ms-flex-line-pack: center;
      align-content: center;  text-align: center;
  display: none;
}

.arrow-l {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  text-align: right;
  -ms-flex-line-pack: right;
      align-content: right;  text-align: right;
  margin-right: 10px;
}

.arrow-r {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  text-align: left;
  -ms-flex-line-pack: left;
      align-content: left;  text-align: left;
  margin-left: 10px;
}

.class-thumbnail:hover {
      -webkit-transform: scale(1.1);
        -ms-transform: scale(1.1);
            transform: scale(1.1);
    -webkit-transition: -webkit-transform 0.5s;
    transition: -webkit-transform 0.5s;
    -o-transition: transform 0.5s;
    transition: transform 0.5s;
    transition: transform 0.5s, -webkit-transform 0.5s;
}

/* Responsive Google Slides, YouTube & Vimeo */
iframe[src*="docs.google.com"],
iframe[src*="youtube.com"],
iframe[src*="player.vimeo.com"]{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9.53;
}

/* DESKTOP / LAPTOP SCREENS */

@media (min-width: 48em) {
  .lang-choice {
    font-size: 18pt;
  }

  body {
    font-size: 14pt;
  }

  body.index {
    margin: 0px;
  }

  .top {
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
  }

  p {
    margin-top: 0px;
    margin-bottom: 5px;
    line-height: 28pt;
  }

  header {
    -webkit-box-align: center;
    -ms-flex-align: center;
        align-items: center;
    padding-top: 0px;
  }

  .header {
    display: block;
  }

  .header .menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    text-align: left;
    max-height: none;
  }
  
  .header .menu-icon {
    display: none;
  }

  .elegant-link:hover {
    text-decoration: underline;
    -webkit-transform: scale(1.1) translate(2px, 0px);
        -ms-transform: scale(1.1) translate(2px, 0px);
            transform: scale(1.1) translate(2px, 0px);
    -webkit-transition: -webkit-transform 0.5s;
    transition: -webkit-transform 0.5s;
    -o-transition: transform 0.5s;
    transition: transform 0.5s;
    transition: transform 0.5s, -webkit-transform 0.5s;
  }

  .elegant-link-toolong:hover {
    text-decoration: underline;
    -webkit-transform: scale(1.1) translate(7px, 0px);
        -ms-transform: scale(1.1) translate(7px, 0px);
            transform: scale(1.1) translate(7px, 0px);
    -webkit-transition: -webkit-transform 0.5s;
    transition: -webkit-transform 0.5s;
    -o-transition: transform 0.5s;
    transition: transform 0.5s;
    transition: transform 0.5s, -webkit-transform 0.5s;
  }

  .body-text {
    font-size: 14pt;
  }

  .grid-of-pics {
    text-align: center;
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 100%;
  }

  .lang-btn {
    padding: 0 1rem;
  }

  .hideable-on-resize {
    display: contents;
  }

  .social-icon {
    max-width: 25%;
  }

  .years img {
    display: none;
    margin: 20px auto;
    max-width: 100%;
    max-height: 75vh;
}
}