@import url('https://fonts.googleapis.com/css2?family=Bad+Script&family=Libre+Franklin:wght@200;400;600;700&family=Open+Sans:wght@300;500;700&family=Stylish&display=swap');

:root {

    --color-1: #f8f5f1;
    --color-2: #ffffff;
    --color-3: #0c0616;
    --family-aladin: 'Bad Script', cursive;
    --family-stylish: 'Stylish', sans-serif;
    --family-franklin: 'Libre Franklin', sans-serif;
    --family-open: 'Open Sans', sans-serif;
}

/* ================== HTML PAGE FORMATTING ================*/
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    outline: 0;
    appearance: none;
    border: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: max-content;
    background-color: var(--color-2);
    color: var(--color-3);
}

/* ============== COMPONENTS ============ */

.flex__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flex__left {
    display: flex;
    flex-direction: column;
    justify-content: left;
}

.para {
    font-family: var(--family-open);
    font-weight: 300;
    margin: 1rem 2.2rem 2.3rem;
    text-align: center;
}

/* ============== HEADER ============ */

header {
    width: 100%;
    height: 80px;
    background-color: var(--color-2);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;
}

.header {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 .5rem;
}

.header a img {
    width: 50px;
    height: auto;
}

.header h1 {
    color: var(--black);
    font-size: 1rem;
    font-family: var(--family-franklin);
    font-weight: 700;
}

#open-menu {
    margin: 0 1rem;
}

#open-menu svg {
    transform: scale(.8);
    cursor: pointer;
}

/* ============= NAV =============*/

#navigation-menu {
    width: 100%;
    height: 80px;
    background-color: var(--color-1);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 4;
    animation-name: slideIn;
    animation-duration: 350ms;
    animation-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}

#navigation-menu.close {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 4;
    background-color: transparent;
    animation-name: slideOut;
    animation-duration: 350ms;
    animation-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}

@keyframes slideIn {
    from {
        top: -100%;
    }

    to {
        top: 0;
    }
}

@keyframes slideOut {
    from {
        top: 0;
    }

    to {
        top: -100%;
    }
}


.menu li a {
    font-family: var(--family-franklin);
    color: var(--color-3);
    font-size: 2em;
    font-weight: 400;
    text-transform: uppercase;
    padding: 1rem;
}

.slide-down {
    font-family: var(--family-franklin);
    color: var(--color-3);
    font-weight: 400;
    text-transform: uppercase;
    position: relative;
}

#navigation-menu svg {
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.menu {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu li {
    margin: 1.5rem;
}

.show-text {
    opacity: 1;
    animation: none;
}

.slide-down {
    position: relative;
}

.categories-menu {
    width: 100%;
    min-height: 300px;
    background-color: var(--color-1);
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.categories-menu li a {
    font-size: 1.8em;
}

.slide-down:hover ul,
.slide-down:focus ul {
    opacity: 1;
    visibility: visible;
}

/* ================ MAIN =============== */
main {
    width: 100%;
    min-height: 100vh;
    display:flex;
    align-items: center;
    flex-direction: column;       
}

.description-container {
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10rem;
    margin-bottom: 6rem; 
}

figure {
    width: 250px;
    display:flex;
    flex-direction: column;
    font-family: var(--family-open);
}

figure img {
    width: 100%;
    height:auto;
}

figure h2 {
    font-size: 1.5rem;
    text-align: center;
    border-bottom: 0.5px solid rgba(140, 126, 126, 0.23);
    padding-bottom:0.3rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--family-stylish);
}

figure h3 {
    font-size: 1.2rem;
    text-align: left;
    margin-bottom: 1rem;
    color: #040404;
    opacity: .8;
    font-family: var(--family-stylish);
}

figure p {
    text-align: justify;
    margin-bottom: 1rem;
    line-height: 1.8rem;
    font-weight: 200;
}

summary {
    cursor: pointer;
    position:relative;
}

details ul li {
    font-weight: 200;
    font-family: var(--family-open);
}

details summary::after {
    content: url(../images/icons/arrow.svg);
    position: absolute;
    right: 0;
    top: 0;
}

/* == ARROW ANIMATION == */
details[open] summary::after {
    animation-name:rotation_open;
    animation-duration: 350ms;
    animation-fill-mode: forwards;
}

@keyframes rotation_open {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(180deg);
    }
}

details:not([open]) summary:after {
    animation-name:rotation_close;
    animation-duration: 250ms;
}

@keyframes rotation_close {
    from {
        transform: rotate(180deg);
    }
    to {
        transform: rotate(0deg);
    }
}

details li:first-child {
    margin-top: 1rem;
}

details ul {
    margin-bottom: 5rem;
}

details[open] > ul > li {
    opacity:0;
    animation-name: showContent;
    animation-duration: 350ms;
    animation-delay: 200ms;
    animation-fill-mode: forwards;
    line-height: 2rem;
    margin-left: 1.5rem;
}


@keyframes showContent {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  details[open] > ul {
    animation-name: slideDown;
    animation-duration: 500ms;
    animation-fill-mode: forwards;
}

@keyframes slideDown {
    from {
      opacity: 0;
      height: 0;
    }
  
    to {
      opacity: 1;
      height: 3vh;
      padding-bottom: 2.6rem;
    }
}

/* ============ FOOTER =========== */
footer {
    background-color: var(--color-1);
    width: 100%;
    min-height: 40vh;
}


footer .FAQ {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 2rem;
    margin-bottom: 2.5rem;
     
}

.FAQ__division1,
.FAQ__division2,
.FAQ__division3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: justify;
    margin: 1rem 0;
}

.FAQ a {
    font-weight: 200;
    font-size: 1.1rem;
    color: black;
    font-family: var(--family-franklin);
}


.FAQ__division1 p,
.FAQ__division2 p,
.FAQ__division3 p {
    font-family: var(--family-stylish); 
    font-size: 1.5rem;
    line-height: 5rem;
    font-weight: 600;
}

.copyright {
    text-align: center;
    padding-bottom: 1rem;
}


/* ================ MEDIA QUERIES =============== */

/* ==========TABLETS========== */

@media screen and (min-width: 481px) {
  
    .header {
        margin: 0 1.5rem;
    }

    .header a img {
        width: 60px;
        height: auto;
    }

    .header h1 {
        font-size: 1.2rem;
    }

    #open-menu {
        margin: 0 2.5rem;
    }

}

/* ==========SMALL SCREENS, LAPTOPS========== */

@media screen and (min-width: 769px) {

    .images-container{
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-evenly;
    }

    figure {
        margin-top:3rem;
        display:flex;
        flex-direction: column;
        align-items: center;
        
    }
    

    footer .FAQ {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-evenly;
           
    }
    
    .FAQ__division1,
    .FAQ__division2,
    .FAQ__division3 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        text-align: justify;
        margin: 4.5rem 0 2.5rem;    
    }

    .FAQ a {
        line-height: 2.8rem;
    }
    
}


/* ==========LARGE SCREENS, DESKTOPS========== */

@media screen and (min-width: 1025px) {
     #open-menu {
        display: none;
    }

    header {
        width: 55%;
        z-index: 4;
    }


    #navigation-menu {
        width: 100%;
        height: 80px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        background-color: var(--color-2);
        z-index: 3;
    }

    #navigation-menu svg {
        display: none;
    }

    .menu {
        width: 100%;
        height: 80px;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: flex-end;
        padding-bottom: 1rem;
    }

    .menu li {
        margin: 0;
    }

    .menu li a {
        font-size: 1rem;
    }

    .categories-menu {
        min-width: 300px;
        min-height: 300px;
        position: absolute;
        top: 38px;
        right: -50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        opacity: 0;
        visibility: hidden;
        transition: opacity 500ms ease-in-out;
    }

    .categories-menu li a {
        font-size: 1.2rem;
    }

    .slide-down:hover ul,
    .slide-down:focus ul {
        opacity: 1;
        visibility: visible;
    }

    .categories-menu li:nth-child(1) {
        padding-top: 0;
    }

    figure {
        width: 100%;
        display:flex;
        flex-direction: row;
        align-items: center; 
        justify-content: space-evenly;   
    }

    figure img {
        width: 300px;
        height:auto;
    }

    figcaption {
        width: 30%;
        margin-left: 2rem;
    }
    
}

