/*    Index
 *--------------
 * 1-CSS Variables
 * 2-General
 * 3-Tags
 * 7-Loader
 */

/* 1-CSS Variables */
:root{
  --primary-orange:#f8c291;
  --secondary-blue:#3c6382;
  --secondary-light-blue:#82ccdd;
  --secondary-orange:#e58e26;
  --light:#fff;
  --dark:#000;
  --kinda-dark:#191919;
}

/* 2-General */
html,body{
  background: var(--light);
}

::selection{
  color: var(--light);
  background-color: var(--secondary-blue);
}

/* hides headings that will display on the page outline */
.hidden-heading{
  display: none;
}

a:link, a:visited, a:hover, a:active{
  color: auto
}

/* 3-Tags */
dfn{
  border-bottom: 2px dotted var(--secondary-blue);
  cursor: default;
}

main{
  display: grid;
}

sup{
  font-size: .75em;
}

/* 4-Flash */
.flash-msgs{
  background: #fff;
  box-shadow: 0 2px 6px 0 rgba(0,0,0,.5), inset 0 -1px 0 0 #dadce0;
  color: var(--kinda-dark);
  padding: 1em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 100002;
  border-radius: .3em;
}

.flash-msgs h2{
  font-size: 1.5em;
  font-weight: bold;
}

.flash-msgs input[type="button"]{
  margin-top: 1em;
  padding: .5em 1em;
  background: var(--secondary-blue);
  color: var(--light);
  border: none;
  border-radius: .3em;
  cursor: pointer;
}

.flash-msgs input[type="button"]:hover{
  background: var(--secondary-light-blue);
  transition: .3s;
}

.flash-msgs input[type="button"]:active{
  transform: scale(.9);
  outline: none;
  transition: .3s;
}

.error-flash-msgs li{
  color: red;
}

.dark-bg{
  background: rgba(0,0,0,.8);
  z-index: 100001;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 5-Header */
header{
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 1em;
  background: var(--light);
  box-shadow: 0 2px 6px 0 rgba(0,0,0,.12), inset 0 -1px 0 0 #dadce0;
}

header .logo-container{
  display: flex;
  justify-content: center;
  align-items: center;
}

header .logo{
  width: 10em;
}

nav{
  display: flex;
  align-items: center;
  justify-content: center;
}

nav.mobile-menu{
  display: none;
}

nav ul{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: 100%;
}

nav li{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75em;
}

nav ul li.dropdown ul{
  visibility: hidden;
  position: absolute;
  top: 0;
  width: 15em;
  padding: 1em;
  font-size: .9em;
  line-height: 1.7;
  transform: scale(0);
  border-radius: .3em;
  background: var(--light);
  box-shadow: 0 2px 6px 0 rgba(0,0,0,.5), inset 0 -1px 0 0 #dadce0;
  transition: .1s;
  opacity: 0;
  z-index: 10000000;
}

nav .dropdown-container{
  display: flex;
  align-items: center;
  justify-content: center;
}

nav li.dropdown:hover ul{
  visibility: visible;
  display: flex;
  flex-direction: column;
  top: 5em;
  transform: scale(1);
  opacity: 1;
}

nav ul li.dropdown ul li{
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: left;
}

nav a{
  color: #777;
}

nav a:hover{
  color: var(--kinda-dark);
  transition: .1s;
}

.current-page{
  color: var(--dark) !important;
}

.current-page-mobile{
  color: var(--light) !important;
  opacity: .5 !important;
}

/* 5.5-Media Queries */
@media(max-width: 1100px){
  div.logo-container{
    z-index: 10000000;
  }
  nav.desktop-menu{
    display: none;
  }

  nav.mobile-menu{
    display: flex;
    justify-content: flex-end;
    z-index: 10000000;
  }

  nav.mobile-menu ul{
    display: none;
  }
  
  nav.mobile-menu a{
    font-size: .7em;
  }

  nav.mobile-menu div.hamburger-middle{
    width: 1.7em;
    height: .18em;
    background: var(--dark);
    position: relative;
    border-radius: 10em;
    z-index: 10000;
    cursor: pointer;
  }
  
  nav.mobile-menu div.hamburger-middle::before{
    content: '';
    width: 1.7em;
    height: .18em;
    background: var(--dark);
    position: absolute;
    bottom: 6.5px;
    border-radius: 10em;
    animation-name: hamburgerMiddleBefore;
    animation-duration: .2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
  }

  @keyframes hamburgerMiddleBefore{
    0%{
      bottom: 0;
      transform: rotate(45deg);
    }

    100%{
      bottom: 6.5px;
      transform: rotate(0deg);
    }
  }

  nav.mobile-menu div.hamburger-middle::after{
    content: '';
    width: 1.7em;
    height: .18em;
    background: var(--dark);
    position: absolute;
    top: 7px;
    border-radius: 10em;
    animation-name: hamburgerMiddleAfter;
    animation-duration: .2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
  }

  @keyframes hamburgerMiddleAfter{
    0%{
      top: 0;
      transform: rotate(-45deg);
    }

    100%{
      top: 7px;
      transform: rotate(0deg);
    }
  }

  nav.mobile-menu div.hamburger-active{
    width: 1.7em;
    height: .18em;
    background: var(--dark);
    position: relative;
    border-radius: 10em;
    z-index: 10000;
    transition: 1s;
    cursor: pointer;
  }
  
  nav.mobile-menu div.hamburger-active::before{
    content: '';
    width: 1.7em;
    height: .18em;
    background: var(--light);
    position: absolute;
    bottom: 6.5px;
    border-radius: 10em;
    animation-name: hamburgerBefore;
    animation-duration: .3s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
  }
  
  @keyframes hamburgerBefore{
    0%{
      bottom: 6.5px;
      transform: rotate(0deg);
    }

    100%{
      bottom: 0;
      transform: rotate(45deg);
    }
  }

  nav.mobile-menu div.hamburger-active::after{
    content: '';
    width: 1.7em;
    height: .18em;
    background: var(--light);
    position: absolute;
    top: 7px;
    border-radius: 10em;
    animation-name: hamburgerAfter;
    animation-duration: .3s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
  }

  @keyframes hamburgerAfter{
    0%{
      top: 7px;
      transform: rotate(0deg);
    }

    100%{
      top: 0;
      transform: rotate(-45deg);
    }
  }

  ul#mobileMenu{
    background: var(--dark);
    flex-direction: column;
    position: absolute;
    z-index: 1000;
    top: 0;
    left: 0;
    line-height: 1.5;
    animation-name: mobileMenu;
    animation-duration: 1s;
    animation-iteration-count:1;
    animation-fill-mode: forwards;
  }

  @keyframes mobileMenu{
    0%{
      top: -35em;
    }

    100%{
      top: 0;
    }
  }

  ul#mobileMenu li:first-child{
    margin-top: 3em;
  }

  ul#mobileMenu li{
    border-top: 0.05em solid var(--kinda-dark);
    padding: 1.5em;
  }

  ul#mobileMenu a{
    color: var(--light);
  }
}

/* 6-Footer */
footer{
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  padding: 1.5em 0 1.5em 0;
  background: var(--light);
  z-index: 100000;
  margin-top: 2em;
}

.footer-sections{
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
}

footer h3{
  font-size: 1em;
}

footer a{
  font-size: .9em;
  line-height: 1.4;
  color: var(--dark);
  opacity: .85;
}

footer a:hover{
  opacity:1;
}

footer img{
  width: 9em;
}

footer hr{
  width: 85%;
  margin: 2em auto;
}

footer .copyright{
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}

footer .copyright p{
  padding-top: 1em;
}

footer .copyright p:last-child{
  font-size: .9em;
  font-family: "Mukta";
  color: #555;
  width: 70%;
  padding: 0;
  text-align: center;
}

footer .contact-footer li{
  display: flex;
  justify-content: start;
  align-items: center;
  font-size: .9em;
  line-height: 1.4;
  color: var(--dark);
  opacity: .85;
}

footer .designed-by-footer li{
  display: flex;
  justify-content: start;
  align-items: center;
  font-size: .9em;
  line-height: 1.4;
  color: var(--dark);
  opacity: .85;
}

footer a[target="_blank"]{
  font-size: 1em;
  line-height: 1.4;
  color: #2980b9;
  cursor: alias;
  transition: .15s ease;
}

footer a[target="_blank"]:hover{
  background: var(--secondary-blue);
  color: var(--light);
  padding: .15em;
}

.no-copy {
  display: inline-block;
  border-bottom: 1px solid white;
  margin: 0 2px;
}

footer .socialMedia-footer ul{
  display: flex;
  gap: 1em;
  font-size: 1.5em;
}

footer .socialMedia-footer i{
  padding: .3em;
  border-radius: .15em;
  transition: .1s;
  color: var(--secondary-pink);
}

footer .socialMedia-footer li:hover i{
  background: var(--secondary-pink);
  color: var(--light);
}

/* 6.5-Media Queries */
@media(max-width: 1050px){
  .footer-sections{
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    gap: 2em;
  }
  
  footer .contact-footer li,footer .designed-by-footer li{
    justify-content: center;
  }
}

/*7-Loader
.loader-wrapper{
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: var(--secondary-purple);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000000000000000000;
  animation: backgroundChange 6s infinite ease;
}

@keyframes backgroundChange{
  0% {
    background: var(--secondary-purple);
  }
  
  50% {
    background: var(--secondary-blue);
  }
  
  100% {
    background: var(--secondary-purple);
  }
}

.loader {
  display: inline-block;
  width: 30px;
  height: 30px;
  position: relative;
  border: 4px solid #Fff;
  animation: loader 2s infinite ease;
}

.loader-inner {
  vertical-align: top;
  display: inline-block;
  width: 100%;
  background-color: #fff;
  animation: loader-inner 2s infinite ease-in;
}

@keyframes loader {
  0% {
    transform: rotate(0deg);
  }
  
  25% {
    transform: rotate(180deg);
  }
  
  50% {
    transform: rotate(180deg);
  }
  
  75% {
    transform: rotate(360deg);
  }
  
  100% {
    transform: rotate(360deg);
  }
}

@keyframes loader-inner {
  0% {
    height: 0%;
  }
  
  25% {
    height: 0%;
  }
  
  50% {
    height: 100%;
  }
  
  75% {
    height: 100%;
  }
  
  100% {
    height: 0%;
  }
}*/