* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: playfair display, sans serif;
    max-width: 1700px;
}

.container {
    width: 90vw;
    margin: 0 auto;
}

.background {
    background-color: rgba(85, 33, 33, 0.933);
    background-size: cover;
    min-width: 100vw;
    height: auto;
    min-height: 100vh;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: black;
}
ul {
    list-style: none;
}
h2 {
    text-transform: uppercase;
}

/* Navigation-start */
.flex-row-1 {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 20px 35px;
}
nav {
    _margin-right: 10px;
}
.menu li {
    display: inline-block;
    width: 100px;
    height: 30px;
    _margin-top: 2vh;
    text-align: center;
    vertical-align: middle;
}
.menu li a {
    color: rgb(231, 221, 221);
}
.menu li:hover {
    background-color: rgb(104, 45, 45);
}
.dropdown ul {
    display: none;
    position: absolute;
    width: inherit;
    margin-top: 10px
}
.dropdown ul li {
    height: fit-content;
}
.menu li:hover ul {
    display: block;
    background-color: rgb(104, 45, 45);
    _border-radius: 5px;
}
.flex-row-1 .menu .dropdown li:hover{
    background-color: rgb(251, 251, 251);
    color: rgb(66, 19, 19) !important;
    vertical-align: middle
}
.flex-row-1 .menu .dropdown li:hover a{
    color: rgb(66, 19, 19) !important;
    vertical-align: middle
}
/* Navigation-end */

/* Upper-part-layout-start */
.upper-part-layout {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5608368347338936) 0%, rgba(0, 0, 0, 0.23870798319327735) 25%, rgba(0, 0, 0, 0.9221813725490196) 100%), url(./../images/enterprise-wood.jpg) no-repeat;
    background-size: cover;
    background-position: 70% 30%;
    padding: 0 0 10% 4.5%;
}
.upper-part-text {
    margin-left: 10%;
    color: rgb(231, 221, 221);
}
h1 {
    text-transform: uppercase;
    color: rgb(255, 254, 254);
    font-size: 2em;
}
#imed {
    font-size: 2.5em;
}
#location {
    text-transform: none;
}
/* Upper-part-layout-end */

/* About us */
section.im {
    width: 90%;
    margin: 0 auto;
}
.wrapper{
    background-color: rgb(133, 54, 54)
}
.flex-row-3, .flex-row-3A{
    margin-top: -10vh;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    text-align: center;
    padding: 4%;
}
.flex-row-3B{
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-around;
    padding: 0 2% 3% 2%;
    margin-top: 2vh;
}
.what, .where{
    width: calc(100%/2 - 1%);
    background-color: rgba(240, 240, 229, 0.848);
    border-radius: 10px;
}
.how{
    width: 100%;
    background-color: rgba(240, 240, 229, 0.848);
    border-radius: 10px;
}
.phase{
    width: calc(100%/3 - 1%);
    background-color: #0000001b;
    color: rgb(11, 11, 11);
    border-radius: 10px;
}
.flex-row-3 p, .flex-row-3A p, .flex-row-3B p {
    padding: 3%;
    margin-left: 1%;
    line-height: 1.7rem;
    font-weight: 500;
    font-size: 1em;
    height: fit-content;
}
h3 {
    margin-top: 2vh;
    font-size: 1.6em;
}
h3.phase-head{
    text-transform: capitalize;
    font-size: 1.4em;
}
.registration-btn{
    width: 200px;
    background-color: antiquewhite;
    padding: 2%;
    border-radius: 5px;
    margin: 2vh auto;
    text-align: center;
    font-size: 1.5em;
    text-transform: uppercase;
}
.registration-btn a{
    color: cadetblue;
}
/* Gallery-Conferences start */
.gallery-small {
    display: none;
}
.gallery {
    display: grid;
    place-content: center;
    min-height: 70vh;
    background: #000000c3;
    border-radius: 10px;
    margin-top: 5vh;
    text-align: center;
    color: white;
}
.gallery .slider {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 1em;
    width: 100%;
    height: 300px;
    transition: all 400ms;
}
.gallery .slider:hover .box {
    filter: grayscale(100%) opacity(24%);
}
.pic-gal {
    width: 100%;
}
.box {
    position: relative;
    background: var(--img) center center;
    background-size: cover;
    transition: all 400ms;
    display: flex;
    justify-content: center;
    align-items: center;
}
.gallery .slider .box:hover {
    filter: grayscale(0%) opacity(100%);
}
.gallery .slider:has(.box-1:hover) {
    grid-template-columns: 3fr 1fr 1fr 1fr 1fr;
}
.gallery .slider:has(.box-2:hover) {
    grid-template-columns: 1fr 3fr 1fr 1fr 1fr;
}
.gallery .slider:has(.box-3:hover) {
    grid-template-columns: 1fr 1fr 3fr 1fr 1fr;
}
.gallery .slider:has(.box-4:hover) {
    grid-template-columns: 1fr 1fr 1fr 3fr 1fr;
}
.gallery .slider:has(.box-5:hover) {
    grid-template-columns: 1fr 1fr 1fr 1fr 3fr;
}
.gallery .box:nth-child(odd) {
    transform: translateY(-16px);
}
.gallery .box:nth-child(even) {
    transform: translateY(16px);
}
.box::after {
    content: attr(data-text);
    position: absolute;
    bottom: 20px;
    background: #000;
    color: #fff;
    padding: 10px 10px 10px 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    transform: translateY(60px);
    opacity: 0;
    transition: all 400ms;
}

.box:hover::after {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 400ms;
}
/* VIDEO */
.video {
    text-align: center;
}

#main-imed-video video {
    margin: 2vh auto;
    width: 60%;
    border: rgb(43, 38, 38) 5px solid;
}
#divider{
    width: 100%;
    height: 1px;
    background-color:  rgba(240, 255, 255, 0.701);
}
/* Registration-start */
.form-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    border-radius: 10px;
    margin: 0 auto;
    padding: 10px;
}
.form-wrapper h3{
    color: white;
    width: 150px;
    text-align: center;
    font-size: 1.5em;
    margin: 0 auto;
}

.form-wrapper .input-box{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 130%;
    margin-left:-3vw;
}
.form-wrapper .input-field{
    position: relative;
    width: 100%;
    height: 50px;
    margin: 13px 0;
}
.form-wrapper .input-field input{
    width: 100%;
    height: 100%;
    padding: 5% 5% 5% 15%;
}
.input-box .input-field i{
    position: absolute;
    top:50%;
    left: 5%;
    transform: translateY(-50%);
}

.form-wrapper .btn{
    width: 100%;
    height: 30px;
    cursor: pointer;
    background-color: cadetblue;
    font-weight: 600;
}
.form-wrapper .btn:hover{
    background-color: #fff;
}
/* Footer */

footer .flex-row-4 {
    display: flex;
    justify-content: space-evenly;
    background-color: rgb(105, 105, 105);
    color: white;
    padding: 10px;
    margin-top: 10px;
    border-top-style: solid;
    border-top-color: black;
    z-index: 3;
}
/* Breakpoints */
@media screen and (min-device-width:768px) and (max-device-width:1024px) {
    body {
        height: 248.5vh;
    }

    .container {
        height: fit-content;
    }

    .upper-part-text {
        margin-left: 5%;
    }

    .what p, .where p, .how p {
        _width: 100%;
        font-size: 1.2em;
    }
    .how{
        margin-top: 2vh ;
    }
    .phase p{
        font-size: 1.2em ;
    }
    h3 {
        margin-bottom: 0vh;
        font-size: 1.5em;
    }
    .form-wrapper h3{
        width: 100% ;
    }
    .gallery {
        min-height: 15vh;
        margin: 2vh auto 0 -3.5vw;
        place-content: flex-start;
        width: 110%;
    }

    .gallery-2 {
        margin-top: 2vh;
        place-content: flex-start;
        min-height: 39vh;
    }

    .section.gallry-2 .slider {
        gap: 0.5em;
    }
}
@media screen and (min-device-width:498px) and (max-device-width:768px) {
    #imed{
        font-size: 1.1em;
    }
    .flex-row-3{
        flex-direction: column;
        width: 100%;
        padding: 5%;
    }
    .what, .where{
        width: 100%;
        margin: 1% auto;
    }
    #main-imed-video video {
        margin: 2vh auto;
        width: 80%;
        border: rgb(43, 38, 38) 5px solid;
    }
    .gallery .slider {
        gap: 0.4em;
        width: 100%;
        height: 250px;
    }
    .form-wrapper .input-box{
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        width: 115%;
    }
    .form-wrapper .input-field{
        position: relative;
        width: 100%;
        height: 50px;
        margin: 13px 0;
    }
    .form-wrapper .input-field input{
        width: 100%;
        height: 100%;
        padding: 5% 5% 5% 10%;
    }
    .input-box .input-field i{
        position: absolute;
        top:50%;
        left: 5%;
        transform: translateY(-50%);
    }
    .form-wrapper .btn{
        width: 100%;
        height: 30px;
        cursor: pointer;
        background-color: cadetblue;
        font-weight: 600;
    }
    .flex-row-4 p{
        text-align: center;
        font-size: 0.8em;
    }
    footer .flex-row-4{
        padding: 4px;
    }  
}

@media screen and (min-device-width:320px) and (max-device-width:498px) {
    .container {
        width: 95vw;
        margin: 0 auto;
    }
    .flex-row-1 {
        padding: 20px 15px
    }
    .menu li {
        width: 60px;
    }
    .menu li a {
        font-size: 0.8em
    }
    h1 {
        font-size: 0.9em
    }
    #imed{
        font-size: 1.3em;
    }
    #location {
        font-size: 0.8em
    }
    .upper-part-layout {
        padding: 0 0 15% 0
    }
    .flex-row-3{
        flex-direction: column;
        width: 100%;
        padding: 5%;
        margin-top: -4vh;
    }
    .what, .where, .how{
        width: 100%;
        margin: 1% auto;
        font-size: 0.7em;
    }
    .flex-row-3A, .flex-row-3B{
        margin-top: -1vh;
    }
    .flex-row-3B{
        flex-direction: column;
    }
    .phase{
        width: 100%;
        line-height: normal;
        margin-bottom: 1.5vh;
    }
    .phase span.smaller{
        display: block;
    }
    .phase br{
        display: none;
    }
/* GALLERY WITH ACTIVITIES-start */
    .gallery, .gallery-2 {
        display: none;
    }
    .gallery-small {
        display: block;
        margin-top: 5vh;
        color: white;
        text-align: center;
        background-color: rgb(133, 54, 54)
    }
    .gallery-small .activities {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
    }
    .gallery-small .activities .photo, .activ-text{
        width: calc(100%/3 - 6px);
    }
    .activ-text{
        margin-bottom: 4px;
    }
    .gallery-small .activities .photo img {
    width: 100%;
    }
    h2 {
    font-size: 0.8em;
    margin-bottom: 1vh;
    color: rgba(255, 250, 250, 0.971);
    }
    .activities p{
        text-align: center;
        font-size: 0.3em;
        text-transform: capitalize;
    }
    /* GALLERY WITH ACTVITIES-end */
    .registration-btn{
        width: 50%;
        padding: 2%;
    }
    .registration-btn h4{
        font-size: 0.5em;
        vertical-align: center;
    }
    /* VIDEO */
    #main-imed-video video{
        width: 100%;
    }
    /* REGISTRATION FORM-START */
    .form-wrapper{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        border-radius: 10px;
        margin: 0 auto;
        padding: 10px;
    }
    .form-wrapper h3{
        color: white;
        width: 150px;
        text-align: center;
        font-size: 1.2em;
        margin: 0 auto;
    }
    .form-wrapper .input-box{
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        width: 100%;
        margin: 0 auto;
    }
    .form-wrapper .input-field{
        position: relative;
        width: 100%;
        height: 40px;
    }
    .form-wrapper .input-field input{
        width: 100%;
        height: 100%;
        padding: 5% 5% 5% 15%;
    }
    .input-box .input-field i{
        position: absolute;
        top:50%;
        left: 5%;
        transform: translateY(-50%);
    }
    .form-wrapper .btn{
        width: 100%;
        height: 30px;
        cursor: pointer;
        background-color: cadetblue;
        font-weight: 400;
    }
    /* REGISTRATIONS-FORM-END */
    .flex-row-4 p{
        text-align: center;
        font-size: 0.5em;
    }
    .flex-row-4{
        padding: 1%;
    }
}