
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond&family=Source+Code+Pro:wght@300&display=swap');

Head {
    margin: 0;
    padding: 0;
    font-family: 'EB Garamond', Cambria, serif;
    background-color: #000000;
    color: #725646;
    background-image: url('paper-texture.png');
    background-size: cover;
    background-repeat: repeat;
    transition: all 10s ease;
}

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}


body {
    scrollbar-width: none; /* Firefox */
    margin: 0;
    padding: 0;
    font-family: 'EB Garamond', Cambria, serif;
    background-color: #c8c4bd;
    color: #725646;
    background-image: url('paper-texture.png');
    background-size: cover;
    background-repeat: repeat;
    transition: all 10s ease;
}

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


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    padding-right: 2rem;
    padding-left: 2rem; /*this needs to be deleted in case I want equal width */
    background: transparent;
    border-bottom: 1px solid #652c0b;
}

.logo {
    font-size: 1.75rem;
    /*font-family: 'Source Code Pro', monospace;*/
    left: 2vw;
    /* if I want equal distance, it should be 10vw... but I kinda like the 2vw. 
    There is also the padding-left in the header to erase*/
    font-family:'Courier New', 'Courier Prime', monospace;
    color: #652c0b;
    position: relative;
    cursor: pointer;
}
/*nav ul {
    position:relative;
    list-style: none;
    display: flex;
    right: 15vw;
    gap: 3rem;
    margin: 0; 
    padding: 0;
    
}*/

nav {
  display: flex;
  justify-content: center; /* centers nav bar as a whole */
}
nav ul {
    position:relative;
    list-style: none;
    display: flex;
    right: 5vw;
    gap: 1.0625rem;
    margin: 0; /* Qui decido quanto è distante la linea di separazione tra menu e contenuto */
    padding: 0;
    
}
nav li {
  flex: 0 0 auto;
  width: 175px; /* I used flex: 0 0 auto; and the gap = 4.23 in nav ul. Fromm this version, I go with this.. 
  for maintaining the spacing between nav elements when changing page */
  text-align: center;
}

nav ul li {
    position: relative;
    
}


nav a {
    text-decoration: none;
    color: #725646;
    padding: 0.25rem 2rem;
    position: relative;
    display: inline-block;
    transition: all 0.9s ease;
    box-shadow: 0 0 0 1rem transparent;
}

nav a:hover {
    box-shadow: 0 0 0 1px #d1e3ff14;
    transition: box-shadow 0.9 ease;
    color: #d0e8fe;
    background-color: transparent; /* optional */
}

nav ul li:hover > a {
  color: #d0e8fe;
}

nav ul li ul {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translate(-48.5%, -15%);  /* keeps it centered AND slides down */
  transition: opacity 0.9s ease, transform 0.9s ease;
  position: absolute;
  top: 1.25rem;
  left: 51.125%;
  /*transform: translate(-40%, 0);*/
  background-color: #0a0a0a00;
  padding: 2.125rem 0;
  z-index: 1000;
  min-width: 180px;
  text-align: center;
}


nav ul li:hover ul {
  opacity: 1;
  visibility: visible;
transform: translate(-48.5%, 0);
}

nav ul li ul li {
    
    display: block;
}

nav ul li ul li a {
    
    display: block;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 0 0 1rem transparent;
    transition: box-shadow 0.5s ease, color 0.5s ease;
    margin: 0 auto;
    width: fit-content;
}


nav ul li ul li a:hover {
        text-decoration: overline underline;
    text-underline-offset: 5px;
    box-shadow: 0 0 0 1px #6d899600; /* Sapphire */
    color: #d6ebff;
}

/*nav ul li ul li a:hover {
    box-shadow: 0 0 0 1px #0066998a; /* Sapphire */
    /*color: #99ccff;
}*/

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        color: #725646;
    }
    nav ul {
        flex-direction: column;
                color: #725646;

    }
    .video-row iframe {
    width: 80%;
  }
}


main{
    color: #652c0b;
    position:relative;
    padding-left: 5vw;

}
.centered-content {
    font-size: 14px;
    padding: 15vw 1rem;
    max-width: 600px;
}

.bio-text {
    position: absolute;
    top: 15vw;
    left: 25vw;
    text-align: justify;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}
.welcome {
    position: absolute;
    font-size: 24px;
    top: 12vw;
    left: 45vw;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}





/* The next are added to clean a bit the various codes... they are common to all */

   .page-label {
      font-size: 1rem;
      margin-left: 0.25rem;
      color: #652c0b;
      font-family: 'EB Garamond', Cambria, serif;
      display: inline-block;
    }

.video-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap; /* optional for responsiveness */
}

.video-row iframe.youtube {
  width: 49%;
  aspect-ratio: 16 / 9;
  border: none;
}
