* {
  font-family: Arial, Helvetica, sans-serif;
  color: whitesmoke;
}

body {
  display: grid;
  grid-template-columns: 10% auto 10%;
  grid-template-rows: repeat(5, auto);
  background-color: black;
}

img {
  display: block;
  width: 100%;
  height: auto;
}
p {
  line-height: 1.2rem;
}

figcaption {
  font-size: 1rem;
  margin-left: 1rem;
  font-style: italic;
}
caption > a {
  text-decoration: none;
}

/* NAV */
nav {
  grid-column: 1/4;
  grid-row: 1/2;
  background-color: rgb(240, 186, 26);
  list-style-type: none;
}

nav > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 1rem;
}

nav > ul > li:nth-of-type(1) {
  margin-right: auto;
}

nav > ul > li:nth-of-type(5) {
  margin-left: auto;
}

nav > ul > li > a {
  display: inline-block;
  text-decoration: none;
  text-shadow: black 0.1rem 0.15rem 0.3rem;
  font-weight: bold;
  font-size: 2rem;
  padding: 1rem 1rem;
  border-radius: 0.5rem;
}

nav > ul > li > a:hover {
  box-shadow: 0 0 1rem whitesmoke;
  color: black;
  text-shadow: whitesmoke 0.1rem 0.15rem 0.3rem;
  transition-duration: 0.2s;
}

#logo {
  border-radius: 0.5rem;
}

#search {
  display: inline-block;
  font-size: 1rem;
}

/*--------------------
LINKPANEL
---------------------*/

#linkpanel {
  text-align: left;
  display: flex;
  flex-flow: wrap row;
  gap: 1rem;
  position: static;
  padding: 5% 0;
}

#linkpanel a {
  text-decoration: none;
  flex-basis: 15rem;
  flex-grow: 1;
}

#linkpanel a img {
  min-width: 25rem;
}

.jebo-linkpanelitem {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.jebo-tile-info {
  margin: 1rem 0;
  padding-bottom: 2rem;
  position: relative;
  flex-direction: column;
  width: 100%;
}

.jebo-tile-info h1 {
  font-size: 2rem;
  font-weight: bold;
  margin: 0.25rem 0;
}

.jebo-tile-info p {
  text-align: justify;
  position: relative;
  line-height: 1.2rem;
}

/* HEADER */
header {
  grid-column: 1/4;
  grid-row: 2/3;
  background-position: 50% 47%;
  height: 20rem;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

#index-header {
  background-image: url("/assets/pictures/jamie-davies-Sydney-air-unsplash.webp");
}
#trip-opera-bridge-header {
  background-image: url("/assets/pictures/photoholgic-OperaBridge-unsplash.webp");
}
#trip-botanic-garden-header {
  background-image: url("/assets/pictures/andy-wang-BotanicGarden-unsplash.webp");
}
#trip-bondi-beach-header {
  background-image: url("/assets/pictures/road-trip-with-raj-bondi-beach-unsplash.webp");
}
#trip-national-park-header {
  background-image: url("/assets/pictures/ayush-jain-national-park-unsplash.webp");
}
#trip-blue-mountains-header {
  background-image: url("/assets/pictures/josh-withers-blue-mountains-header-unsplash.webp");
}

#trip-taronga-zoo-header {
  background-image: url("/assets/pictures/jessy-tan-taronga-zoo-header2-unsplash.webp");
}

.jebo-container {
  position: relative;
  text-align: center;
  size-adjust: auto;
}

/*Header title */
.jebo-centered {
  color: rgb(240, 186, 26);
  text-shadow: 0.2rem 0.2rem 0.01rem black;
  font-size: 4rem;
  position: absolute;
  top: 8rem;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*Header figcaption */
.jebo-bottom-left {
  position: absolute;
  bottom: 2rem;
  left: 2%;
  background-color: black;
  opacity: 70%;
  padding: 0.2rem;
  border-radius: 0.5rem 0.5rem;
}

/* MAIN */
body > main {
  grid-column: 2/3;
  grid-row: 3/4;
  gap: 2rem;
  text-align: justify;
}

body > main > section {
  display: flex;
  align-content: stretch;
  flex-direction: column;
  margin-top: 2rem;
}

body > main h2 {
  margin: 1rem 0;
  font-size: 2rem;
  flex-wrap: nowrap;
  flex-basis: 100%;
}

body > main a {
  color: rgb(240, 186, 26);
}

.jebo-text-picture {
  display: flex;
  flex-flow: wrap;
  justify-content: space-between;
  margin-top: 2rem;
}

.jebo-text-picture p {
  flex-grow: 1;
}
.jebo-text-picture img {
  position: relative;
  flex-grow: 2;
  flex-basis: 8rem;
  margin: 0 1rem;
}

/*--------------------
Table
---------------------*/
table,
th,
td {
  border: 0.1rem solid whitesmoke;
  padding: 0.5rem;
  text-align: center;
  vertical-align: middle;
}

table {
  margin: 1rem;
  height: fit-content;
}

caption {
  display: table-caption;
  text-align: right;
  padding: 1rem;
}

th:nth-child(1) {
  border-top: 0.1rem solid black;
  border-left: 0.1rem solid black;
}
/*Firefox: */
#bondi-coastwalk thead tr {
  writing-mode: sideways-lr;
}

/*--------------------
Map
---------------------*/
#map {
  width: 100%;
  height: 20rem;
  background-color: black;
  margin-top: 2rem;
}
.leaflet-popup-content {
  color: black;
  font-size: 1rem;
}
/*--------------------
Comment area
---------------------*/

.jebo-inputcommentflex {
  display: flex;
  flex-flow: wrap;
  justify-content: space-between;
  margin: 1rem, 0;
}

.jebo-comment-container {
  display: flex;
  justify-content: flex-end;
  flex-basis: 30rem;
  flex-grow: 1;
  text-align: left;
  padding: 1rem, 0;
  margin: 1rem;
  max-width: 50rem;

  border: whitesmoke 0.07rem solid;
}
.jebo-comment-container cite {
  font-style: italic;
  font-size: 1, 2rem;
  min-width: 4rem;
  padding: 1rem 0 0 1rem;
  text-decoration: underline;
}
.jebo-comment-container p:first-of-type {
  margin-right: auto;
  padding: 0, 1rem;
}
.jebo-comment-container p:nth-of-type(2) {
  min-width: 6rem;
}

.jebo-comment-container img {
  height: 4rem;
  width: auto;
  margin-top: 0.4rem;
}
.jebo-comment-container p:last-of-type {
  margin-left: 1rem;
  min-width: 4rem;
  font-size: 1rem;
}

form {
  flex-basis: 20rem;
}

/*CONTACT Page */
body > main > form > fieldset,
p {
  margin: 1rem;
}

form legend {
  padding: 0.5rem;
}
input[type="text"],
input[type="email"],
input[type="submit"],
input[type="reset"],
input[type="search"] {
  background-color: whitesmoke;
  color: black;
  margin-right: 1rem;
  border-radius: 0.5rem;
  padding: 0.5rem;
}

textarea {
  padding-top: 0.5rem;
  padding-left: 0.5rem;
  color: black;
  background-color: whitesmoke;
  border-radius: 0.5rem;
}

/* FOOTER */
footer {
  grid-column: 2/3;
  grid-row: 4/5;
  display: flex;
  justify-content: center;
  border-top: grey solid 0.1rem;
  margin: 2rem;
  padding: 2rem;
}

@media screen and (max-width: 700px) {
  body > main {
    text-align: left;
  }
  header {
    max-height: 20rem;
  }
  h1 {
    font-size: 1rem;
  }

  .jebo-text-picture p {
    margin-right: 1rem;
    flex-basis: 18rem;
  }
  .jebo-text-picture img {
    max-width: 20rem;
  }
  .jebo-text-picture figcaption {
    max-width: 20rem;
  }
  .jebo-text-picture {
    justify-content: center;
  }
  #linkpanel a img {
    min-width: 20rem;
  }
  header {
    max-height: 20rem;
  }
  body {
    grid-template-columns: 3% auto 3%;
  }
  .jebo-centered {
    font-size: 3rem;
  }
  #bondi-coastwalk tr,
  td,
  th {
    padding: 0.3rem 1px;
    font-size: 0.8rem;
  }
  .jebo-comment-container {
    flex-direction: column;
  }
}

@media screen and (max-width: 850px) {
  nav > ul {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media screen and (min-width: 700px) {
  h1 {
    font-size: 5rem;
  }
  .jebo-text-picture p {
    flex-basis: 20rem;
  }

  .jebo-text-picture img {
    max-width: 50rem;
  }
  h2 {
    font-size: 2rem;
  }
  header {
    max-height: 20rem;
  }
}

@media screen and (min-width: 2000px) {
  #linkpanel a img {
    width: 100%;
    min-width: 40rem;
  }
}
@media screen and (min-width: 3000px) {
  #search {
    font-size: 2rem;
  }
  #logo {
    width: 200%;
  }
  .jebo-navbar-item {
    font-size: 5rem;
  }
  nav a {
    font-size: 10rem;
  }
  figcaption {
    font-size: 1.6rem;
  }

  #linkpanel a img {
    min-width: 50rem;
  }
  .jebo-text-picture h2 {
    font-size: 4rem;
  }

  body h2 {
    font-size: 5rem;
  }

  p {
    font-size: 2rem;
    line-height: 1.5;
  }

  .jebo-text-picture img {
    max-width: 80rem;
  }

  .jebo-tile-info p {
    line-height: 2.5rem;
  }
  .jebo-tile-info h1 {
    line-height: 4rem;
    font-size: 3rem;
  }

  .jebo-navbar-item {
    font-size: 3rem;
  }

  fieldset,
  textarea,
  input[type="text"],
  input[type="email"],
  input[type="submit"],
  input[type="reset"] {
    font-size: 2rem;
  }

  input[type="radio"],
  input[type="checkbox"] {
    height: 2rem;
    width: 2rem;
  }
}
