@import "fonts.css";
@import "tags.css";


/* --------------------------------------------------

    Global appearance

 -------------------------------------------------- */

body {
    margin: 0;
    font-family: 'AtkinsonHyperlegible', 'Helvetica', sans-serif;
    background-color: #eee;
}

h1 {
  font-family: "AtkinsonHyperlegible";
  font-weight: bold;
  font-size: 2em;
}

h2 {
    font-family: "AtkinsonHyperlegible";
    font-weight: bold;
  font-size: 1.8em;
}

h3 {
    font-family: "AtkinsonHyperlegible";
    font-weight: bold;
  font-size: 1.4em;
}

h4 {
    font-family: "AtkinsonHyperlegible";
    font-weight: bold;
  font-size:  1.2em;
}

h5 {
    font-family: "AtkinsonHyperlegible";
    font-weight: bold;
  font-size:  1.1em;
}

h6 {
    font-family: "AtkinsonHyperlegible";
    font-weight: bold;
  font-size:  1em;
}

a {
    color: gray;
}


/* --------------------------------------------------

    Header & navigation bar

 -------------------------------------------------- */

header {
    width: 100%;

    margin: 0;
    padding: 0;

    align-items: center;
    overflow: hidden;

    background-color: #3D9876;
}

header a {
    color: #ddd;
}

.header-tall {
    min-height: 30vh;

    background:url(../img/bg.jpg); /* but this will usually be overwritten in the html*/
    /*background-size:cover;*/
    /*background-position:center;*/
}

.header-short {

}

.navbar-wrapper {
    max-width: 50rem;
    margin: 0 auto;
    padding: 0 min(3em,10vw);
}

.navbar-content {
    padding: 3em 0 1em 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

.navbar-lhs {
    padding-left: 0;
    padding-right:  20px;

    font-size: min(2em,8vw);
    font-family: 'AtkinsonHyperlegible';
    font-weight: bold;
}

.navbar-rhs {
  padding: 0;
  margin-top: auto;

  font-size:  min(1.5em,6vw);
  font-family: 'AtkinsonHyperlegible';
  font-weight: bold;
}

.navbar-content ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navbar-content li {
    float: left;
}

.navbar-content a {
    display: block;
    text-align: center;
    text-decoration: none;
}

.navbar-rhs a {
    padding: 10px 15px 10px 0px;
}

.navbar-content a:hover {
    color: #555;
}

.tagbar-wrapper {
    max-width: 50rem;
    margin: auto auto 0 auto;
    padding: 0 3em;
}

.tagbar-content {
    padding: 1em 0;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: right;
}

.header-tag {
    float: left;
    background-color: white;
    border-radius: 12px;
    height: 24px;
    margin: 5px;
    padding: 2px;
}

@media screen and (max-width: 500px) {
    .navbar-wrapper {
        padding: 0 min(1em,5vw);
    }
}


/* --------------------------------------------------

    Page titles (inside a header-tall)

 -------------------------------------------------- */

.title-wrapper {
    max-width: 50rem;
    margin: 8vh auto 5vh auto;
    padding: 0 3em;

    text-align: center;
}

.title {
  margin: 0;
  padding: 0;

  font-size: min(10vw, 3em);
  color: #222;
}

/*.subtitle {
  font-size: min(5vw, 2em);
  margin: 0;
  padding: 0;
}*/


/* --------------------------------------------------

    Page layout

 -------------------------------------------------- */

.content-wrapper {
    max-width: 50rem;
    margin: 0 auto;
    padding: 0 min(3em,10vw) 2em min(3em,10vw);
}

.content {

}

@media screen and (max-width: 500px) {
    .content-wrapper {
        padding: 0 min(1em,10vw) 2em min(1em,5vw);
    }
}


/* --------------------------------------------------

    Page content

 -------------------------------------------------- */

.page-subtitle {
  color: gray;
}

.content > img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

img.generic-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.generic-image-caption {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;

    padding-bottom: 10px;

    color: #aaa;
    text-align: center;
}

/* --------------------------------------------------

    Page content - list pages

 -------------------------------------------------- */

.list {
    width: 100%;
    padding:0;
}

.list li {
    width: 100%;
    min-height: min(100px,50vw);
    margin-bottom: 1em;

    display: flex;
    flex-direction: row; /* change to column with a media query*/
    gap: 1em;  /* change to 0 with a media query*/

    list-style: none;
}

.list-item-img {
    float: left;
    width: min(150px,75vw);
    height: min(100px,50vw);
    object-fit: cover;
}

@media screen and (max-width: 500px) {
  .list li {
    flex-direction: column;
    gap: 0.5em;
  }

  .list-item-img {
    width: 100%;
    height: auto;
  }
}

.list-item-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 0.5em;
}

.list-item-title {
    font-family: 'AtkinsonHyperlegible';
    font-weight: bold;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #222;
}

.list-item-subtitle {
    font-size: 1em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #555;
    opacity: 0.7;
}

.list-item-tags-wrapper {

}

.list-item-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: left;
}

.list-item-tag {
  vertical-align: center;
    text-decoration: none;
    color: white;
    font-size: 0.8em;
    height: 1em;
    margin: 0 0.5em 0.5em 0;
    padding: 0.5em;

    border-radius: 12px;

    white-space: nowrap;
}

.project-list-item {
    filter: grayscale(70%);

    display: flex;
    align-items: center;
    justify-content: center;

    height: 100px;
}

.project-list-item:hover {
    filter: grayscale(0%)
}

.project-list-item-image {
    background-size: cover;
    background-position: center;
    text-decoration: none;
    text-align: center;
    color: #222;
    height: 100%;
    width: 100%;
}

.project-list-item-title {
    font-size: 2em;
    font-weight: bold;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* --------------------------------------------------

    Page content - trip pages

 -------------------------------------------------- */

.topo-map-iframe {
    width:  100%;
}

.elevation-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

img.trip-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.trip-image-caption {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;

    padding-bottom: 10px;

    color: #aaa;
    text-align: center;
}

ul.trip-route {
    list-style-type: none;
    padding-left: 0;
}

ul.trip-route-day {
    list-style-type: none;
    padding-left: 20px;
}

.trip-route li {
    font-family: 'AtkinsonHyperlegible';
    font-weight: bold;
    font-style: italic;
    margin-top: 5px;
    margin-bottom: 5px;
}

.trip-route-day li {
    font-family: 'AtkinsonHyperlegible';
    margin-top: 5px;
    margin-bottom: 5px;
}

.trip-route-day-time {
    font-family: 'AtkinsonHyperlegible';
    font-weight: bold;
}

.trip-route-description {
    padding-left: 10px;
    margin-top: 0px;
    margin-bottom: 0px;
    color:  gray;
}


/* --------------------------------------------------

    Page content - research pages

 -------------------------------------------------- */

.academic-list {
    padding: 0 0 10px 30px;
    margin: 0;
}

.academic-list li {
    margin: 0 0 10px 0;
}

.academic-title {
    font-family: 'AtkinsonHyperlegible';
    font-weight: bold;
}

.academic-subtitle {
    font-family: 'AtkinsonHyperlegible';
    font-style: italic;
    font-size: 0.9em;
}

.academic-info {
    font-size: 0.8em;
}

span.separator::after {
    content: "\25AA";
    color: #111;
}

/* --------------------------------------------------

    Annual peaks

 -------------------------------------------------- */

 .annual-peaks-h2 {
    overflow: hidden;
    text-align: center;
    margin: 0;
    font-weight: 100
  }
  
  .annual-peaks-h2::before,
  .annual-peaks-h2::after {
    background-color: #000000ae;
    content: "";
    display: inline-block;
    height: 1px;
    position: relative;
    vertical-align: middle;
    width: 50%;
  }
  
  .annual-peaks-h2::before {
    right: 0.5em;
    margin-left: -50%;
  }
  
  .annual-peaks-h2::after {
    left: 0.5em;
    margin-right: -50%;
  }