/*common rule*/
:root {
  --light-grey: #e0e0e0;
  --grey: #474747;
  --green: #00aa6c;
  --pink: #ff5d5d;
}

html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  line-height: 1.4;
  font-family: "Trip Sans Reg";
  color: var(--grey);
}

i {
  font-family: "tripadvisor";
  font-size: 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h2.section-title span {
  font-family: "Trip Sans Med";
  color: black;
  letter-spacing: 0.02em;
  line-height: 1.2em;
  margin-bottom: 0.6em;
}

h1,
h2,
h2.section-title span {
  font-weight: bold;
}

h1 {
  font-size: 2em;
}
h2,
h2.section-title span {
  font-size: 1.3em;
}

h1 span {
  color: var(--pink);
}

h3 {
  font-size: 2em;
}

h4 {
  font-size: 1.1em;
  line-height: 1rem;
  margin-bottom: 0;
}

a {
  text-decoration: none;
  color: inherit;
  font-size: inherit;
}

.container {
  padding: 0 24px;
  max-width: 1328px;
  margin: auto;
}

section {
  margin: 32px 0;
}

.section-title {
  text-align: center;
  position: relative;
  margin-bottom: 40px;
}

.section-title span {
  padding: 0 20px;
  background-color: white;
}

.section-title:before {
  display: block;
  content: "";
  position: absolute;
  top: calc(50% - 2px);
  left: 0;
  right: 0;
  z-index: -1;
  border-bottom: 1px solid black;
}

/* MODAL */
.hidden {
  display: none !important;
}

.modal {
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.4);
  position: fixed;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
}

.modal .form-container {
  width: 100%;
  max-width: 328px;
  background-color: white;
  padding: 40px;
  position: relative;
  width: 100%;
  max-width: 420px;
}

.modal .form-container i {
  position: absolute;
  right: 15px;
  top: 15px;
  color: black;
  font-size: 16px;
}

.modal .form-container i:hover,
.modal form button {
  cursor: pointer;
}

.modal .form-container img {
  max-width: 210px;
  margin-bottom: 20px;
}

.modal .form-container p {
  margin-bottom: 20px;
}

.modal .form-container p:nth-of-type(2) {
  font-size: 14px;
}

.modal .form-container p:last-child {
  font-size: 12px;
}

.modal form {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.modal form input {
  margin: 6px 0 16px 0;
  height: 50px;
  border: 2px solid var(--light-grey);
  border-radius: 12px;
  padding: 0 10px;
  outline: none;
}

.modal form label {
  font-size: 14px;
  font-weight: bold;
}

.modal form button {
  color: white;
  outline: none;
  background-color: black;
  border: 0;
  border-radius: 12px;
  height: 50px;
  margin: 20px 0;
  font-weight: bold;
}

/* HEADER */
header .container {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 24px;
  color: black;
}

header nav,
header input {
  display: none;
}

header .logo {
  height: 30px;
}

header .logo-input {
  display: flex;
  align-items: center;
}

/*Main nav*/
#main-nav nav {
  margin: 10px 0;
  font-weight: bold;
  display: flex;
  overflow-x: scroll;
  padding-bottom: 10px;
}

#main-nav nav a {
  color: black;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid black;
  border-radius: 12px;
  padding: 8px 12px;
}

#main-nav nav a span {
  margin-right: 15px;
}

#main-nav nav a:not(:last-child) {
  margin-right: 15px;
}

/*BANNER*/
#banner {
  padding: 0;
  height: 276px;
}

#banner .col-1 {
  position: relative;
  height: 100%;
}

#banner .col-2 {
  display: none;
}

#banner img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

#banner img:hover {
  opacity: 0.5;
  transition: 0.5s;
}

#banner .all-photos {
  color: white;
  padding: 2px 8px;
  font-size: 12px;
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
}

#banner .all-photos i {
  font-size: 1.2em;
}

/*breadcrumbs*/

#breadcrumbs {
  display: none;
}

/*Presentation*/
#presentation .summary {
  margin-bottom: 54px;
  font-family: Georgia;
}

#presentation .create {
  color: black;
  background-color: var(--pink);
  padding: 30px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

#presentation .create p {
  margin-bottom: 20px;
}

#presentation .create button {
  color: white;
  background-color: black;
  border-radius: 20px;
  padding: 16px;
  outline: none;
  line-height: 20px;
  font-weight: bold;
  border: 0;
}

#presentation .trip img {
  width: 100%;
  object-fit: cover;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/*travel advice*/
#travel-advice .display-all {
  text-align: right;
  font-size: 14px;
  font-weight: bold;
}

#travel-advice .topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 20px;
  color: black;
  margin-bottom: 100px;
  font-size: 20px;
}

#travel-advice .topics img {
  height: 88px;
  display: block;
}

#travel-advice .topics a {
  padding: 0 8px;
  border: 2px var(--light-grey) solid;
  border-radius: 12px;
  width: calc(50% - 10px);
}

#travel-advice .topics a:nth-child(-n + 2) {
  margin-bottom: 20px;
}

/*TODOS*/
#todos .topic {
  margin-bottom: 30px;
}
#todos .topic a {
  font-weight: bold;
  font-size: 14px;
  margin: 16px 0 30px 0;
}

#todos .topic p {
  font-family: Georgia;
  margin-bottom: 14px;
  font-size: 18px;
}

#todos .carousel {
  display: flex;
  overflow-x: scroll;
}

#todos .carousel .todo {
  flex-shrink: 0;
  width: 285px;
}

#todos .carousel .todo:hover {
  opacity: 0.8;
}

#todos .carousel .todo:not(:last-child) {
  margin-right: 16px;
}

#todos .carousel .todo .picture {
  position: relative;
}

#todos .carousel .todo .picture > div {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
}

#todos .carousel .todo img {
  object-fit: cover;
  height: 190px;
  width: 100%;
  margin-bottom: 12px;
}

#todos .carousel .todo .description {
  font-size: 14px;
}

#todos .carousel .reviews {
  margin-bottom: 12px;
}

#todos .carousel .reviews i {
  color: var(--green);
  font-size: 16px;
}

/*FOOTER*/
footer {
  background-color: #faf1ed;
  padding: 30px 0;
  font-size: 12px;
}

footer img {
  width: 40px;
  float: left;
  margin: 0 12px 12px 0;
}

footer a {
  font-weight: bold;
  color: black;
  text-decoration: underline;
  margin-right: 12px;
  font-size: 16px;
}

footer p {
  margin-bottom: 6px;
}

footer form {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

footer form select:first-child {
  margin-right: 20px;
}

footer form select {
  flex: 1;
  outline: none;
  border: 2px solid var(--light-grey);
  border-radius: 6px;
  height: 30px;
}
