/* MEDIA QUERIES */
@media only screen and (min-width : 1000px) and (max-width : 1300px) {
    .headerTitle {
        width: 50% !important;
        padding: 1.5rem !important;
    }
    
    .headerLogo {
        width: 40% !important;
        padding: 1.5rem !important;
    }
}

@media only screen and (max-width : 1000px) {
    html {
        font-size: 14px !important;
    }

    h1 {
        font-size: 18px !important;
    }

    h2, h3 {
        font-size: 16px !important;
    }

    header {
        justify-content: center !important;
    }

    .headerTitle {
        width: 40% !important;
        padding: 1.5rem !important;
    }
    
    .headerAcronym {
        font-size: 3rem !important;
    }

    .headerSubTitle {
        font-size: 1.5rem !important;
    }
    
    .headerLogo {
        width: 40% !important;
        padding: 1.5rem !important;
        display: flex !important;
        flex-flow: row !important;
        align-items: center !important;
    }

    .navbar {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .navLinks {
        justify-content: center !important;
        position: relative !important;
    }

    .dropdownButton {
        width: 100% !important;
        max-width: 50px !important;
        padding: 1rem !important;
        display: block !important;
        border: none !important;
        background-color: transparent;
    }

    .dropdownButton img {
        max-width: 3rem !important;
    }

    .dropdown {
        display: none !important;
        padding: 0 !important;
        background-color: rgba(255, 244, 230, 1);
    }

    .dropdownItem {
        display: none !important;
        width: 100% !important;
    }

    .selected + .dropdown {
        display: block !important;
        width: 100%;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
    }

    .selected + .dropdown .dropdownItem:not(.dropdownLanguage) {
        display: block !important;
        padding: 0.5rem !important;
    }

    .dropdownLanguage {
        display: flex !important;
    }

    .dropdownLanguage img {
        width: 10% !important;
    }

    .presentation {
        width: 90% !important;
        flex-flow: column !important;
    }

    .text {
        width: 100% !important;
    }

    .illustration {
        width: 60% !important;
    }

    .RtL,
    .LtR {
        transform: translateX(10rem) !important;
    }

    .illustration img {
        box-shadow: 0.5rem 0.5rem 0.5rem rgb(132, 130, 127) !important;
    }

    .slideshow {
        width: 90% !important;
    }

    .slideLegend {
        visibility: visible !important;
        opacity: 1 !important;
    }

    #slide1 {
        background-position-x: left;
    }
    
    .footerContainer {
        flex-flow: column !important;
    }
    
    .footerText, .footerLogos {
        width: 100% !important;
    }
}

/* GENERAL */
html {
    font-size: 16px;
    font-family: 'Libre Baskerville';
    scroll-behavior: smooth;
}

h1 {
    font-size: 32px;
    width: 100%;
}

h2 {
    font-size: 27px;
    width: 100%;
}

h3 {
    font-size: 22px;
    width: 100%;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    min-height: 100vh;
    width: 100vw;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: rgba(255, 244, 230, 1);
}

/* HEADER */
header {
    width: 100%;
    z-index: 1;
    position: relative;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

header:before {
    content: " ";
    display: block;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: -1;
    position: absolute;
    opacity: 0.5;
    background-image: url("../images/illustrations/header.webp");
    background-position-y: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.headerTitle {
    width: 60%;
    display: flex;
    flex-flow: column;
    color: rgba(156, 25, 29, 1);
    font-size: 2rem;
    padding: 2rem 2rem 1rem 2rem;
}

.headerTitle:hover {
    cursor: pointer;
}

.headerLogo {
    width: 30%;
    padding: 2rem 2rem 1rem 2rem;
}

.headerLogo img {
    height: auto;
    width: 100%;
}

.headerAcronym {
    font-size: 4rem;
}

.navbar {
    width: 100%;
}

.navLinks {
    display: flex;
    flex-flow: row;
    justify-content: flex-end;
    width: 100%;
    margin: 0;
    /*background-color: rgba(255, 244, 230, 1);*/
}

.dropdownButton {
    display: none;
}

.dropdownButton img {
    width: 100%;
}

.dropdown {
    width: 50%;
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 2rem 2rem 1rem 2rem;
    list-style-type: none;
}

.dropdownItem {
    position: relative;
    width: 20%;
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.dropdownItem a {
    display: block;
    text-align: center;
    padding: 1rem;
    text-decoration: none;
    color: rgba(156, 25, 29, 1);
    font-weight: bold;
    border-bottom: transparent solid 0.2rem;
}

.dropdownItem a:hover {
    color: rgba(77, 64, 52, 1);
    border-bottom: solid 0.2rem rgba(156, 25, 29, 1);
    cursor: pointer;
}

.dropdownLanguage img  {
    width: 30%;
    height: auto;
}

ul.dropdownFlag {
    display: none;
    flex-flow: row wrap;
    position: absolute;
    width: 100%;
    top: 110%;
    padding: 0;
    margin: 0;
    background-color: rgba(255, 244, 230, 1);
    list-style-type: none;
}

.dropdownLanguage:hover {
    cursor: pointer;
}

.selected ul.dropdownFlag {
    display: flex;
}

ul.dropdownFlag li {
    width: 100%;
    padding: 1rem;
}

.buttonLanguage {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    border: 0;
    font-weight: bold;
    color: rgba(156, 25, 29, 1);
    background-color: unset;
}

.buttonLanguage:hover {
    color: rgba(77, 64, 52, 1);
    border-bottom: solid 0.2rem rgba(156, 25, 29, 1);
    cursor: pointer;
}

.buttonLanguage img {
    width: 20%;
    height: auto;
}

.buttonLanguage span {
    width: 100%;
}

img.dropdownIcon {
    max-width: 1.5rem;
}

/* MAIN */
main {
    width: 100%;
    display: flex;
    flex-flow: column;
    align-items: center;
    gap: 3rem;
    margin: 3rem auto 3rem auto;
}

.slideshow {
    height: 70vh;
    width: 70%;
    border-radius: 0.5rem;
}

.slide {
    display: none;
    height: 100%;
    width: 100%;
    position: relative;
    border-radius: 0.5rem;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#slide1 {
    background-image: url(../../resources/images/illustrations/nb_2004_00011.webp);
}

#slide2 {
    background-image: url(../../resources/images/illustrations/nb_2004_01118.webp);
}

#slide3 {
    background-image: url(../../resources/images/illustrations/nb_2004_01918.webp);
}

#slide4 {
    background-image: url(../../resources/images/illustrations/pv_2015_00387.webp);
}

#slide5 {
    background-image: url(../../resources/images/illustrations/ts_2020_01456.webp);
}

#slide6 {
    background-image: url(../../resources/images/illustrations/pv_2004_06707.webp);
}

#slide7 {
    background-image: url(../../resources/images/illustrations/ts_2020_00082.webp);
}

#slide8 {
    background-image: url(../../resources/images/illustrations/pv_2004_05964.webp);
}

#slide9 {
    background-image: url(../../resources/images/illustrations/pv_2004_06407.webp);
}

#slide10 {
    background-image: url(../../resources/images/illustrations/pv_2004_06618.webp);
}

.slideLegend {
    visibility: hidden;
    opacity: 0;
    width: calc(100% - 1rem);
    padding: 0.5rem;
    position: absolute;
    bottom: 0;
    text-align: center;
    border-radius: 0 0 0.5rem 0.5rem;
    color: rgba(156, 25, 29, 1);
    background-color: rgba(215, 203, 190, 0.9);
    transition: all 0.5s;
}

.slide:hover {
    cursor: pointer;    
}

.slide:hover .slideLegend {
    visibility: visible;
    opacity: 1;
}

.presentation {
    width: 60%;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
}

.presentation:not(:has(.text)) {
    justify-content: center;
}

#about,
#aboutArkIndex {
    flex-direction: row-reverse;
}

.text {
    width: 45%;
}

.illustration {
    height: 100%;
    width: 45%;
    display: flex;
    flex-flow: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(156, 25, 29, 1);
    position: relative;
    opacity: 0;
    transition: 1s all ease;
}

.RtL {
    transform: translateX(10rem);
}

.LtR {
    transform: translateX(-10rem);
}

.active {
    transform: translateX(0) !important;
    opacity: 1;
}

.illustration img {
    height: auto;
    width: 80%;
    border-radius: 0.5rem;
}

#about img,
#aboutArkIndex img {
    box-shadow: 0.5rem 0.5rem 0.5rem rgb(132, 130, 127);
}

#aboutENDeM img {
    box-shadow: -0.5rem 0.5rem 0.5rem rgb(132, 130, 127)
}

#aboutArkIndex .illustration {
    gap: 3rem;
}

#aboutArkIndex .illustration img:first-child {
    align-self: flex-start;
}

#aboutArkIndex .illustration img:last-child {
    align-self: flex-end;
}

.legend {
    position: absolute;
    bottom: 0;
    width: calc(80% - 0.5rem);
    text-align: center;
    background-color: rgba(215, 203, 190, 0.9);
    padding: 0.25rem;
    border-radius: 0 0 0.5rem 0.5rem;
}

.presentation h1,
.presentation h2:not(.text h2),
.presentation h3 {
    text-align: center;
}

p {
    text-align: justify;
    margin: 0.5rem;
}

p:not(.text p) {
    width: 60%;
}

.warning {
    padding: 0.5rem;
    color: rgba(102, 77, 3, 1);
    background-color: rgba(255, 236, 181, 0.7);
    border: 1px solid rgba(102, 77, 3, 0.7);
    border-radius: 1rem;
}

.presentation ul {
    width: 60%;
    padding: 0;
}

.presentation li:first-of-type {
    padding: 1rem 0 0 0;
}

.presentation li {
    text-align: justify;
    margin: 0 0 0 1rem;
}

.presentation ul label {
    font-weight: bold;
}

.videoContainer {
    position: relative;
    width: 60%;
    margin: 1rem 0;
}

video {
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

video:hover,
.playButton:hover {
    cursor: pointer;
}

.playButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    background: none;
    padding: 0;
}

.playButton img {
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 1));
}

#selectDiary {
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    color: rgba(156, 25, 29, 1);
    background-color: rgb(254 244 230);
    border: 0.1rem solid rgb(120 106 89);
    box-shadow: rgb(0 0 0 / 62%) 0px 3px 6px 3px;
}

#selectDiary:hover,
.fullscreenButton:hover {
    cursor: pointer;
}

.pdfContainer {
    height: 80vh;
    width: 60%;
    position: relative;
}

.fullscreenButton {
    position: absolute;
    top: 101%;
    left: 0;
    margin: 0;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem;
    font-weight: bold;
    color: rgba(156, 25, 29, 1);
    background-color: rgb(254 244 230);
    border: 0.1rem solid rgb(120 106 89);
    box-shadow: rgb(0 0 0 / 62%) 0px 3px 6px 3px;
}

iframe.pdf {
    width: 100%;
    height: 100%;
}

/* SOCIAL NETWORKS */
.logoSocialNetworks {
    min-width: 1.5rem;
    max-width: 2rem;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    padding: 1rem;
    display: flex;
    flex-flow: column;
    gap: 1.5rem;
}

.logoSocialNetworks:before {
    content: " ";
    display: block;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: -1;
    position: absolute;
    opacity: 0.5;
    background-color: rgba(255, 244, 230, 1);
    border-radius: 0.5rem 0 0 0.5rem;
}

.logoSocialNetworks img {
    width: 100%;
}

/* FOOTER */
#footer {
    width: 100%;
    background-color: rgba(237, 210, 155, 1);
    margin-top: auto;
    font-size: 14px;
}

#footer h2 {
    font-size: 24px;
}

.footerContainer {
    width: auto;
    margin: 0 auto 0 auto;
    display: flex;
    flex-flow: row-reverse;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
}

.footerText,
.footerLogos {
    width: 50%;
    display: flex;
}

.footerText {
    flex-flow: column;
    align-items: center;
    gap: 1rem;
}

.footerTextPart {
    display: flex;
    flex-flow: column;
    align-items: center;
    text-align: center;
}

.footerTextPart h2 {
    margin: 0 0 0.5rem 0;
}

.footerLogos {
    width: 30%;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
}

.footerLogos a {
    height: auto;
    width: 25%;
    min-width: 60px;
}

.footerLogos a:last-child {
    height: auto;
    width: 45%;
    min-width: 60px;
}

.footerLogos img {
    height: auto;
    max-width: 100%;
}

/* MODAL */
.modal {
    display: none;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.7);
}

.modalContent {
    height: 100%;
    width: 100%;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modalCloseButton {
    width: 3%;
    position: absolute;
    top: 5%;
    right: 5%;
    z-index: 9999;
}

.modalPrevButton,
.modalNextButton {
    width: 3%;
    position: absolute;
    top: 50%;
    z-index: 9999;
}

.modalPrevButton {
    left: 5%;
}

.modalNextButton {
    right: 5%;
}

.modalCloseButton:hover,
.modalPrevButton:hover,
.modalNextButton:hover {
    cursor: pointer;
}

.modalCloseButton img {
    height: auto;
    width: 100%;
}

.modalFigure {
    max-height: 90%;
    max-width: 60%;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hidden {
    display: none;
}

.modalImg {
    max-height: 100%;
    max-width: 100%;
}

.modalLegend {
    text-align: center;
    color: rgba(255, 255, 255, 1);
    font-weight: bold;
    padding: 0.25rem;
}

/* Arabic translation */
.ar {
    direction: rtl;
}

header.ar {
    flex-flow: row wrap;
}

.navLinks.ar {
    justify-content: flex-start;
}

.buttonLanguage.ar ul.dropdown.ar {
    flex-flow: row-reverse;
}

.footerContainer.ar {
    flex-flow: row;
}

.warning::before {
    content: "👉️ ";
}

.warning.ar::before {
    content: "👈 ";
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}