/* Styles for my travel website */

* {
  margin: 0;
  padding: 0;
}

body {
  background: rgb(147, 168, 161);
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  font-weight: 500;
  background-image: url("../images/backgroundmed.png");
}

#wrapper {
  background-color: rgba(147, 168, 161, 0.92);
  width: 940px;
  margin: 160px auto;
  /* padding: 10px; */
  overflow: hidden;
}

header {
  margin: 0px auto;
  padding: 10px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
}

nav {
  height: 50px;
  line-height: 50px;
  background: #add8e6;
}

nav li {
  list-style-type: none;
  float: left;
  text-align: center;
  width: 50%;
}

nav a {
  text-decoration: none;
  color: #ffffa9;
  display: block;
}

nav a:hover {
  background: #ffffa9;
  color: black;
}

.home li:nth-child(1) a,
.big li:nth-child(2) a {
  background-color: #79a5d3;
  color: black;
  font-weight: bold;
}

/* if you want the containers/boxes to display side by side, 
you need to float one to the left (main),
and one to the right (aside). */
main {
  width: 580px;
  /* background: lightgreen; */
  float: left;
  margin-top: 20px;
}

footer {
  height: fit-content;
  /* background: yellow; */
  /* use "clear" when the containers are floating */
  clear: both;
  line-height: normal;
  border-top: 1px dotted #ffffa9;
  font-size: 1em;
  font-weight: 700;
  margin: 10px auto;
}

footer li {
  /* I think using "display" element is better than using "float" element */
  /* float: left; */
  display: inline-block;
  /* margin: top, right, bottom, and left */
  margin-right: 30px;
  color: #ffffa9;
  /* removes the bulleted point/ordered/unordered list */
  list-style-type: none;
}

footer a {
  color: #ffffa9;
}

footer ul {
  margin-left: 20px;
}

/* ALL of your images wil have a max-width of 100% */
/* img {
  max-width: 100%;
  display: block;
} */

img {
  max-width: 100%;
  display: block;
}

img.left {
  float: right;
  max-width: 45%;
  margin-left: 10px;
  margin-bottom: 10px;
  padding-right: 10px;
}

img.right {
  float: left;
  max-width: 45%;
  margin-right: 10px;
  margin-bottom: 10px;
  padding-left: 10px;
}

/* figure {
  margin-bottom: 10px;
  margin-top: 10px;
} */

figcaption {
  background-color: black;
  color: white;
  font-size: 0.875em;
  padding: 5px;
  font-style: italic;
  margin-bottom: 20px;
}

/* class inside big.html */
.center {
  /* no float center!! */
  margin: 20px auto;
  /* we must change the inline image to a block level image */
  display: block;
  /* for paragraphs don't forget to use: */
  text-align: center;
  font-weight: bold;
  font-size: 1.5em;
}

.center a {
  color: darkgreen;
}

/*TYPOGRAPHY*/
h1,
h2,
h3 {
  margin-bottom: 10px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.1em;
  color: #ffffa9;
  text-align: center;
}

h1 {
  font-weight: 200;
  font-size: 2.5em;
  text-align: left;
  background-color: #c0c0c0;
}

h2 {
  color: #555;
  font-size: 2em;
  background-color: #9e7574;
}

h3 {
  /* color: white; */
  background-color: #33472b;
  font-size: 1.78em;
  font-weight: 200;
  margin-top: 51px;
  /* text-transform: uppercase; */
}

p {
  margin-bottom: 20px;
  line-height: 1.5em;
  /* font-weight: 200; */
}

aside p {
  font-size: 0.9em;
}

a {
  text-decoration: none;
}
