/*! HTML5 Boilerplate v7.1.0 | MIT License | https://html5boilerplate.com/ */
/* main.css 1.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * Fonts
 */ 

/* pacifico */
@font-face {
  font-family: 'Odana';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/Odana/Web/Odana-Web.otf');
}

/* Pali 400 */
@font-face {
  font-family: 'Pali';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/Pali/Web/Pal-Regular-Web.otf');
}

/* Pali 500 */
@font-face {
  font-family: 'Pali';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/Pali/Web/Pali-Bold-Web.otf');
}

/* dekko-regular - latin_latin-ext_devanagari */
@font-face {
  font-family: 'Dekko';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/dekko-v5-latin_latin-ext_devanagari-regular.eot');
  /* IE9 Compat Modes */
  src: local('Dekko'),
    url('/fonts/dekko-v5-latin_latin-ext_devanagari-regular.eot?#iefix') format('embedded-opentype'),
    /* IE6-IE8 */
    url('/fonts/dekko-v5-latin_latin-ext_devanagari-regular.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('/fonts/dekko-v5-latin_latin-ext_devanagari-regular.woff') format('woff'),
    /* Modern Browsers */
    url('/fonts/dekko-v5-latin_latin-ext_devanagari-regular.ttf') format('truetype'),
    /* Safari, Android, iOS */
    url('/fonts/dekko-v5-latin_latin-ext_devanagari-regular.svg#Dekko') format('svg');
  /* Legacy iOS */
}

/* yatra-one-regular - latin_latin-ext_devanagari */
@font-face {
  font-family: 'Yatra';
  font-style: normal;
  font-weight: 400;
  src: local('Yatra One Regular'), local('YatraOne-Regular'),
    url('/fonts/yatra-one-v5-latin_latin-ext_devanagari-regular.woff2') format('woff2'),
    /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('/fonts/yatra-one-v5-latin_latin-ext_devanagari-regular.woff') format('woff');
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* Jivita-regular - latin_greek-ext_latin-ext_cyrillic-ext */
@font-face {
  font-family: 'Jivita';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/Jivita/Jivita-Regular.otf');
}

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
html {
  font-family: 'Pali';
  /* color: #411a00; */
  scroll-behavior: smooth;
  background-color: AntiqueWhite;
  color: black;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */
::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */
hr {
  display: block;
  height: 1vh;
  min-width: 15vw;
  border: 0;
  border-top: 0.05em solid black;
  margin: 0 auto;
  padding: 0;
  padding-top: 1vh;
  padding-bottom: 1vh;
  width: 33%;
  text-align: center;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */
audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */
textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */
.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
/* ==========================================================================
   Helper classes
   ========================================================================== */
/*
 * Hide visually and from screen readers
 */
.hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/
.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
  /* 1 */
}

/*
* Extends the .visuallyhidden class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
  white-space: inherit;
}

/*
* Hide visually and from screen readers, but maintain layout
*/
.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/
.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

/*
My Stuff
*/
body {
  text-decoration: none;
  font-variant: unset;
  font-style: unset;
  font-size: 1em;
  height: 100%;
  margin: 0;
  padding: 0;
  padding-left: 5vw;
  padding-right: 5vw;
  font-weight: bolder;
}

a {
  text-decoration: none;
  color: black;
  text-shadow: 0 0 1px red;
}

a:hover, a:focus {
  cursor: crosshair;
  transition: 1s ease;
  text-shadow: none;
  color: black;
}

ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

li {
  padding: 2vw;
  margin: 0;
}

img {
  max-width: 15vh;
}

q {
  font-style: oblique;
}

p {
  line-height: 1em;
}

.pali figcaption {
  font-weight: 500;
  font-size: 0.5;
  line-height: 1;
}

header {
  font-size: 0.8em;
  line-height: 0.9em;
}

.code{
  font-weight: 100;
  font-size: 0.6em;
}

.code:hover, .code:focus {
  font-weight: 500;
  font-size: 0.8em;
  color: darkgreen
}

.code:hover .pali, .code:focus .pali{
  font-size: 2em;
  font-weight: 500;
  color: darkred;
}

.odana {
  font-family: 'odana';
}

.centered {
  text-align: center;
}

.pali{
  font-weight: 300;
}

/* article .pali p{
  margin: 0em;
  padding: 0em;
  font-size: 0.8em;
  line-height: 0.8em;
} */

#ttl {
  position: sticky;
  top: 0;
  left: 0;
  margin-top: 0;
  padding-top: 0;
  padding-left: 1vw;
}

#ttl img {
  width: 1em;
  padding: 0.5em;
  transition-delay: 0;
}

#ttl:hover, #ttl:focus {
  display: block;
  background-color: AntiqueWhite;
  opacity: 1;
  transition-delay: 1.2s;
}

#button{
  font-variant: small-caps;
  text-align: left;
  transition: 3s ease;
  transition-delay: 3s;
  visibility: visible;
  opacity: 0.5;
  text-shadow: 0 0 0.5em AntiqueWhite;
  font-size: 1em;
  padding: 0;
  margin: 0;
  margin-top: 0.1em;
}

#ttl:hover #button, #ttl:focus #button{
  color: AntiqueWhite;;
  visibility: hidden;
  transition: 1s ease;
  /* height: 0; */
  background-color: AntiqueWhite;
}

#show {
  position: fixed;;
  top: 0;
  left: 5vw;
  text-align: left;
  visibility: hidden;
  width: 100vw;
  /* height: 0; */
  background-color: AntiqueWhite;
}

#ttl:hover #show, #ttl:focus #show {
  visibility: visible;
  background-color: AntiqueWhite;
  opacity: 1;
  transition-delay: 0.3s;
}

#ttl:hover img, #ttl:focus img {
  visibility: visible;
  height: initial;
  background-color: AntiqueWhite;
  vertical-align: middle;
  transition-delay: 0.3s;
}

#ttl:hover img:hover, #ttl:focus img:focus{
  transition: 0.3s ease;
  border-radius: 50%;
  background-color: SandyBrown;
}

/* media queries */
@media screen and (min-width: 1600px) {

  html {
    font-size: 2em;
  }
}

@media screen and (min-width: 992px) {

  body {
    font-size: 1.2em;
  }
  
}

@media screen and (max-width: 600px) {
 
  .code {
    max-width:100%;
    text-align: left;
  }

  .code:hover img, .code:focus img {
  transition: 1s ease;
  width: 25vw;
}
}