html {
  font-size: 62.5%;
}
* {
  box-sizing: border-box;
}

/* all general part for every page */
body {
  margin: 0%;
  background-color: whitesmoke;
}
nav .topnav,
main,
footer .mainfooter {
  width: 85%;
  margin: 0 auto;
}
h1{font-family: 'Playfair Display', serif;
  font-weight: 700;}
h2, h3, h4 {font-family: 'Playfair Display', serif;
  font-weight: 700;

}
p,
a{font-family: 'Montserrat', sans-serif;}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.7rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.8rem;
}
p {
  font-weight: 500;
  font-size: 1.6rem;
  color: #191b1a;
}
a {
  font-size: 1.6rem;
  font-weight: 400;
  text-decoration: none;
  color: whitesmoke;
}
.linkbtn,
button {
  background-color: #e14761;
  color: whitesmoke;
  font-size: 2rem;
  border: none;
  border-radius: 5px;
  padding: 9px 18px 9px 14px;
  font-family:  sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.linkbtn:hover,
button:hover{background-color: #191b1a;
  color: #e14761;
}
.linkbtn:active,
button:active {
  background-color: #191b1a;
  color: #e14761;
}
/* heading star */
header {
  background-color: #191b1a;
  overflow: hidden;
  width: 100%;
  height: max-content;
  position: relative;
}
.navbar {
  background-color: #191b1a;
  position: relative;
}

.navbar #myLinks {
  display: none;
}

.navbar a {
  padding: 3%;
  color: whitesmoke;
  text-decoration: none;
  font-size: 1.6rem;
  display: block;
}

.navbar a.icon {
  background: #191b1a;
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  padding: 3% 5%;
  margin: 50px 15px;
  
}

.navbar a:hover{background-color: #e14761;
  color: black;} 
.navbar a:active {
  background-color: #e14761;
  color: black;
}

/* Heading done */

/* #backtotop*/

#backtotop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 1.8rem;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 5px 15px 0px;
  border-radius: 4px;
  
}


/* home page */


.home-content-pessage1 {
  display: flex;
  flex-direction: column;
}
.home-content-pessage1-div2 {
  position: relative;
  padding-bottom: calc(var(--aspect-ratio, 0.5625) * 100%);
  margin: 4% 0%;
  height: 0;
  order: 1;
}
.home-content-pessage1-div1 {
  order: 0;
}
.home-content-pessage1-video {
  background-color: #191b1a;
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0px;
}

.home-content-pessage2 {
  margin: 2% 0%;
}
/* home page done */


/* project page start */

.project-drop-down-btn {
  cursor: pointer;
  border-radius: 0%;
}

.project-drop-down {
  position: relative;
  display: inline-block;
}

.project-drop-down-content {
  display: none;
  position: absolute;
  background-color: #191b1a;
  min-width: 200px;
  overflow: auto;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.project-drop-down-content a {
  color: #e14761;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.project-drop-down a:hover {
  background-color: #e14761;
  color: whitesmoke;
}

.project-drop-down-show {
  display: block;
}


/* project-gallery work of projects */

.project-gallery {
  border: 1px solid #ccc;
  border-radius: 5px;
}
.project-gallery-image {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6vh;
}
.project-gallery-image > .project-gallery {
  flex-basis: 60vh; /* width: 350px; */
}
.project-gallery-image::after {
  content: "";
  flex-basis: 60vh;
}
.project-gallery-image .project-gallery img {
  object-fit: cover;
  width: 100%;
  height: 70%;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  vertical-align: middle;
}
.project-gallery-image > .project-gallery {
  /* ... */
  position: relative;
  cursor: pointer;
}
.project-gallery-image-desplay {
  padding: 5px 5px;
}
.project-gallery-image-desplay h4 {
  margin: 0px 0px -15px 0px;
}

/* project page done */


/* about page work start */
.about-content-pessage1 {
  display: flex;
  flex-direction: column;
}
.about-content-pessage1-div1 {
  text-align: center;
}
.about-content-pessage1-div2 {
  width: 100%;
  justify-content: center;
}
.about-content-pessage2 a {
  color: #e14761;
}
.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table-caption {
  font-size: 2rem;
  font-weight: bold;
  text-align: left;
  padding: 10px 0;
}

.about-table td,
.about-table th {
  border: 1px solid #191b1a;
  padding: 8px;
  font-size: 1.6rem;
}

.about-table th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #e14761;
  color: whitesmoke;
}

.about-table tr:nth-child(even) {
  background-color: whitesmoke;
}

.about-table tfoot {
  font-size: 1.6rem;
  font-style: italic;
  text-align: center;
  background-color: #191b1a;
  color: whitesmoke;
}
/* about page work done */

/* contact us work start */
.contact-map-details {
  display: flex;
  flex-direction: column;
}
.contact-address-contact {
  width: 100%;
  margin-right: 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-map-details .map-responsive {
  position: relative;
  padding-bottom: calc(var(--aspect-ratio, 0.5625) * 100%);
  margin: 4% 0%;
  height: 0;
}

.contact-map-details .map-responsive iframe {
  border: 0px;
  position: absolute;
  width: 100%;
  height: 100%;
}
.contact-wrapper-form input[type="reset"] {
  color: black;
  padding: 12px 20px;
  border: 1px solid red;
  border-radius: 4px;
  cursor: pointer;
}
.contact-wrapper-form input[type="reset"]:hover {
  background-color: red;
  color: whitesmoke;
}

.contact-wrapper-form input[type="submit"] {
  color: black;
  padding: 12px 20px;
  border: 1px solid rgb(1, 203, 1);
  border-radius: 4px;
  cursor: pointer;
}

.contact-wrapper-form input[type="submit"]:hover {
  background-color: rgb(1, 203, 1);
  color: whitesmoke;
}

/* ===============
   STRUCTURE
   =============== */

.contact-wrapper-form {
  border-radius: 5px;
  background-color: #191b1a;
  max-width: 100%;
  padding: 20px;
  margin: 50px auto;
}

.contact-wrapper-button {
  display: flex;
  justify-content: space-between;
}

/* ===============
   FORM CONTROLS
   =============== */

   .contact-wrapper-form input,
   .contact-wrapper-form select,
   .contact-wrapper-form textarea {
  font-size: 1.6rem;
}

.contact-wrapper-form input[type="text"],
.contact-wrapper-form select,
.contact-wrapper-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e14761;
  border-radius: 4px;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

.contact-wrapper-form input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #e14761;
  border-radius: 4px;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

.contact-wrapper-form textarea {
  font-family: sans-serif;
}

.contact-label-required {
  font-size: 1rem;
  color: red;
}
.contact-wrapper-form h2 {
  color: whitesmoke;
}
.contact-wrapper-form label {
  color: whitesmoke;
}
/* contact us work done */
/* footer work */
footer {
  clear: both;
  width: 100%;
  overflow: auto;
  background-color: #191b1a;
  text-align: center;
}
.first-footer p {
  color: whitesmoke;
}

.first-footer {
  margin: 0% 1%;
  color: whitesmoke;
  justify-content: space-between;
}

.first-footer-div1 {
  margin: 30px 0px;
}
.first-footer-div2 {
  margin: 50px 0px;
}
.first-footer-div3 {
  margin: 50px 0px;
}
/* .fbtn{background-color: #e14761;
color: whitesmoke;} */
/* line which is used in footer to divide */
hr {
  margin: 0px 5em;
  border: 1px solid grey;
  border-radius: 1px;
 
}
.second-footer {
  clear: both;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.second-footer-div1 {
  order: 1;
}
.second-footer-div1 {
  order: 2;
}
.second-footer-div3 {
  order: 3;
}
.second-footer p {
  color: whitesmoke;
  font-size: 1.4rem;
}
@media only screen and (min-width: 768px) {

  /* contact page */
  .contact-map-details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 20px 0px;
  }
  .contact-address-contact {
    width: 20%;
    margin-left: 5%;
    display: flex;

    flex-direction: column;
    column-gap: 20px;
  }
  .contact {
    margin-bottom: 150px;
  }
  .contact-map-details .map-responsive {
    overflow: hidden;
    position: relative;
    padding-bottom: 0; /* 16:9 */
    height: fit-content;
    margin: 0;
  }

  .contact-map-details .map-responsive iframe {
    display: block;
    max-width: 100%;

    position: relative;
    width: 600px;
    height: 450px;
  }
  .contact-wrapper-form {
    border-radius: 5px;
    background-color: #191b1a;
    max-width: 80%;
    padding: 20px;
    margin: 50px auto;
  }

/* project page */
  .project-gallery-image > .project-gallery {
    flex-basis: 90vh; /* width: 350px; */
  }
  .project-gallery-image .project-gallery img {
    object-fit: cover;
    width: 100%;
    height: 80%;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    vertical-align: middle;
  }
  .project-gallery-image {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8vh;
  }
  .project-gallery-image::after {
    content: "";
    flex-basis: 50vh;
  }
  /* about page */
  .about-content-pessage1 {
    display: flex;
    flex-direction: row;
  }
  .about-content-pessage1-div2 {
    width: 100%;
  }
  
}

@media only screen and (min-width: 1024px) {
  /* header of all pages */
  .navbar {
    display: flex;
    justify-content: space-between;
    margin: 1%;
  }
  .navbar a.icon {
    display: none;
  }
  .navbar #myLinks {
    display: flex;
    margin: 50px 18px;
  }
  .navbar a {
    padding: 10px 20px;
    display: inline;
  }
/* home page */
  .home-content-pessage1 {
    display: flex;
    flex-direction: row;
    position: relative;
    object-fit: fill;
    justify-content: space-between;
    margin: 1% 0%;
  }
  .home-content-pessage1-div1 {
    order: 0;
  }
  .home-content-pessage1-div2 {
    order: 1;
    position: relative;
    padding-bottom: 0; /* 16:9 */
    height: fit-content;
    margin: 0;
  }
  .home-content-pessage1-video {
    position: relative;
    width: 560px;
    height: 315px;
  }
  /* project page */
  .project-gallery-image .project-gallery img {
    object-fit: cover;
    width: 100%;
    height: 70%;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    vertical-align: middle;
  }
  .project-gallery-image {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4vh;
  }
  .project-gallery-image > .project-gallery {
    flex-basis: 44vh; /* width: 350px; */
  }
  /* contact page */
  .contact-address-contact {
    width: 50%;
    margin-left: 5%;
    display: flex;

    flex-direction: row;
    justify-content: space-between;
  }
  /* footer of all pages */
  footer {
    text-align: start;
  }
  .first-footer-div1 {
    flex-grow: 2;
  }
  .first-footer-div3,
  .first-footer-div2 {
    flex-grow: 1;
  }
  .first-footer,
  .second-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  .second-footer-div1 {
    order: 1;
    margin-right: 5%;
  }
  .second-footer-div2 {
    margin-right: 5%;
    order: 2;
  }
  .second-footer-div3 {
    order: 3;
  }
}
@media only screen and (min-width: 1200px) {
  /* make every page looks fine in big screens */
  nav,
  main,
  footer .mainfooter {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
  }
}
