* {
  font-family: "Urbanist", sans-serif;
  font-family: "Raleway", sans-serif;
  margin: 0;
  padding: 0;
  --bg: rgba(255, 255, 255, .45);
  --link-color: rgba(0, 0, 0, 1);
  --a: rgba(190, 240, 255, .35);
  --b: rgba(200, 245, 255, .35);
  --hover-color: linear-gradient(60deg, var(--a), var(--b));
  --shadow-color: rgba(0, 0, 0, .05);
}
nav {
  border-radius:0.15em;
}
h1 {
  /* color: rgb(75, 135, 215); */
  font-family: Urbanist;
  /* font-style: extra-bold; */
  font-size: 1.5em;
  padding: 0.5em;
}
ul {
  list-style-type: none;
  display: flex;
  justify-content:space-around;
  /* padding: 0; */
}
li {
  font-family: Roboto;
  padding: 0.25em 1em 0.25em 1em;
  font-size: 1em;
}
button {
  font-family: Roboto;
  font-size: 1em;
  border: 0;
  padding: 0.5em;
  background-color: transparent;
}
a {
  text-decoration: none;
  font-family: Roboto;
  color: black;
}
p {
  pointer-events: auto;
  font-family: Roboto;
}
#homelink:hover {
  color: rgb(75, 135, 215);
  cursor: pointer;
}
#content {
  width: 100vw;
  height: 100vh;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}
#content>*{
  max-height: 80vh;
  max-width: 90vw;
  width: auto;
}
#menus {
  width: 100vw;
  height: 100vh;
  position: absolute;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
#pagenav {
  width: 100vw;
  height: 100vh;
  position: absolute;
  display: flex;
  justify-content: space-between;
}
#pagenav>*{
  width:50vw;
  height:100vh;
  background-color: transparent;
}
#menus>*{
  margin: 2em;
  background-color: var(--bg);
  pointer-events: auto;
}
#mainmenu {
  align-self: flex-start;
  height: auto;
  box-shadow: 0 0 1em 0 var(--shadow-color);
}
#project-list {
  flex-direction: column;
  background-color: var(--bg);
  transition: height .15s;
  box-shadow: inset 0 1em 1em -1em var(--shadow-color),
              inset 0 -1em 1em -1em var(--shadow-color);
}
#project-list>*:hover {
  background: var(--hover-color);
}
#project-list>:first-child {
  padding: 0.25em 0 0 0;
}
#project-list>:last-child {
  padding: 0 0 0.25em 0;
}
#pagemenu {
  align-self:flex-end;
  box-shadow: 0 0 1em 0 var(--shadow-color);
}
.testo {
  flex-direction: column;
}
.captionwrapper,.captionwrapper>* {
  max-width: inherit;
  max-height: inherit;
  flex-flow:column;
}
.link {
  color: var(--link-color);
  pointer-events: auto;
  cursor: pointer;
}
.link>* {
  text-decoration: none;  
}
.link:hover {
  background: var(--hover-color);
}
.selected-page {
  font-style: bold;
  /* text-decoration: underline; */
  /* border-bottom: 0.1em solid var(--link-color); */
  color: rgb(75, 135, 215);
}
.prev {
  width: 50vw;
  background: transparent;
  /* background-color: rgba(0, 255, 0, 0.25); */
  cursor: e-resize;
}
.next {
  width: 50vw;
  background: transparent;
  /* background-color: rgba(0, 0, 255, 0.25); */
  cursor: w-resize;
}
.placeholder {
  height: 80vh;
  width: 80vh;
  background-color: aquamarine;
}

@media screen and (max-width: 600px) {
  #menus {
    flex-direction: column;
  }
  #menus > * {
    margin: 0;
    width: 100vw;
  }
  #mainmenu {
    justify-content: space-around;
  }
  #pagemenu > *{
    width: 50%;
  }
  #content > * {
    margin-top: 10vh;
    /* max-height: 70vh; */
    /* max-width: 90vw;
    width: auto; */
  }
}