body {
  margin: 0;
  background-color: #fffdf7;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-size: 18px;
}

main {
  max-width: 950px;
  margin: auto;
  padding: 0 20px;
  background-color: #fffdf7;
}

.trip {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

.row {
  display: flex;
}

.column {
  flex: 50%;
}

/* --- header --- */

.container {
  width: 80%;
  margin: 0 auto 20px;
}

header {
  background-color: #fffdf7;
}

/* clear fix */
header::after {
  content: '';
  display: table;
  clear: both;
}

.logo{
  float: left;
  padding: 10px 0;
  height: 80px;
}


/* --- nav bar --- */

nav {
  float: right;
}

/* list in the nav bar */
nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* list items in the nav bar */
nav li {
  /* float: left */
  display: inline-block;
  margin: 0 35px;
  padding-top: 55px;

  /* necessary for link hover animation */
  position: relative;
}

/* links in the nav bar */
nav a {
  color: #444;
  text-decoration: none;
  text-transform: uppercase;
}

/* hovering over links in the nav bar */
nav a:hover {
  color: #000;
}

nav a::before {
  content: '';
  display: block;
  height: 2px;
  background-color: #444;

  position: absolute;
  bottom: 0;
  width: 0%;

  transition: all ease-in-out 250ms;
}

nav a:hover::before {
  width: 100%;
}


/* --- hero banner --- */

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/chile-town.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  filter: brightness(90%);
}

.hero-content {
  position: relative;
}

/* hero banner for coming soon */
.herosoon {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.herosoon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/minnesota.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  filter: brightness(90%);
}


/* --- grid settings --- */

/* grid on trips page */
.maingrid {
  display: grid;
  gap: 40px;
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-flow: dense;
  margin-top: 80px;
}

.mainitem {
  text-align: center;
  font-size: large;
  font-weight: 400;
  padding-bottom: 35px;
  padding-top: 5px;
}

/* grid of sub-locations on location pages */
.tripgrid {
  display: grid;
  gap: 40px; 
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-flow: dense;
  margin-top: 60px;
}

.tripgridlarge {
  display: grid;
  gap: 40px; 
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-auto-flow: dense;
  margin-top: 60px;
}

.tripitem {
  text-align: left;
  font-size: 16px;
  padding: 0px;
  margin-bottom: 20px;
}

.gridlink {
  text-decoration: none;
}

.zoom {
  padding: 0px;
  transition: transform .2s;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.zoom:hover {
  transform: scale(1.1);
}


/* --- image gallery + lightbox --- */

.gallery {
  margin: 5px 30px;
  text-align: center;
}

.gallery img {
  transition: 0.2s;
  padding: 10px;
  height: 200px;
}

.gallery img:hover {
  transform: scale(1.05);
}

.gallerysmall {
  margin: 5px 30px;
  text-align: center;
}

.gallerysmall img {
  transition: 0.2s;
  padding: 10px;
  height: 140px;
}

.gallerysmall img:hover {
  transform: scale(1.05);
}

.gallerylarge {
  margin: 5px 30px;
  text-align: center;
}

.gallerylarge img {
  transition: 0.2s;
  padding: 10px;
  height: 380px;
}

.gallerylarge img:hover {
  transform: scale(1.05);
}

.gallerymedium {
  margin: 5px 30px;
  text-align: center;
}

.gallerymedium img {
  transition: 0.2s;
  padding: 10px;
  height: 180px;
}

.gallerymedium img:hover {
  transform: scale(1.05);
}


/* --- links --- */

.simple {
  text-decoration: none;
  color: #333333;
}


/* --- read more button settings --- */

.readmore {
  color: #494949 !important;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  background:  #fffdf7;
  padding: 10px;
  border: 1px solid #494949 !important;
  display: inline-block;
  transition: all 0.1s ease 0s;
  }

.readmore:hover {
  color: #ffffff !important;
  background: #c2b086;
  border-color: #c2b086 !important;
  transition: all 0.1s ease 0s;
  }


/* --- video settings --- */

video {
  margin: 20px auto;
  display: block;
  background-color: black;
}


/* --- contact settings --- */

/* Style inputs with type="text", select elements and textareas */
input[type=text], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px; /* Rounded borders */
  box-sizing: border-box; /* Make sure that padding and width stays in place */
  margin-top: 6px;
  margin-bottom: 30px;
  resize: both;
  font-family: "Open Sans";
}

/* Style the submit button with a specific background color etc */
input[type=submit] {
  background-color: #4CAF50;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
  font-size: 16px;
}

/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
  background-color: #45a049;
}

/* Add a background color and some padding around the form */
.contact-container {
  border-radius: 5px;
  padding: 20px;
  margin: 20px 50px;
}

label {
  font-family: "Open Sans";
  font-size: 16px;
}


/* --- header settings --- */

/* hero image titles (class of h1) */
.hero-title {
  padding-top: 40px;
  margin-bottom: 0px;
  padding-bottom: 0px;
  font-size: 50px;
}

/* hero image title on coming soon page (class of h1) */
.herosoon-title {
  padding-top: 140px;
  font-family: "Amatic SC";
  margin-bottom: 0px;
  padding-bottom: 0px;
}

/* hero image subtitle */
h4 {
  color: #333333;
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 30px;
  text-align: center;
  font-family: "Amatic SC";
}

/* location headers */
h1 {
  color: #333333;
  text-align: center;
  font-size: 70px;
  padding-bottom: 10px;
  font-family: "Amatic SC";
}

/* location titles on trips page */
/* activity headers */
h2 {
  color: #333333;
  border-bottom: 2px solid #333333;
  padding: 0;
  margin-top: 10px;
  margin-bottom: 5px;;
  text-align: center;
}

.padded{
  margin-top: 100px;
  text-align: left;
}

.first {
  margin-top: 60px;
  text-align: left;
}

/* sub location titles on main location pages */
h3 {
  color: #333333;
  border-bottom: 2px solid #333333;
  padding: 0;
  margin: 10px 0px 0px 0px;
  font-size: 22px;
  text-align: center;
  text-transform: uppercase;
}

/* date subtitle on trips page */
.subtitle {
  color: #5c5c5c;
  text-align: left;
  padding: 0;
  margin: 0;
  text-transform: uppercase;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-size: 16px;
  font-weight: bolder;
}

/* list of sub-locations below main location */
.subtitle2 {
  columns: #333333;;
  text-align: center;
  padding: 0;
  margin: 0;
  text-transform: uppercase;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-size: 20px;
  color: #333333;
  font-weight: bolder;
}

/* list of travellers below main location */
.subtitle-italic {
  text-align: center;
  padding-top: 5px;
  margin: 0;
  font-style: italic;
  font-size: 15px;
  color: grey;
  opacity: 80%;
}


/* --- text settings --- */

p {
  color: #333333;
  text-align: left;
  font-family: "Open Sans";
}

/* most text */
.blog {
  margin: 0 50px;
  font-family: "Open Sans";
  font-size: 15.5px;
  line-height: 1.6;
}

.emphasize {
  font-family: "Amatic SC";
  font-size: 50px;
}

/* descriptions in sub-location grid */
.localedesc {
  text-align: justify;
  font-size: 15px;
}

/* return to location button */
.back {
  text-align: center;
  margin-top: 80px;
  text-decoration: underline;
  color: darkslateblue;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}


/* --- itinerary settings --- */

.itinerary {
  font-family: "Open Sans";
  color: #333333;
  font-weight: bolder;
}


/* --- image settings --- */

img {
  max-width: 100%;
  margin-top: 10px;
}

.map {
  border-color: grey;
  border-width: 5px;
  border-style: double;
  margin-bottom: 15px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.center {
  display: block;
  margin: 10px auto 20px auto;
  width: 89%;
}

.centersmall {
  display: block;
  margin: 10px auto;
  width: 50%;
}

figure img {
  display: block;
  margin: 10px auto 0px auto;
  width: 89%;
}

figcaption {
  font-size: small;
  font-style: italic;
  margin-top: 5px;
  text-align: center;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  color: #2e2e2e;
}


/* --- font awesome icon settings --- */

.fas{
  padding-right: 20px;
  opacity: 80%
}


/* --- footer settings --- */

footer {
  color: darkslategray;
  background-color: #f5e9c4;
  padding: 20px;
  text-align: center;
  margin-top: 60px;
  font-size: 14px;
}

/* home page footer */
.main {
  margin-top: 0px;
}


/* changes based on browser size */

@media screen and (max-width: 600px) {
  .column {
    width: 100%;
  }
}
