/* UNIVERSAL */
:root {
  --primary-trim-color: rgba(2, 0, 148, 0.2);
  --primary-bg-color: rgb(241, 241, 241);
  --header-trim-color: rgb(207, 207, 207);
  --hamburger-height: 50px;
  --tall-header-height: 130px;
  --container-shadows: 0px 5px 15px rgba(0, 0, 0, 0.3);
  --media-query-width: 850px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Helvetica, Courier, monospace;
}
h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: #555;
  text-align: center;
}
h5 {
  color: rgb(206, 206, 206);
  text-align: center;
}
strike {
  text-decoration: line-through;
}
/* HEADER */
header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: var(--hamburger-height); /*  fit hamburger */
  background-color: var(--primary-bg-color);
  max-width: 100vw;
  border-bottom: 1px solid var(--primary-trim-color);
  box-shadow: var(--container-shadows);
}

.header-logo {
  justify-self: center;
  align-self: center;
}
.header-logo img {
  width: 250px;
  height: auto;
}
.header-search {
  justify-self: right;
  align-self: center;
  padding-bottom: 10px;
  margin-right: 15px;
  position: relative;
}
i.fa-search {
  font-size: 25px;
  color: var(--header-trim-color);
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
}
.fa-search:hover {
  cursor: pointer;
}
.header-search > div {
  position: relative;
}
#search_box {
  display: none;
  position: absolute;
  right: 14px;
  background-color: #ddd;
  border: 1px solid #aaa;
  margin-top: 8px;
  z-index: 10;
  width: 280px;
  padding: 2px;
  border-radius: 1px;
}
#search_box > h3 {
  padding: 10px 0 0 20px;
  font-size: 1.1em;
}
#search_box > form input[type="text"] {
  width: 185px;
  padding: 2px;
}

/* HEADER MENU */
header * > ul {
  display: flex;
  flex-direction: column;
  font-size: 1.2em;
  line-height: 1.5;
}
header * > ul li {
  list-style: none;
  padding-right: 20px;
  padding: 0.4rem;
  min-width: 65px;
}
header * > ul li * {
  text-decoration: none;
  cursor: pointer;
}
.fa {
  transition: all ease-out 0.2s;
}
.fa:hover {
  transform: scale(1.2);
}
[href="#top"] .fa:hover {
  transform: none;
}
.fa-facebook-official {
  color: blue;
}
.fa-twitter-square {
  color: #1da1f2;
}
.fa-rss-square {
  color: #ee802f;
}

/* CONTAINER SECTIONS */
.container_grid {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 auto 30px auto;
}
.container {
  margin-top: 30px;
  max-width: 800px;
}
.container_main,
.container_bottom,
.container_tall {
  box-shadow: var(--container-shadows);
}
/* SECTION  - Title Date */
.title-date {
  margin-top: 7px;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: flex-start;
  align-content: flex-end;
  color: #555;
  font-size: 0.7em;
  border-left: 1px solid var(--primary-trim-color);
}

.title-date h1 {
  z-index: 1;
}
.title-date h1,
.title-date h2 {
  align-self: flex-end;
  background-color: #fff;
  border-radius: 7px 7px 0 0;
  padding: 0.7em;
}
.title-date h1 {
  background-color: var(--primary-bg-color);
  border-top: 1px solid var(--primary-trim-color);
  border-right: 1px solid var(--primary-trim-color);
  border-left: 1px solid var(--primary-trim-color);
  border-bottom: 1px solid var(--primary-bg-color);
  text-shadow: 1px 1px rgba(2, 0, 148, 0);
  margin-bottom: -2px;
}

/* .title-date h1 > div {
  box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.1);
} */
.title-date h2 {
  font-size: 1.1em;
  align-self: flex-end;
  text-indent: 5px;
  color: #888;
  margin: 0 5px 2px 0;
}
/* SECTION  - Prev Random Next */
section.navigator {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: var(--primary-bg-color);
  border: 1px solid var(--primary-trim-color);
  padding: 8px 0;
  position: relative;
  z-index: 0;
}
section.navigator a {
  color: #aaa;
  width: 100%;
  text-align: center;
}
section.navigator a[href="#top"] {
  color: rgb(216, 216, 216);
}
section.navigator a + a {
  border-left: 1px solid #ddd;
}
section.navigator i {
  font-size: 1.8em;
}
section.navigator a {
  color: #aaa;
  width: 100%;
  text-align: center;
}

.chevron-left::after,
.chevron-random::after,
.chevron-right::after {
  font-size: 0.75rem;
  display: block;
}
.chevron-left::after {
  content: "Previous";
}
.chevron-random::after {
  content: "Random";
}
.chevron-right::after {
  content: "Next";
}

/* SECTION 2 - Image And Description*/
section.images_descriptions {
  margin-top: 2px;
  color: #777;
}
/* new panoramas with leanorama */
.images_descriptions > div.new_panorama {
  box-sizing: border-box;
  max-width: 100vw;
  max-height: 90vh;
}
.images_descriptions > div.new_panorama > iframe {
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  max-width: 100vw;
  max-height: 90vh;
}
.images_descriptions > .tip {
  padding: 8px;
  border-top: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
  font-size: 0.8em;
  max-width: 100vw;
}
.images_descriptions > .tip > p {
  text-indent: 15px;
}
/* old panorama type adobe objects */
.images_descriptions > div > div > object,
.images_descriptions > div > div > object * {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
}
/* covers earliest and more recent images */
.images_descriptions > img,
.images_descriptions > div > img {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border: 1px solid #666 !important;
}
.images_descriptions img[name="alt_pic"] {
  max-width: 100vw !important;
  height: auto !important;
}
img[src*="picture_download.gif"] {
  position: absolute;
  visibility: hidden !important;
  display: none !important;
  top: 0 !important;
  left: 0 !important;
}
.mine_location_box,
.mine_cam_settings {
  padding: 0 15px;
  font-family: sans-serif, Tahoma, Geneva, Verdana;
  font-size: 0.85rem;
  color: #aaa;
  display: inline;
}
.mine_location_box {
  padding: 3px;
}
.mine_cam_settings {
  text-align: right;
  float: right;
  font-size: 0.55em;
  margin-top: 7px;
  margin-right: -10px;
}
.mine_description {
  padding: 5px 20px;
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 1.2em 0;
}
.mine_description a {
  color: #555;
}
.mine_description a:hover {
  color: #888;
}
.mine_description p {
  text-indent: 1rem;
  margin-bottom: 0.5rem;
}
.box_license {
  box-sizing: content-box;
  border: 1px solid rgba(255, 57, 57, 0.5);
  border-radius: 5px;
  background: rgb(255, 254, 214);
  float: right;
  width: 160px;
  padding: 10px;
  margin: 0 -5px 1px 5px;
}
.box_license {
  font-size: 0.7rem;
  text-align: center;
  color: #4e7883;
}
.box_license > h5 {
  font-size: 0.95rem;
  color: #3a6b77;
}
.box_license > p {
  text-indent: initial;
  margin: initial;
}
.box_license > h5 + p {
  margin-bottom: 5px;
}
.box_license > a {
  text-decoration: none;
}
.box_license > a > img {
  width: 120px;
  height: auto;
  padding: 0 5px;
}
.box_license > a::before {
  font-family: "FontAwesome";
  content: "\f07a";
  font-size: 1.5em;
  color: rgb(255, 30, 49);
  margin-right: 5px;
}
.search_kw_hide_white {
  color: #fff;
  clear: both;
}
.share_page {
  display: grid;
  grid-template-columns: 90px auto;
  align-items: center;
  padding: 10px 10px;
  margin: 0 15px;
  border-top: 1px dashed #555;
  font-size: 0.8em;
}

/* CONTAINER Mid-Adsense */
.adsense-mid,
.adsense-side {
  width: 100vw;
  max-width: 800px;
}
.ad_comments,
.ad_middle {
	/* border: 1px solid #ccc; */
	margin: 0 0 20px 0;
}
/* CONTAINER BOTTOM */
.comments_header {
  padding: 10px 5px;
  border: 1px solid #ddd;
  border-radius: 5px 5px 0 0;
  background-color: #f1f1f1;
  font-weight: bold;
  color: #888;
}
div.auth_commenter {
  border: 1px dashed #555;
}
.admin_icon + a::before {
  content: url(/images/background/comment_icon.png);
  margin-right: 5px;
  margin-left: 4px;
  display: inline-block;
  vertical-align: middle;
  height: 17px;
  line-height: 1;
}

.admin_icon + a {
  font-weight: bold;
}
div.comment_user {
  padding: 7px 15px;
  display: flex;
  flex-direction: row;
  color: #888;
}
div.comment_user p {
  display: inline;
}
div.comment_user a {
  text-decoration: none;
  color: #888;
}
div.comment_user:nth-child(even) {
  background-color: #f1f1f1;
}
/* comment text */
div.comment_user > div:nth-child(odd) {
  width: 90%;
  padding-right: 5px;
}
/* comment date */
div.comment_user > div:nth-child(even) {
  font-size: 0.7em;
  max-width: 70px;
  color: #888;
}
/* USER COMMENT FORM */
section.comments .comment_container {
  border-top: 1px solid #ccc;
  padding: 25px;
  text-align: right;
}
div.comment_submit_grid {
  display: grid;
  grid-template-rows: 1fr;
  gap: 15px;
}
div.comment_submit_col1 > i.fa {
  display: inline;
  margin-right: 5px;
}

div.comment_submit_col1 > input {
  width: calc(100% - 28px);
}
div.comment_submit_col2 > textarea {
  width: 100%;
}
div.comment_submit_col1 > input,
div.comment_submit_col2 > textarea {
  padding: 2px;
  font-family: Helvetica, Arial, sans-serif;
  border: 1px solid #ccc;
  color: #666;
}
div.comment_submit_col1 > input:focus,
div.comment_submit_col2 > textarea:focus {
  outline: none;
  border-color: #999;
}
div.comment_submit_col1 > input + input {
  margin-top: 5px;
}
div.comment_submit_col2 > textarea {
  height: 6em;
}
div.comment_captcha * {
  margin-top: 5px;
  color: #666;
  font-size: 13px;
}
#comments-open-challenge > label {
  font-family: Helvetica, Arial, sans-serif;
}
input#commchallenge_answer {
  width: 113px;
}
#comments-open-challenge > span::before {
  content: 'Add "four + 1" ';
  display: inline-block;
}
div.comment_buttons > input {
  margin-top: 10px;
  min-width: 100px;
  padding: 5px 15px;
  background: #fff;
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color ease-in 0.2s;
}
div.comment_buttons > input:hover {
  background: #ccc;
  border: 1px solid #aaa;
}
/* Recommended Photos Widget */
.recommended_photos {
  border: 1px solid #ddd;
  /* border-top: 1px dashed #555; */
  background-image: linear-gradient(#f8f8f8, #d4d4d4);
  margin: 30px 0;
  padding: 20px 0;
}
.recommended_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}
.recommended_grid a {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 15px;
  color: #555;
  text-decoration: none;
}
.recommend_widget_image_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.recommend_widget_location_box {
  margin: 0 5px;
  text-align: center;
  font-size: 0.8rem;
  font-family: Arial, Helvetica, sans-serif;
}
.recommend_widget_image_container img {
  border: 1px solid #555;
  border-radius: 3px;
  transition: all ease-out 400ms;
}
.recommend_widget_image_container img:hover,
.recommend_widget_image_container img:focus {
  transform: scale(1.1);
}
/* Top Photos Tabs */
.tabs {
  position: relative;
  margin-top: 20px;
  min-height: 730px; /* This part sucks */
}
.tab {
  float: left;
  margin: 0 -10px;
}
.tab label {
  background: #eee;
  font-size: 1.1em;
  padding: 9px 10px;
  border: 1px solid #ccc;
  margin-left: 2px;
  position: relative;
  left: 15px;
}
.tab [type="radio"] {
  opacity: 0;
}
.tab-content {
  position: absolute;
  top: 28px;
  left: 0;
  background: white;
  right: 0;
  bottom: 0;
  padding: 20px;
  border: 1px solid #ccc;
  overflow: hidden;
}
.tab-content > * {
  opacity: 0;
}
[type="radio"]:checked ~ label {
  background: white;
  border-bottom: 1px solid white;
  z-index: 2;
}
[type="radio"]:checked ~ label ~ .tab-content {
  z-index: 1;
}
[type="radio"]:checked ~ label ~ .tab-content > * {
  opacity: 1;
}
label:hover {
  cursor: pointer;
}
.top-photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}
.top-photos-grid a {
  text-decoration: none;
  color: #555;
}
.top_photos {
  padding-top: 15px;
  width: 100%;
}
.top_photos * {
  text-align: center;
}
.top_widget_image_container {
  border: 1px solid #eee;
  padding: 8px;
  height: 158px;
  border-radius: 3px;
}
.top_widget_image_container img {
  transition: all ease-out 400ms;
  border-radius: 4px;
}
.top_widget_image_container img:hover,
.top_widget_image_container img:focus {
  transform: scale(1.1);
}

.top_widget_location_box {
  margin: 0 5px;
  text-align: center;
  font-size: 0.8rem;
  font-family: Arial, Helvetica, sans-serif;
}

/* FOOTER */
footer {
  background-color: var(--primary-bg-color);
  border-top: 1px solid var(--primary-trim-color);
  font-size: 1em;
  color: #888;
  margin-top: 50px;
}
footer ul {
  display: flex;
  flex-direction: column;
  list-style: none;
}
footer ul li {
  font-size: 0.9em;
  text-align: center;
  margin: 10px 20px;
  padding-top: 10px;
}
footer ul li h4 {
  text-align: center;
}
footer ul li p {
  line-height: 1.8;
}
footer ul li a {
  text-decoration: none;
  color: #888;
  font-style: italic;
}

/* Email HACK */
footer ul li > i > span {
  /* font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif; */
  font-family: Helvetica, Courier, monospace;
  font-style: normal;
}
footer ul li > i > span:nth-child(1)::after {
  content: "\0040";
}
footer ul li > i > span:nth-child(2)::after {
  content: "\002E";
}
footer ul li > i > span + span {
  margin-left: -3px;
}
/* END Email HACK */
footer ul li + li {
  border-top: 1px solid #bbb;
}
footer ul.social {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 0;
  background-color: inherit;
}
footer ul.social > li {
  border: none;
  margin: 0;
  padding: 10px 20px 0px 20px;
}
footer ul.social .fa {
  font-size: 1.5em;
  text-shadow: 2px 2px 3px rgba(167, 167, 167, 0.678);
}

/* MEDIA QUERY */
@media (min-width: 850px) {
  h4 {
    text-align: left;
  }
  header {
    grid-template-columns: repeat(4, 1fr);
    height: var(--tall-header-height);
    justify-content: center;
    background-image: linear-gradient(#dadada, #f8f8f8);
  }
  header > div:nth-child(1) {
    grid-column: 2 / 4;
    justify-self: center;
    align-self: flex-end;
    order: 2;
    margin-bottom: 5px;
  }
  .header-logo {
    grid-column: 2 / 4;
    order: 1;
  }
  .header-search {
    order: 3;
  }
  .header-logo img {
    width: 650px;
    height: auto;
  }
  #search_box {
    width: 400px;
    border-radius: 5px;
  }
  .container_grid {
    grid-template-columns: 800px 252px;
    gap: 20px;
    max-width: 1070px;
  }
  .container_tall {
    box-shadow: none;
  }
  section.navigator {
    border: 1px solid var(--primary-trim-color);
  }
  /* panorama type adobe objects */
  .images_descriptions > div > div > object,
  .images_descriptions > div > div > object * {
    height: 533px !important;
  }
  /* both later and early pages */
  .images_descriptions > img,
  .images_descriptions > div > img {
    box-sizing: border-box;
    width: 800px !important;
  }
  .mine_description {
    margin: 1.8em 0;
  }
  .title-date h1,
  .title-date h2 {
    border-radius: 0 10px 0 0;
    border-left: 0;
  }
  .mine_cam_settings {
    text-align: right;
    float: right;
    font-size: 0.85em;
	margin-top: 3px;
  }
  /* CONTAINER Mid-Adsense */
  .adsense-side {
    width: 175px;
  }
  div.comment_submit_grid {
    grid-template-columns: 220px 1fr;
  }
  div.comment_submit_col2 > textarea {
    height: 100%;
  }
  .advertisement_side {
    text-align: center;
  }
  /* Recommended Photos */

  .recommended_photos {
    padding: 10px 20px;
    margin: 0 auto;
  }
  .recommended_grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 10px;
    gap: 20px;
  }
  .top_photos {
    padding-top: 15px;
    width: 200px;
  }
  .tabs {
    min-height: 1450px; /* This part sucks */
  }
  .tab label {
    left: 0.6em;
  }
  .top-photos-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
  }
  .top_widget_image_container {
    padding: 8px;
  }
  footer ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  footer ul li {
    margin: 20px 0;
    padding-top: 0;
  }
  footer ul li + li {
    border-top: 0;
    border-left: 1px solid #bbb;
  }
}
