@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --button-color: #223344;
}

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

body,
html {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
}

.container {
  display: flex;
  flex-direction: column;
  background-color: #f2f9fe;
  margin: 0 20px;
  width: 100%;
  height: 100%;
}
.header-container {
  margin-bottom: 30px;
}
.header-list {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 10px 72px 0 72px;
}
ul {
  list-style-type: none;
}
.header-links {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.header-links a {
  padding: 0 10px 0 10px;
  text-decoration: none;
}
/* when link is visited */
a:visited {
  color: #223344;
}
/* when you hover with the mouse */
a:hover {
  color: #4ca154;
}
/* when link is active */
a:active {
  color: #2a4dd0;
}

.screen-mode-toggle {
  display: flex;
  flex-direction: row;
  background-color: var(--button-color);
  border-radius: 20px;
  border: none;
  width: 50px;
}

.author-info {
  font-size: 14px;
  text-align: center;
  margin-top: 16px;
  color: rgb(55, 65, 81);
}

/* THIS WHERE THE HEADER END */

/* THIS IS THE HERO-SECTION START */

.hero-section-container {
  display: flex;
  justify-content: center;
}
.hero-section-container > .hero-section {
  flex: 1;
}
.hero-section-container :last-child {
  flex: 1;
}
.hero-image {
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-slug {
  text-transform: uppercase;
  font-size: 1.125rem;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 500;
}

.hero-section h1 {
  font-size: 3.5rem;
  /* font-size: 16pxrem; */
  font-weight: 800;
}
.btn-hero {
  background-color: #2a4dd0;
  padding: 16px;
  border-style: none;
  border-radius: 8px;
  width: 35%;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 16px;
  margin: 70px 0 15px 0;
  transition: transform 1.5s ease;
}
.btn-hero:hover{
  background-color: #223344;
   transform: scale(1.3);
}
/*  */
/*THIS SECTION IS THE FEATURES SECTION
/*  */
.feature-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 25px;
}
.feature-items h4 {
  margin: 20px 0;
}
.features-container h2 {
  margin: 30px 40% 50px 0;
}
.media-container {
  display: flex;
  justify-content: center;
}
.media-text,
.gif-video {
  flex: 1;
}
.media-container > .gif-video {
  display: flex;
  justify-content: center;
  margin: auto;
  width: 80%;
}

.media-container > .media-text {
  /* display: flex; */
  align-content: center;
}
.gif-video img {
  width: 50%;
  border-radius: 8px;
}
/*  */

/*  */
.cta-section {
  display: flex;
  align-items: center;
  background-color: #223344;
  padding: 80px 50px;
}
.cta-section > .cta-text {
  flex: 1;
  color: thistle;
  margin-bottom: 20px;
}
.cta-section .newsletter-form {
  position: relative;
  display: flex;
  flex: 1;
  margin: auto;
  justify-content: center;
}
.newsletter-form input {
  width: 50%;
  height: 50px;
}
.newsletter-email-input + .btn-cta {
  height: 50px;
  width: 50px;
}
.newsletter-email-input {
  border: none;
  display: inline-flex;
  /* margin-left: 100px; */
}
.btn-cta {
  position: relative;
  right: 100px;
  top: 0;
  border: none;
  /* display: inline-flex */
  margin-left: 100px;
}
/*  */

.contact-form-section {
  background-color: #ffffff;
  margin: 20px auto;
  border-radius: 8px;
  padding: 20px 80px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
}
.contact-form input {
  margin: 16px 0;
  width: 100%;
  height: 30px;
  border: thin solid gray;
  border-radius: 6px;
}
.contact-form-inputs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.contact-form-inputs-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#phoneNumber {
  position: relative;
  border-left: none;
  width: 100%;
  border-radius: 0;
}
.select-dropdown {
  position: relative;
  height: 30px;
}
.btn-submit {
  background-color: #2a4dd0;
  padding: 8px;
  border-style: none;
  border-radius: 8px;
  margin-top: 20px;
  color: #ffffff;
}
input:focus {
  border: thin solid #2a4dd0;
  outline: none;
  box-shadow: 0 0 5px rgba(42, 77, 208, 0.3);
}

/*  */
.location-section-infos {
  display: flex;
  width: fit-content;
  justify-content: center;
  background-color: #ffffff;
  margin: 20px auto;
  border-radius: 8px;
  padding: 20px 80px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.location-section-infos table {
  padding: 20px;
}
td {
  padding: 20px;
  border-bottom: thin dashed #223344;
  text-align: center;
  border-collapse: collapse;
}
th {
  padding: 50px 0;
  border-bottom: thin dashed #223344;
  border-collapse: collapse;
}
/* THIS PART ONLY CONCERN THE ABOUT PAGE */

/*banner*/
.banner {
  margin-block-start: 0.83rem;
  margin-block-end: 0.83rem;
  overflow: hidden;
  border-radius: 18px;
}
.banner:hover .banner-img {
  transform: scale(1.3);
}
.banner-img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  transition: transform 1.5s ease;
}
.text-about-container {
  display: flex;
  margin: 30px 20px;
}
/*  */
/*THIS PART IS ENTAILS THE RESPONSIVE PROPERTY
/*  */

@media screen and (max-width: 700px) {
  .feature-items {
    grid-template-columns: repeat(1, minmax(120px, 1fr));
    gap: 10px;
  }
  .hero-section-container {
    flex-wrap: wrap;
    flex-direction: column-reverse;
  }
  .hero-image {
    background-image: url(./resources/hero-image-simple-homepage@2x.png);
  }
  .media-container {
    flex-direction: column;
  }
  .cta-section {
    flex-direction: column;
  }
  /* cta form */
  .newsletter-form {
    width: auto;
  }
  .newsletter-email-input + .btn-cta {
    width: 300px;
  }
  .newsletter-form input {
    width: 100%;
  }
  h2 {
    margin: 0;
  }
  /* contact */
  .contact-form-inputs {
    flex-direction: column;
  }
  .contact-form-section {
    padding: 20px 30px;
  }
  .contact-form-inputs {
    display: flex;
    flex-direction: row;
  }
  /* Table */
  .location-section-infos table {
    display: flex;
  }
  td {
    display: flex;
    padding: 10px;
    border-bottom: thin dashed #223344;
    border-right: thin dashed #223344;
    text-align: center;
    border-collapse: collapse;
  }
  th {
    display: flex;
    padding: 0;
    border-bottom: thin dashed #223344;
    border-collapse: collapse;
  }

  .author-info a {
    text-decoration: none;
  }
}
