@font-face {
    font-family: Baskerville;
    src: url('./typeface/Baskerville.ttf') format("TrueType");
}

@font-face {
    font-family: Authentic;
    src: url('./typeface/AUTHENTICSans-130.otf') format("OpenType");
}

@font-face {
    font-family: Vremena;
    src: url('./typeface/vremenagrotesk.otf') format("OpenType");
}

:root {
    /* ///// colors /////*/
    /* --green: rgb(135,170,116);
    --red: rgb(186,150,250);
    --blue: rgb(112,62,18);
    --white: rgb(249,249,249);
    --grey: rgb(143, 143, 143);
    --black: rgb(37,37,37); */

    /* ///// Riso Shade colors /////*/
    --green: rgb(44, 170, 65);
    --red: rgb(214, 31, 31);
    --blue: rgb(29, 13, 164);
    --light-blue: #278cde;
    --white: #e1e1e3;
    --grey: rgb(143, 143, 143);
    --black: rgb(37,37,37);

    /* ///// Typefaces /////*/
    --titles: Vremena;
    --plain: Baskerville;

    /* ///// font-size /////*/
    --body-size: 1em;
    --title-size: 3.5em;
    --subtitle-size: 1.2em;
    --details-size: 0.5em;

}

body{
    margin: 0;
    padding: 0;
    border: 0;
    width: 100vw;
    height: auto;
    font-family: var(--plain);
    overflow-x: hidden;
}

.plain{
    font-family: var(--plain);
}

a {
    cursor: pointer;
}

/*******************************************************************************************************************/
/********************************************        BUTTONS       *************************************************/
/*******************************************************************************************************************/

button{
    cursor: pointer;
    color: var(--black);
}

#section--buttons--toc{
    display: none;
  }

#section--buttons{
    position: fixed;
    min-width: 95vw;
    top: 27px;
    display: flex;
    justify-content: flex-end;
    padding: 0 5px 0 0.5%;
    z-index: 1000;   
}


#section--buttons button{
    width: fit-content;
}

/* #section--buttons--access{
    display: flex;
    min-width: 10%;
    justify-content: flex-start;
} */

#section--buttons--access, #section--buttons--print, #section--buttons--toc{
    display: none;
}

#section--buttons--language a{
    color: var(--blue);
    font-family: var(--titles);
    font-size: var(--body-size);
    text-decoration: none;
}

#section--buttons--language a:disabled{
    color: var(--grey);
}

#section--buttons--language a:hover{
    text-decoration: underline;
}

#section--buttons--access button, #section--buttons--print button, #section--buttons--toc button{ 
    margin-right: 5px;
    padding-right: 5px;
    padding-left: 5px;
    background-color: var(--white);
    border-color: 2px solid var(--black);
    border-radius: 10px;
    cursor: pointer;
    min-width: 55px;
    height: 3vh;
}

.dark #section--buttons--access button, .dark #section--buttons--print button, .dark #section--buttons--toc button{
    background-color: var(--black);
    color: var(--red);
    border-color: 2px solid var(--red);
    border-radius: 10px;
}

#section--buttons--access button:hover,  #section--buttons--print button:hover, #section--buttons--toc button:hover{
    background-color: var(--black);
    color: var(--white);
    cursor: pointer;
}

.dark #section--buttons--access button:hover, .dark #section--buttons--print button:hover, #section--buttons--toc button:hover{
    background-color: var(--white);
    color: var(--black);
    cursor: pointer;
}

/* #section--buttons--print{
    display: flex;
    justify-content: flex-end;
} */


.dark{
    background-color: var(--black);
    color: var(--green);
}

.dark h1{
    color: var(--red)
}


.off {
    display: none;
}

.active {
    display: auto;
}


/*******************************************************************************************************************/
/********************************************        TITLE         *************************************************/
/*******************************************************************************************************************/

#section--title{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    top: -6px;
    padding-top: 5px;
    margin-top: 23%;
    margin-bottom: 25%;
    z-index: 101;
}


#pub_title{
    z-index: 101;
    font-family: var(--titles);
    font-size: var(--title-size);
    font-weight: normal;
    margin-bottom: 0;
}

#pub_title h1{
    color: var(--black);
}

.plain #pub_title{
    font-family: var(--plain);
    text-align: center;
}

.pub_subtitle {
    max-width: 100%;
    margin: 0;
    text-align: center;
    font-family: var(--plain);
    font-style: normal;
    font-weight: normal;
    font-size: var(--subtitle-size);
}

.plain .pub_subtitle{
    font-family: var(--plain);
}

.background{
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    z-index: -10;
    cursor: none;
}

.background figure{
    display: block;
    width: 100%;
    height: 100%;
}

.background img{
    width: 100%;
    height: 100%;
    vertical-align: bottom;
    mix-blend-mode: screen;
}

.blank-cover{
    height: 500px; 
    width: 100%;
}



/*******************************************************************************************************************/
/********************************************        TOC               *********************************************/
/*******************************************************************************************************************/

nav {
    position: relative;
    font-size: 0.8em;
    color: var(--black);
}

#section--nav{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25%;
}

.dark nav{
    color: var(--red);
    background-color: var(--black);
    box-shadow: 0px 0px 10px 15px var(--black);
}

.dark nav a{
    color: var(--green);
}

.dark nav a:visited{
    color: var(--green);
}

.dark nav a:hover{
    color: var(--red);
}

nav a{
    text-decoration: none;
    color: var(--black);
}

nav a:visited{
    color: var(--black);
}

nav a:hover{
    color: var(--red);
}

nav h1{
    font-family: var(--titles);
    font-size: 2em;
}

nav h2{
    font-family: var(--titles);
    font-weight: normal;
    font-size: 1.5em;
    margin-bottom: 0.3em;
    padding-bottom: 0;
    margin-top: 0.5em;
}

.plain nav h2{
    font-family: var(--plain);
    font-size: 1.5vw;
}

/*******************************************************************************************************************/
/************************************************ CONTENT SECTION  *************************************************/
/*******************************************************************************************************************/


figure{
    display: inline;
    width: fit-content;
    margin-block:0;
    margin-inline: 0;
}


#section--content{
    top: 5px;
    position: sticky;
    width: 60%;
    align-content: center;
    height: 100vh;
    padding-left: 20px;
    padding-right: 20px;
}

#section--content h1{
    position: sticky;
    top: 0;
    width: 100%;
    font-size: var(--subtitle-size);
    font-family: var(--titles);
    font-weight: normal;
    color: var(--black);
}

.plain #section--content h1{
    font-family: var(--plain);
}

.dark #section--content h1{
    background-color: var(--black);
    box-shadow: 10px 0px 20px 20px var(--black);
}

.dark #section--text-block{
    background-color: var(--black);
    box-shadow: 0px 0px 10px 15px var(--black);
}

#section--text-block p{
    text-indent: calc(var(--body-size) + 1em);
    margin: 0;
    margin-bottom: 7pt;
}


/*******************************************************************************************************************/
/************************************************ PHTOS  *************************************************/
/*******************************************************************************************************************/

figure{
    display: block;
    width: fit-content;
    margin-block:0;
    margin-inline: 0;
}

#section--photos{
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.img-with-footnote {
    margin-top: 56px;
    display: inline-block;
    width: 80%;
    margin-bottom: 20px;
}

.img-with-footnote img {
    display: block;
    max-width: 100%;
    height: auto;
    text-align: center;
    border: 1pt solid black;
}
.img-with-footnote figcaption{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.img-with-footnote figcaption p{
    font-size: var(--details-size);
    color: #555;
    margin-top: 5px;
    line-height: 1.2;
    font-family: var(--titles);
    text-indent: 0;
}




/************************************************ INTRODUCTION *************************************************/

#section--intro{
    position: relative;
    z-index: 50;
}

#section--intro h1{
    margin-top: 0;
}

.dark #section--intro{
    background-color: var(--black);
    box-shadow: 0px 0px 10px 15px var(--black);
}


/* CSS */
.button-85 {
    padding: 15px 25px;
    font-family: var(--titles);
    border: none;
    outline: none;
    color: rgb(255, 255, 255);
    background: var(--blue);
    cursor: pointer;
    position: relative;
    z-index: 0;
    text-decoration: none;
    border-radius: 50px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
  }
  
  .button-85:before {
    content: "";
    background: linear-gradient(
      45deg,
      #ff0000,
      #1bc052,
      #002bff,
      #1bc052,
      #ff0000
    );
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    -webkit-filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing-button-85 20s linear infinite;
    transition: opacity 0.3s ease-in-out;
    border-radius: 50px;
  }
  
  @keyframes glowing-button-85 {
    0% {
      background-position: 0 0;
    }
    50% {
      background-position: 400% 0;
    }
    100% {
      background-position: 0 0;
    }
  }
  
  .button-85:after {
    z-index: -1;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--red);
    left: 0;
    top: 0;
    border-radius: 50px;
  }


.button-85:hover::after {
    background: var(--green); /* Change the background color */
    transition: 0.3s ease-in-out; /* Smooth transition */
}