@import url("reset.css");

@font-face {
  font-family: 'whoismono';
  src: url('fonts/whois-mono.eot');
  src: url('fonts/whois-mono.woff') format('woff'),
       url('fonts/whois-mono.ttf') format('truetype'),
       url('fonts/whois-mono.svg#whoismono') format('svg');
}

/* ================================
   BASE STYLES
   ================================ */
* {
  box-sizing: border-box;
}

body {
  color: #101010;
  background-color: #768853;
  font-family: 'whoismono', monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* ================================
   SELECTION STYLES
   ================================ */
details::selection {
  background-color: #101010;
}

span.block::selection {
  background-color: #768853;
}

span.strike::selection {
  text-decoration: none;
  background-color: #768853;
}

/* ================================
   HEADER
   ================================ */
header {
  padding: 1em 0 0 0;
}

.toggles {
  display: flex;
  justify-content: center;
  margin: 4em 0 0 0;
}

.svg-container {
  display: flex;
  justify-content: center;
  cursor: pointer;
}

svg.circle {
  width: 3.5em;
  transition: transform .7s ease-in-out;
}

svg.circle path {
  fill: #E1D0B8;
}

svg.circle:hover {
  transform: rotate(360deg);
}

svg.circle:hover path {
  fill: #101010;
}

/* ================================
   MAIN CONTENT
   ================================ */
main {
  font-size: 6vw;
  line-height: 1.5;
}

main section {
  margin: 2em 2em;
}

main section div.poem-title {
  border-bottom: 1.5px solid #101010;
  padding: 10px 0;
}

main a {
  text-decoration: none;
  color: #101010;
  padding: 2px;
}

main div a {
  padding: 4px 10px;
  background-color: #a6d4ca;
  border: 1.5px solid #101010;
}

main div a:hover {
  background-color: whitesmoke;
}

/* ================================
   TEXT STYLES
   ================================ */
span.strike {
  text-decoration: line-through;
}

span.strike:hover {
  cursor: crosshair;
}

span.block {
  background-color: #101010;
  padding: 0;
}

/* ================================
   DETAILS AND SUMMARY
   ================================ */
details {
  padding: 3px 0;
}

details summary {
  cursor: pointer;
}

summary {
  font-size: 1.2rem; 
}

summary::marker {
  font-size: 1.2em; 
}

/* ================================
   RESPONSIVE BREAKPOINTS
   ================================ */
@media (min-width: 450px) {
  main {
    font-size: 1.2rem;
    margin: 0 4em;
    padding: 1em 0;
  }

  summary {
    font-size: inherit; 
  }
}

@media (min-width: 750px) {
  main {
    font-size: 1.25rem;
    margin: 0 10em;
  }

  main section {
    margin: 2em 0;
  }
  
  /* Slightly tighter line-height for larger screens */
  main {
    line-height: 1.4;
  }
}

@media (min-width: 950px) {
  header {
    margin: 1em 0;
  }  
  
  main {
    margin: 0 32vw;
  }
  
  main section {
    padding-bottom: 1em;
  }
}

/* ================================
   ABOUT PAGE STYLES
   ================================ */
body#about main {
  font-size: 1rem;
  line-height: 1.5;
}

body#about section.top {
  margin-bottom: 2.5em;
}

body#about div.symbol {
  font-size: 1.5rem;
  margin: 1.5em 0 1em 0;
  text-align: center;
}

body#about svg.circle path {
  fill: transparent;
}

body#about svg.circle:hover path {
  fill: #101010;
} 

body#about h1 {
  font-size: 1.5rem;
  margin: 1em 0 .5em 0;
  border-bottom: 1.5px solid #101010;
}

body#about h2 {
  font-size: 1rem;  
}

body#about div.flex-box-wrapper {
  max-width: 100%;
}

body#about main img {
  height: auto;
  max-width: 100%;
  display: block;
  border: 1.5px solid #101010;
}

body#about figcaption {
  font-size: .9rem;
  margin: 1em 0;
  padding: 1.5em 2em;
  border: 1.5px dotted #101010;
  line-height: 1.4;
}

div.flex-box-wrapper {
  display: flex;
  flex-direction: column;
}

body#about main section {
  margin: 2em 2em;
}

body#about main p {
  margin: 0 0 1.5em 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* ================================
   ABOUT PAGE LINKS
   ================================ */
a.in-text {
  border-bottom: 1.5px solid #101010;
}

a.in-text:hover {
  background-color: #101010;
  color: #768853;
}

a.in-text-dots {
  border-bottom: 1.5px dotted #101010;
}

a.in-text-dots:hover {
  border-bottom: 1.5px solid #101010;
}

/* ================================
   ABOUT PAGE LAYOUT
   ================================ */
body#about figure {
  margin: 2em 0;
}

body#about figure img {
  margin-bottom: 0;
}

body#about section.acknowledgements p {
  margin: 0 0 1.5em;
}

/* ================================
   PHONEBOOK BADGE STYLES
   ================================ */
.phonebook-badge {
  display: block;
  text-align: center;
  margin: 1.5em auto;
}

.phonebook-badge a {
  display: inline-block;
  border: none !important;
  background-color: transparent !important;
}

.phonebook-badge a:hover {
  background-color: transparent !important;
}

.phonebook-badge img {
  width: 150px;
  min-width: 120px;
  height: auto;
  border: none !important;
}

/* Prevent the general img rule from affecting phonebook badge */
body#about main .phonebook-badge img {
  border: none !important;
  max-width: none;
}

body#about section.font-info img.font-poster {
  display: block;
  width: 50%;
  max-width: 100%;
  margin: 2em 0;
}

/* ================================
   MOBILE RESPONSIVE FIXES
   ================================ */
@media (max-width: 600px) {
  body#about section.contact iframe {
    width: 100%;
  }
  
  body#about section.font-info img.font-poster {
    width: 100%;
  }
  
  .phonebook-badge img {
    width: 25vw;
    min-width: 100px;
  }
}

/*================================
   SUBTLE MOBILE FIX FOR CONSISTENCY
   ================================*/ 
@media (min-width: 450px) {
  body#about main section {
    margin: 2em 0;
  }
} 

@media (min-width: 950px) {
  body#about main section {
    margin: 1.5em 0;
  }
  
  .phonebook-badge img {
    width: 180px;
  }
}

/* ================================
   FOOTER
   ================================ */
footer {
  margin: 7vh;
  overflow-y: scroll;
}