/* GLOBAL STYLLING */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: "Raleway", sans-serif;
  color: rgb(49, 49, 49);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 4.8rem;
}

h3 {
  font-size: 3rem;
}

h4,
h5 {
  font-size: 1.8rem;
}

li,
button,
input,
label,
p {
  font-size: 1.7rem;
}

a {
  color: rgb(220, 220, 220);
  text-decoration: none;
}

button {
  background-color: rgb(237, 147, 0);
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: 0.5s ease-in-out;
}

/* NAV AND HERO SECTION */

.main-head {
  background-color: rgb(68, 68, 68);
  color: rgb(220, 220, 220);
  position: sticky;
  top: 0;
  z-index: 4;
}

nav {
  min-height: 10vh;
  display: flex;
  width: 90%;
  margin: auto;
  align-items: center;
  flex-wrap: wrap;
}

nav ul {
  display: flex;
  padding: 2rem;
  list-style: none;
  flex: 1 1 40rem;
  justify-content: space-around;
  align-items: center;
  text-transform: uppercase;
  flex-wrap: wrap;
}

nav ul li {
  font-size: 1.6rem;
  font-weight: bold;
  text-shadow: rgba(0, 0, 0, 0.3) 1px 2px 2px;
}

.logo {
  flex: 1 1 40rem;
  text-shadow: rgba(0, 0, 0, 0.3) 1px 2px 2px;
  font-family: "Anton", sans-serif;
  font-weight: normal;
}

#login-but {
  color: rgb(237, 147, 0);
  padding: 0.5rem 1.5rem;
  border: 1px solid rgb(237, 147, 0);
  border-radius: 5px;
}

.hero {
  background: url("./img/glencoe_mountain_view.jpg");
  min-height: 90vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: white;
  text-shadow: rgb(0, 0, 0) 3px 3px 3px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h3 {
  padding: 3rem;
}

.hero button {
  padding: 1rem 3rem 1.3rem 3rem;
  border: 1px solid transparent;
}

.hero button:focus,
.card button:focus,
.safari-text button:focus,
.form-wrapper button:focus {
  background-color: white;
  color: rgb(49, 49, 49);
  text-shadow: rgba(0, 0, 0, 0.3) 1px 1px 1px;
  border: 1px solid rgb(237, 147, 0);
}

form input:focus,
form textarea:focus {
  border: 1px solid rgb(237, 147, 0);
}

.hero button:hover,
.card button:hover,
.safari-text button:hover,
.form-wrapper button:hover {
  background-color: transparent;
  color: rgb(49, 49, 49);
  text-shadow: rgba(0, 0, 0, 0.3) 1px 1px 1px;
  border: 1px solid rgb(237, 147, 0);
}

.hero button:hover,
.form-wrapper button:hover {
  background-color: white;
}

/*  LUXURY TOURS SECTIONS */

#luxury-tours,
#african-safari,
#about,
.form-wrapper,
#login-form {
  text-shadow: rgba(0, 0, 0, 0.3) 1px 1px 1px;
}

.luxury-head,
.safari-head {
  min-height: 30vh;
  padding: 10rem 5rem 0rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: 400;
}

.luxury-head h2 {
  padding-bottom: 2rem;
}

.cards {
  width: 90%;
  margin: auto;
  display: flex;
  min-height: 70vh;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}

.card {
  flex: 1 1 25rem;
  min-height: 50vh;
  margin: 1rem 2rem 5rem 2rem;
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1), 0px 20px 20px rgba(0, 0, 0, 0.1);
}

.card h4 {
  padding: 1rem;
  font-size: 1.7rem;
  color: #073488;
}

.card p {
  font-size: 1.2rem;
}

.card-img-1 {
  background: url("./img/new_zealand_hobbiton_red_door_house_0.jpg");
  min-height: 30vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.card-img-2 {
  background: url("./img/turkey_trojan_horse.jpg");
  min-height: 30vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.card-img-3 {
  background: url("./img/ireland_ancient_castle_in_county_clare_ireland.jpg");
  min-height: 30vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.card-img-4 {
  background: url("./img/spain_granada_view_of_the_famous_alhambra_1.jpg");
  min-height: 30vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.card button,
.safari-text button {
  font-size: 1.5rem;
  margin-top: 1rem;
  padding: 0.5rem 3rem;
  border: 1px solid transparent;
}

/* SAFARI SECTION */

.safari-hero {
  min-height: 65vh;
  background: url("./img/africa_lioness_and_cubs_h2_2048px_0.jpg");
  background-position: center;
  background-size: cover;
  margin-top: 5vh;
  position: relative;
}

.safari-text {
  width: 25%;
  min-height: 50vh;
  background: whitesmoke;
  position: absolute;
  right: 5%;
  top: 15%;
  text-align: center;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1), 0px 20px 20px rgba(0, 0, 0, 0.1);
}

.safari-text p {
  padding: 1rem;
}

.safari-text ol {
  text-align: justify;
  padding: 2rem;
}

/* ABOUT SECTION */

.about-main {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
}

.about-img {
  background: url("./img/africa-travel.jpg");
  background-size: contain;
  background-position: bottom;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 50vh;
  flex: 3 1 50rem;
}

.about-text {
  flex: 1 1 50rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text h2 {
  padding-bottom: 2rem;
}

.about-text p {
  padding: 2rem 5rem 0 0;
  text-align: justify;
  text-indent: 4rem;
}

/* CONTACT SECTION */

#login {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), transparent),
    url("./img/new-york-page.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.form-wrapper {
  margin: 15rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: rgba(0, 0, 0, 0.192);
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1), 0px 20px 20px rgba(0, 0, 0, 0.1);
  width: 40%;
  padding: 2rem;
  z-index: 6;
}

.form-items {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-head {
  text-align: center;
  padding-bottom: 2rem;
}

.cloud {
  position: absolute;
  top: 0%;
  right: 0%;
}

.moving-cloud-1 {
  animation: cloudAnimation-1 10s infinite alternate ease-in-out;
  z-index: 1;
}

.moving-cloud-2 {
  top: -15%;
  right: -20%;
  opacity: 0.5;
  width: 100%;
  animation: cloudAnimation-2 10s infinite alternate ease-in-out;
}

form input,
form textarea {
  background: rgba(0, 0, 0, 0.144);
  border: 1px solid transparent;
  margin: 0.5rem;
  width: 50rem;
}

.name-form label::after,
.email-form label::after {
  content: " * ";
  color: #ff0000;
  font-size: 2rem;
}

.form-wrapper button {
  width: 10rem;
  padding: 0.5rem 0 0.7rem 0;
  border: 1px solid transparent;
  margin-top: 2rem;
}

@keyframes cloudAnimation-1 {
  from {
    transform: translate(0%, 0%);
  }

  to {
    transform: translate(10%, -10%);
  }
}

@keyframes cloudAnimation-2 {
  from {
    transform: translate(0%, 0%);
  }

  to {
    transform: translate(20%, 0%);
  }
}

/* MEDIA QUERIES */

@media screen and (max-width: 1024px) {
  html {
    font-size: 40%;
  }

  body {
    text-align: center;
  }

  #logo {
    padding: 1rem;
  }

  .hero {
    text-align: center;
  }

  .card {
    min-height: 45vh;
  }

  .safari-text {
    width: 90%;
    min-height: 10%;
  }
  #login {
    display: flex;
    justify-content: center;
  }

  .form-wrapper {
    width: 50vw;
  }
  .cloud {
    display: none;
  }

  .form-wrapper {
    width: 90%;
    height: 50%;
    padding: 3rem;
  }
  form input,
  form textarea {
    width: 60rem;
    height: 5rem;
  }

  form textarea {
    height: 20rem;
  }
}
