/* IMPORT OF FONTS */
@import url("https://fonts.cdnfonts.com/css/bukhari-script");
@import url("https://fonts.googleapis.com/css2?family=Anton&family=Poppins&display=swap");

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-size: 16px;
    font-family: "Anton", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    flex-flow: column;
}

/* COMMON */
.body-default-bg {
    background-image: url(../img/index-body-bg.png);
}

.about-body-default-bg {
    background-image: url(../img/about-body-bg.png);
}

.contact-body-default-bg {
    background-image: url(../img/contact-body-bg.png);
}

.project-body-default-bg {
    background-image: url(../img/project-body-bg.png);
}

.education-body-default-bg {
    background-image: url(../img/education-bg.png);
}

.flex {
    display: flex;
}

.text-decoration-none {
    text-decoration: none;
    color: inherit;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    z-index: 2;
}

.modal-education {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 30px;
    padding-bottom: 30px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    z-index: 2;

}

/* Modal Content */
.modal-content {
    background: linear-gradient( 90deg, rgba(237, 213, 198, 1) 0%, rgba(238, 190, 166, 1) 100% );
    margin: auto;
    padding: 20px 30px;
    width: 25%;
    height: 450px;
    box-shadow: 0px 5px 25px gray;
    border-radius: 20px;
}

.modal-content-education {
    background: white;
    margin: auto;
    padding: 20px 30px;
    width: 75%;
    min-height: 450px;
    box-shadow: 0px 5px 25px gray;
    border-radius: 20px;
}

.modal-body {
    margin-top: 40px;
}

textarea {
    margin-top: 10px;
    border: none;
    border-radius: 20px;
    padding: 10px;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #ffa4a4;
    text-decoration: none;
    cursor: pointer;
}


/* NAVIGATION BAR */
nav {
    background: linear-gradient( 90deg, rgba(237, 213, 198, 1) 0%, rgba(238, 190, 166, 1) 100% );
    padding: 0.8rem 4rem 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 10px 100px 5px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.butterfly-logo {
    width: 50px;
}

.logo {
    width: 30px;
}

.nav-btn {
    background-color: #7F9E8C;
    border: none;
    padding: 5px 15px;
    font-family: "Anton", sans-serif;
    text-transform: uppercase;
    color: white;
    letter-spacing: 0.5px;
    font-size: 18px;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 80px;
    width: 140px;
    cursor: pointer;
}

.dropdown {
    position: relative;
}

.dropdown:hover .dropdown-links {
    display: block;
}

.nav-btn:hover, .nav-btn-dropdown:hover {
    background-color: #6b7770;
}

.dropdown-links {
    display: none;
    position: absolute;
    background: transparent;
    top: 20%;
    left: 38%;
    transform: translate(-50%, 15%);
    margin-top: 10px;
    width: 70%;
    margin-right: 50px;
    padding: 10px 15px;
}

.dropdown-links ul {
    list-style-type: none;
}

.dropdown-links li {
    font-size: 15px;
    margin-bottom: 8px;
}

.dropdown-links li a {
    text-decoration: none;
    color: black;
}

.nav-btn-dropdown {
    background-color: #7F9E8C;
    border: none;
    padding: 5px 25px;
    font-family: "Anton", sans-serif;
    text-transform: uppercase;
    color: white;
    letter-spacing: 2px;
    font-size: 13px;
    border-radius: 80px;
    width: 141px;
    cursor: pointer;
}

/* FOOTER */
footer {
    margin-top: auto;
    background: linear-gradient(90deg, #ef5855 0%, #ffcbca 100%);
    text-align: center;
    margin-bottom: -20px;
}

footer p {
    color: white;
    font-family: "Poppins", sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
}

/* width */
::-webkit-scrollbar {
    width: 10px;
}
  
/* Handle */
::-webkit-scrollbar-thumb {
    background: linear-gradient( 180deg, rgba(239, 88, 85, 1) 0%, rgba(255, 203, 202, 1) 100% );
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient( 180deg, rgba(239, 88, 85, 1) 0%, rgba(255, 203, 202, 1) 100% );
}

.slides {
    display: none;
    text-align: center;
    margin: 0 5%;
}

/* Slideshow container */
.slideshow-container {
  max-width: 80%;
  position: relative;
  margin: auto;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  width: auto;
  padding: 16px;
  margin-top: 10px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  margin-left: -53px;
  margin-right: -70px;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.arrow {
    width: 25%;
}

/* The dots/bullets/indicators */
.dot-container {
    text-align: center;
    width: 100%;
    margin-top: 30px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
background-color: #717171;
}

/* Fading animation */
.fade {
animation-name: fade;
animation-duration: 1.5s;
}

@keyframes fade {
from {opacity: .4}
to {opacity: 1}
}

/* Caption text */
.text {
    position: absolute;
    left: 20px;
    padding: 10px 15px;
    bottom: 25px;
    background-color: rgba(0,0,0,0.59);
    color: white;
    cursor: pointer;
}

/* NAVIGATION TOGGLE BUTTON */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

/* Media query for responsive design */
@media only screen and (max-width: 768px) {
    nav {
        flex-direction: row;
        text-align: center;
        padding: 1rem;
    }

    nav a {
        text-decoration: none;
    }
    
    .nav-btn {
        display: block;
        margin-bottom: 10px;
    }

    .nav-toggle {
        display: block;
    }

    .flex {
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 80px;
        left: 10px;
        width: 100%;
        display: none;
    }

    .flex.show {
        display: flex;
    }

    .nav-btn.hide {
        display: none;
    }

    .dot-container {
        margin-left: -35px;
    }
    

    .slides {
        display: none;
        text-align: left;
        margin: 0 -30px;
    }

    .slideshow-container {
        width: 80%;
        margin: 0;
    }

    .prev, .next {
        top: 30%;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .prev {
        left: -53px;
    }

    .next {
        right: -80px;
    }

    .arrow {
        width: 15%;
    }

    .text {
        left: 15px;
        bottom: 20px;
        padding: 10px 15px;
    }
}