@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

@import url('nav.css');

@import url('ar.css');

html, body{
    height: 100%;
}

:root
{
    --main-gray: #f1f1e1;
    --main-gray: #f1f1e1;
    --main-blue: #297fca;
    --drak-blue: #003c5f;
    --light-blue: #68b3df;
    --soft-blue: #f1f9ff;
    --main-yellow: #ffd045;
    --dark-yellow: #b57473;
}

body
{
    margin: 0;
    background-color: white;
    font-family: 'Tajawal', sans-serif;
    text-align: center;

}

main{
    padding-top: 10vh;
}

img.logo
{
    /*display: none;*/
    width: 200px;
    padding-top: 50px;
    margin: 0 auto;
}

h1{
    position: fixed;
    margin-top: -50px;
    z-index: 1000;
    padding-left: 150px;
}

a
{
    color: rgb(35, 31, 32);
    text-decoration: none;
    opacity: 1;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#back{
    background-size: cover;
    position: fixed;
    left: 10vh;
    top: 50%;
    transform: translate(-50%, 20%);
    height: 50px;
    width: 50px;
    cursor: pointer;
    border-radius: 100px;
}

#desc {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 96%;
}
#desc p {
    margin: 5px 0;
   font-weight:500;
    font-size: larger;
}
#desc span {
    padding-top: 10px;
}
.fine {
    font-weight: 300;
}
#righttxt{
    text-align: left;
    align-self: flex-end;
    margin-top: 30px;
}

#photoz{
    display: flex;
    flex-direction: column;
    align-items: center; 

}
#container{
    background-color: var(--main-gray);
}
#raw1{
    display: flex;
    flex-direction: row;
    transition: transform 0.5s ease; 

}
.wrapper{
    display: flex;
    position: relative;
  }
/*   .wrapper i{
    dis
    top: 50%;
    height: 44px;
    width: 44px;
    color: #343F4F;
    cursor: pointer;
    font-size: 1.15rem;
    position: absolute;
    text-align: center;
    line-height: 44px;
    background: #fff;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: transform 0.1s linear;
  } */
  .wrapper i:active{
    transform: translateY(-50%) scale(0.9);
  }
  .wrapper i:hover{
    background: #f2f2f2;
  }
  .wrapper i:first-child{
    left: -22px;
    display: none;
  }
  .wrapper i:last-child{
    right: -22px;
  }
  .wrapper .carousel{
    font-size: 0px;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    padding-top: 75px;
    padding-bottom: 75px;

  }
  .carousel.dragging{
    cursor: grab;
    scroll-behavior: auto;
  }
  .carousel.dragging img{
    pointer-events: none;
  }
  .carousel img{
    object-fit: cover;
    user-select: none;
    margin-left: 14px;
    width: calc(100% / 2);
    transition: transform 0.5s ease;
  }
  .carousel img:first-child{
    margin-left: 0px;
  }
  .carousel img:hover {
    transform: scale(1.2); /* Enlarge the image on hover */
    opacity:50%;
}
#culture {
    position: relative;
    width: fit-content; /* Adjusts container width to content */
    display: inline; /* Allows inline positioning */
  }
  #culture h3 {
    display: none;
    position: absolute;
    top: 50%; /* Position the text halfway from the top */
    left: 50%; /* Position the text halfway from the left */
    transform: translate(-50%, -100%); /* Center the text precisely */
    margin: 0; /* Remove default margin */
    color: black; /* Text color */
    padding: 10px; /* Add padding for better readability */
    padding-bottom: 33.3%;
    visibility: visible;
    pointer-events: none;
  }
  #culture h3 {
    user-select: none; /* Prevent text selection and copying */
  }
  #culture:hover h3 {
    display: block; /* Display the h3 element when #culture is hovered over */
  }
#banner{
    width: 100%;
    height: 10vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 900;
}

a.cc
{
    color: gray;
}

a:hover
{
    opacity: 0.5;
}

footer
{
    padding-top: 110px;
    background-image: linear-gradient(to bottom, var(--main-gray), white 40%, white);
    display: flex;
    justify-content: center;
}

footer > div
{
    padding: 20px;
    display: flex;
    flex-direction: row-reverse;
}

.nav
{
    align-items: center;
    order: 2;
}

.nav img
{
    padding-right: 20px;
}

.lang
{
    display: flex;
    flex-wrap: wrap;
    padding-left: 10px;
    margin-top: 3px;
}

.icon-sn
{
    display: flex;
    flex-wrap: nowrap;
    order: 2;
    padding-right: 60px;
}

.info
{
    padding: 0;
}

.home img
{
    width: 90px;
}

.icon-cc img
{
    width: 20px;
    padding-right: 10px;
}

.icon-cc
{
    display: flex;
    flex-wrap: nowrap;
}

.license,
.icon-cc
{
    padding-left: 50px;
    min-width: 280px;
    max-width: 400px;
}

.license img
{
    margin-left: 10px;
    margin-bottom: -10px;
}

.license p
{
    max-width: 300px;
}

.box
{
    background: #f1f1e1;
    height: auto;
    width: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

h2{
    color: black;
    font-size: 35px;
    font-weight: 700;
    margin: 0 auto;
    text-align: center;
    padding: 10px;
}

h3{
    font-size: 30px;
    font-weight: 600;
}

#middle p{
    color: white;
    font-size: 16px;
    margin: 0 auto;
    max-width: 600px;
    text-align:center;
}
#middle span{
    display: block;
}

#first p{
    font-size: 16px;
    margin: 0 auto;
    max-width: 600px;
    text-align:left;
}
#first span{
    display: block;
}
.artist {
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
}

.artist-photo {
    width: 40%;
    display: flex;
    align-items: center;
}
.artist-name {
    font-weight: bold;
    font-size: 1.2em; /* Adjust size as needed */
    text-align: left;
    margin-bottom: 10px;
    background-color: #ccc;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px;

}
.artist-photo img:first-of-type {
    width: 100%;
    height: auto;
    clip-path: none;
    max-width: 450px;
    margin-left: 0px;

}

.artist-bio a {
    color: blue;
    display: flex;
    justify-content: end;
}

.artist-bio {
    width: 60%;
    padding: 20px;
    box-sizing: border-box;
    color: #000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.artist-bio p {
    background-color: #ccc;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: justify;
    flex-grow: 1;
}
#middle{
    height: 250px;
    background-repeat: no-repeat;
    background-size: 200px;
    background-image: var(--middle-image);
    background-position: center 0;
    width: 100%;
}
.spacer {
    padding-top: 30px;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    #middle {
        background-image: var(--middle-image);
    }
}

.bottom{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-top: 150px;
    padding-bottom: 150px;
    background-color: #f1f1e1;
}

.bottom img{
    clip-path: circle(170px at center);
    max-width: 450px;
    margin-left: 30px;
}
.bottom1{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

}

.bottom1 img{
    clip-path: circle(200px at center);
    max-width: 450px;
    margin-left: 30px;
    width: 100%;
}
#reim img{
    clip-path:none;
    width: 100%;
    margin-left: 0;
    max-width: 100%;


}

.bottom1 p{
    padding-right: 30px;
    padding-left: 30px;

}

.text{
    display: flex;
    flex-direction: row;
    max-width: 460px;
    margin-right: 0;
    justify-content: center;
    align-content: center;
}

.text p{
    flex-flow: column;
    font-size: 16px;
}
#Phrases {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-top: 50px;
}
#Phrases h3 {
    display: flex;
    flex-direction: row;
    padding-right: 40px;
    justify-content: center;
    
}
#Phrases h3 {
    transition: font-size 0.3s ease-in-out; /* Smooth transition effect */
}

#Phrases h3:hover {
    font-size: 3em; /* Increase font size when hovered */
}
.first{
    max-width: 460px;
}

.theme-name{
    height: 420px;
    width: 654px;
    margin: 90px 40px;
    border-radius: 15px 15px 15px 15px;
    -webkit-box-shadow: 0 14px 32px 0 rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 14px 32px 0 rgba(0, 0, 0, 0.15);
    box-shadow: 0 14px 32px 0 rgba(0, 0, 0, 0.15);
}

.image{
    float: left;
}

.image img{
    border-radius: 15px 0 0 15px;
    height: 420px;
}

.inform{
    float: left;
    height: 420px;
    width: 315px;
    border-radius: 0 7px 10px 7px;
    padding-top: 10px;
}

.text-titles{
    height: 300px;
    width: 290px;
    margin: 0;
}

.text-titles h2{
    color: black;
    font-size: 34px;
    font-weight: 900;
    margin: 20px 0 -3px 34px;
    padding: 0;
    text-align: left;
}

.text-titles h4{
    margin: 0 0 75px 37px;
    font-size: 13px;
    letter-spacing: 0.2em;
}

.text-titles p{
    height: 125px;
    margin: 0 0 0 38px;
    line-height: 1.7em;
    font-size: 15px;
}

.read-date{
    height: 103px;
    width: 327px;
    margin-top: 17px;
    position: relative;
}

.read-date h4{
    display: inline-block;
    position: absolute;
    top: 5px;
    height: 50px;
    margin: 0 0 0 38px;
    font-size: 15px;
    letter-spacing: 0.2em;
}

.read-date button{
    float: right;
    display: inline-block;
    height: 30px;
    width: 120px;
    margin: 0 40px 0 16px;
    box-sizing: border-box;
    border: transparent;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    font-family: tajawal;
    color: white;
    background-color: var(--main-blue);
    cursor: pointer;
    outline: none;
}

.read-date-yellow button{
    float: right;
    display: inline-block;
    height: 30px;
    width: 120px;
    margin: 0 40px 0 16px;
    box-sizing: border-box;
    border: transparent;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    font-family: tajawal;
    color: white;
    background-color: var(--dark-yellow);
    cursor: pointer;
    outline: none;
}

.read-date-yellow button:hover{
    background-color: var(--main-yellow);
}

.read-date-yellow{
    height: 103px;
    width: 327px;
    margin-top: 17px;
    position: relative;
}

.read-date-yellow h4{
    display: inline-block;
    position: absolute;
    top: 5px;
    height: 50px;
    margin: 0 0 0 38px;
    font-size: 15px;
    letter-spacing: 0.2em;
}

.read-date button:hover{
    background-color: var(--light-blue);
}

.theme-group{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.title-theme{
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(white);
    border-radius: 10px;
    width: 300px;
    transition: 0.3s;
    margin: 15px;
    padding: 15px;
    -webkit-box-shadow: 0 14px 32px 0 rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 14px 32px 0 rgba(0, 0, 0, 0.15);
    box-shadow: 0 14px 32px 0 rgba(0, 0, 0, 0.15);
}

.title-theme p{
    max-width: 280px;
}

.title-theme:hover{
    -webkit-box-shadow: 0 14px 32px 0 rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 14px 32px 0 rgba(0, 0, 0, 0.3);
    box-shadow: 0 14px 32px 0 rgba(0, 0, 0, 0.3);
}

.image-theme{
    text-align: center;
    padding-bottom: 10px;
}

.image-theme img{
    height: 130px;
}

.image-theme p{
    margin: 0;
}

.padding-theme {
    margin-top: 100px;
    margin-bottom: 100px;
}

.cards{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-bottom: 80px;
}

.center p{
    font-size: 12px;
}

.center
{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.card
{
    background-color: var(--main-blue);
    height: 19em;
    width: 16em;
    display: flex;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    position: relative;
    -webkit-transition: all 0.4s cubic-bezier(1.645, 0.045, 0.355, 1);
    -o-transition: all 0.4s cubic-bezier(2.645, 0.045, 0.355, 1);
    transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    border-radius: 16px;
    overflow: hidden;
    -webkit-box-shadow: 15px 15px 27px #e1e1e3, -15px -15px 27px white;
    box-shadow: 15px 15px 27px #e1e1e3, -15px -15px 27px white;
    border: none;
}

.card-azilal
{
    background-color: var(--main-yellow);
    height: 19em;
    width: 16em;
    display: flex;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    position: relative;
    -webkit-transition: all 0.4s cubic-bezier(1.645, 0.045, 0.355, 1);
    -o-transition: all 0.4s cubic-bezier(2.645, 0.045, 0.355, 1);
    transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    border-radius: 16px;
    overflow: hidden;
    -webkit-box-shadow: 15px 15px 27px #e1e1e3, -15px -15px 27px white;
    box-shadow: 15px 15px 27px #e1e1e3, -15px -15px 27px white;
    border: none;
}

.card-image
{
    height: 6em;
    padding: 1em 2em;
    top: 0;
    transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    background-image: url(/media/parasol.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

.title-theme h3{
    margin: 5px;
}

.card-image-azilal
{
    height: 6em;
    padding: 1em 2em;
    transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    background-image: url(/media/tapis.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

.card-description
{
    background-color: var(--main-gray);
    height: 12em;
    position: absolute;
    bottom: 0;
    -webkit-transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    -o-transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
}

.card:hover .card-description
{
    height: 0;
    padding: 0 1em;
}

.card:hover .card-image
{
    height: 18em;
    opacity: 1;
}

.card-azilal:hover .card-description
{
    height: 0;
    padding: 0 1em;
}

.card-azilal:hover .card-image-azilal
{
    height: 18em;
    opacity: 1;
}

.text-insitu{
    text-align: center;
}

.text-titles h2.ara{
    margin-left: 180px;
}

/* >= format FHD */
@media only screen and (min-width: 1920px)
{
    .license,
    .icon-cc
    {
        padding-left: 300px;
        font-size: 24px;
    }

    .icon-sn
    {
        display: flex;
        flex-wrap: nowrap;
        order: 2;
        padding-right: 120px;
    }

    .nav
    {
        align-items: center;
        order: 2;
        padding-left: 120px;
    }

    .icon-cc img
    {
        width: 50px;
        height: 40px;
    }

    .lang {
        padding-left: 40px;
        margin-top: 8px;
        font-size: 32px;
    }

    .nav img {
        padding-right: 40px;
    }

    h2{
        font-size: 50px;
        padding-top: 80px;
        padding-bottom: 60px;

    }
footer{
    padding-top: 500px;
    padding-bottom: 150px;


}
    #middle p{
        font-size: 42px;
        max-width: 760px;
    }
    .bottom1{
        padding-top: 150px;

    }

    .home img {
        width: 160px;
        margin-top: -30px;
    }

    .icon-sn img
    {
        width: 40px;
    }

    .bottom{
        display: none;
        padding-top: 500px;
        padding-bottom: 500px;
    }

    .bottom img {
        max-width: 600px;
        margin-left: 150px;
        clip-path: circle(300px at center);
    }

    .first {
        max-width: 900px;
    }

    h3{
        font-size: 50px;
    }

    .text{
        max-width: 900px;
      
    }


    .text p{
        font-size: 38px;
    }

    .theme-name{
        margin: 760px 0;
        height: 670px;
        width: 974px;
    }

    .text-titles p{
        font-size: 24px;
    }

    .image img {
        height: 670px;
    }

    .text-titles{
        width: 424px;
    }

    .text-titles h2{
        font-size: 64px;
    }

    .text-titles p.ar{
        font-size: 24px;
    }

    .text-titles h4{
        font-size: 28px;
        margin: 0 0 112px 37px;
    }

    .read-date{
        width: 460px;
        margin-top: 260px;
    }

    .read-date-yellow{
        width: 460px;
        margin-top: 260px;
    }

    .read-date h4{
        font-size: 25px;
        top: 20;
    }

    .read-date h4.ar{
        font-size: 25px;
        top: 20;
    }

    .read-date-yellow h4{
        font-size: 25px;
        top: 20;
    }

    .read-date-yellow h4.ar{
        font-size: 25px;
        top: 20;
    }

    .read-date-yellow button.ar{
        height: 35px;
        width: 150px;
        font-size: 18px;
    }

    .read-date button{
        height: 35px;
        width: 150px;
        font-size: 18px;
    }

    .read-date-yellow button{
        height: 35px;
        width: 150px;
        font-size: 18px;
    }

    .read-date button.ara{
        height: 35px;
        width: 150px;
        font-size: 18px;
        font-family: tajawal;
        letter-spacing: 0;
    }

    .text-titles h2.ar {
        margin: 20px 0 0 191px;
    }

    .text-titles h4.ar {
        margin: 0 0 130px 250px;
        font-size: 28px;
    }

    .image-theme p {
        margin: 10px;
        font-size: 24px;
    }

    .title-theme {
        width: 500px;
        padding: 40px;
    }

    .title-theme h3{
        margin: 0;
        font-size: 70px;
    }

    .image-theme img {
        height: 300px;
    }

    .padding-theme {
        margin-top: 580px;
        margin-bottom: 580px;
    }

    .title-theme p {
        max-width: 360px;
        font-size: 28px;
    }

    #back{
        background-image: url('/img/back4k.svg');
        height: 80px;
        width: 80px;
    }

    .text-titles h2.ara {
        margin-left: 224px;
    }

    .card{
        height: 39em;
        width: 36em;
        margin: 260px;
    }

    .card-azilal{
        height: 39em;
        width: 36em;
        margin: 260px;
    }

    .card-image-azilal{
        height: 26em;
    }

    .card-azilal:hover .card-image-azilal{
        height: 38em;
    }

    .card-image{
        height: 26em;
    }

    .card-description p{
        font-size: 24px;
        padding: 20px;
    }

    .card-description h5{
        font-size: 34px;
        margin-top: 23px;
        margin-bottom: -30px;
    }

    .card:hover .card-image{
        height: 38em;
        opacity: 1;
    }

    .text-insitu {
        margin-top: 120px;
        margin-bottom: -100px;
    }

    ul:first-child > li{
        background-size: 600px;
        min-height: 240px;
    }

    a.nav-marrakech{
        font-size: 48px;
    }

    a.nav-marrakech-thematic {
        font-size: 28px;
    }

    a.nav-marrakech-events {
        font-size: 28px;
    }

    a.nav-marrakech-events-themes {
        font-size: 20px;
    }

    a.nav-marrakech-events-schedule{
        font-size: 20px;
    }

    a.nav-azilal{
        font-size: 48px;
    }

    a.nav-azilal-room{
        font-size: 28px;
    }

    a.nav-azilal-madrassatelhayat{
        font-size: 28px;
    }

    a.nav-azilal-madrassatelhayat-modules{
        font-size: 20px;
    }

    a.nav-azilal-madrassatelhayat-schedules{
        font-size: 20px;
    }

    a.nav-design{
        font-size: 48px;
    }

    a.nav-design-marrakech{
        font-size: 28px;
    }

    a.nav-design-azilal{
        font-size: 28px;
    }

    a.nav-habitat{
        font-size: 48px;
    }

    a.nav-habitat-egg{
        font-size: 28px;
    }

    a.nav-habitat-services{
        font-size: 28px;
    }

    a.nav-habitat-residence{
        font-size: 28px;
    }
    #middle{
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        margin-right: 0;
        margin-left: 0;
    }
}


@media screen and (max-width: 900px) {
    .carousel img{
      width: calc(100% / 2);
    }
  }
  
  @media screen and (max-width: 550px) {
    .carousel img{
      width: 100%;
    }
  }