:root
{
    --highlight-color:                #C6AC8F;
    --background-color:               #3F3B39;
    --footer-background-color:        #4D4643;
    --page-container-color:           #4D4643;
    --page-container-alternate-color: #393634;
    --default-text-color:             #DEDEDE; /*rgb(225, 229, 235);*/
    --highlight-text-color:           #2B2928;
    --weak-text-color:                #ADABAA; /*rgb(120, 120, 120);*/
    --title-color:                    var(--highlight-color);
    --sub-title-color:                var(--highlight-color);
    --content-width:                  60rem;
    /* NOTE: Need to update size media queries if this changes, because CSS chortles balls. */
}


/* ############################### */
/* Section : Fonts */
/* ############################### */

@font-face
{
    font-family: 'Header';
    src: url('./fonts/Basic-Regular.ttf') format('truetype');
}

@font-face
{
    font-family: 'HeaderLink';
    src: url('./fonts/Basic-Regular.ttf') format('truetype');
}

@font-face
{
    font-family: 'Title';
    src: url('./fonts/Basic-Regular.ttf') format('truetype');
}

@font-face
{
    font-family: 'Body';
	src: url('./fonts/Lato-Regular.ttf') format('truetype');
}

@font-face
{
    font-family: 'Mono';
	src: url('./fonts/Inconsolata-Regular.ttf') format('truetype');
}


/* ############################### */
/* Section : HTML Types */
/* ############################### */

*
{
    padding: 0;
    margin: 0;
}

body
{
    font-family: 'Body';
    background-color: var(--background-color);
}

h1
{
    padding-top: 0em;
    color: var(--title-color);
    padding-left: 0;
    padding-right: 0;
	padding-bottom: 0.5em;
    font-family: 'Title';
    font-size: 1.5em;
}

h2
{
    color: var(--sub-title-color);
    padding-left: 0;
    padding-right: 0;
	padding-bottom: 1em;
    font-family: 'Title';
    font-size: 1.2em;
}

p
{
    color: var(--default-text-color);
	font-size: 1.2em;
    padding-bottom: 1em;
    padding-top: 1em;
    padding-left: 0;
    padding-right: 0;
    word-spacing: 0.1em;
}

pre
{
    padding-left: 0;
    padding-right: 0;
    font-family: 'Mono';
}

hr
{
	margin-left: auto;
	margin-right: auto;
	padding-top: 2em;
	margin-bottom: 1em;
	border: none;
	border-bottom: 1px solid;
	height: 1px;
	width: 50%;
	color: var(--page-container-color);
}


/* ############################### */
/* Section : Selection */
/* ############################### */

::selection
{
	background: var(--highlight-color);
	color: var(--highlight-text-color);
}

::-moz-selection
{
	background: var(--highlight-color);
	color: var(--highlight-text-color);
}


/* ############################### */
/* Section : Icon */
/* ############################### */

.icon
{
    width: 2em;
    height: 2em;
    fill: var(--highlight-color);
}

.icon:hover
{
    filter: brightness(75%);
}


/* ############################### */
/* Section : Links */
/* ############################### */

.link
{
	color: var(--highlight-color);
	text-decoration: none;
}

.link:hover
{
	border-bottom: 1px solid;
	border-bottom-width: 2px;
}

.standalone_link_container
{
	color: var(--highlight-color);
	text-decoration: none;
	margin-left: 0;
	padding-bottom: 1.5em;
    font-family: 'HeaderLink';
}

.lister_link
{
	font-size: 1.2em;
	margin-left: 0;
    margin-right: 0;
	margin-top: 1em;
	padding-left: 1em;
	padding-right: 0;
	padding-top: 1em;
	padding-bottom: 1em;
	color: var(--default-text-color);
	text-decoration: none;
	background: var(--page-container-color);
	border-radius: 2px;
	width: calc(100% - 1em);
	display: block;
	transition: all 0.2s ease;
    font-family: 'Header';
}

.lister_link:hover
{
	background: var(--page-container-alternate-color);
	transition: all 0.2s ease;
    transform: translateY(-1.5px);
    box-shadow: 0em 3px 10px rgba(30, 30, 30, 0.2);
}


/* ############################### */
/* Section : Page Content */
/* ############################### */


.page_wrapper
{
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.page_content
{
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding-top: 2em;
    padding-bottom: 3em;
    flex: 1;
}


/* ############################### */
/* Section : Header */
/* ############################### */

.header
{
	max-height: 2em;
    margin-top: 2em;
    vertical-align: middle;
}

.header_content
{
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding-top: 0em;
    padding-bottom:0em;
}

.header_title
{
    font-family: 'Header';
    font-size: 2.5em;
    color: var(--highlight-color);
    text-transform: uppercase;
    display: inline-block;
    text-align: bottom;
	line-height: 0;
	padding-bottom: 2em;
}

.header_title a
{
    color: inherit;
    text-decoration: none;
}

ul.header_links
{
    margin-top: 0em;
    vertical-align: bottom;
    padding-left: 4em;
    text-align: right;
    float: right;
    list-style: none;
}

li.header_link
{
    float: left;
    margin-left:0.5em;
    margin-right:0.5em;
}

li.header_link a
{
    display: block;
    padding: 8px;
    font-family: 'HeaderLink';
    font-size: 1.2em;
    color: var(--highlight-color);
    text-decoration: none;
	line-height: 0;
    text-align: center;
    text-decoration: dashed;
}

li.header_link a:hover
{
    border-bottom: 2px dashed;
}


/* ############################### */
/* Section: Footer */
/* ############################### */

.footer
{
    color: var(--weak-text-color);
    text-align: center;
    font-family: 'HeaderLink';    
    flex-shrink: 0;
    background-color: var(--footer-background-color);
}

.footer_content
{
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding-top: 1em;
    padding-bottom:2em;
}

.footer_links
{
    text-align: right;
}

.footer_link
{
	vertical-align: middle;
    font-family: 'footerLink';
    font-size: 1.2em;
    color: var(--highlight-color);
    text-decoration: none;
    margin-left:0.5em;
    margin-right:0.5em;
	line-height: 0;
    text-align: right;
}

.footer_copyrights
{
    color: var(--highlight-color);
	vertical-align: bottom;
}

/* ############################### */
/* Section : External Media */
/* ############################### */

.youtube
{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
	margin-top: 1em;
    padding-top: 2em;
    padding-bottom: 2em;
    background-color: #1e1e1e;
}


/* ############################### */
/* Section : Code */
/* ############################### */

.code
{
    margin-left: auto;
    margin-right: auto;
	margin-top: 1em;
    margin-bottom: 1em;
    padding-top: 2em;
    padding-bottom: 2em;
    padding-left: 2em;
    padding-right: 2em;
    background-color: #1e1e1e;
    color: #ba8e4c;
    font-family: 'Mono';
	overflow: auto;
	font-size: 1em;
}

.code_text
{
	font-family: 'Mono';
}


/* ############################### */
/* Section : Images */
/* ############################### */

.image_container
{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
    margin-top: 1em;
    padding-top: 1em;
    padding-bottom: 1em;
}

.thumbnail_image_container
{
    display: inline-block;
	padding-top: 1em;
	padding-left: 0;
}

.thumbnail_image
{
	width: 31%;
	overflow: hidden;
	margin-right: 0.5em;
	margin-bottom: 0.2em;
	opacity: 0.8;
	transition: opacity 0.1s ease;
	border-radius: 4px;
}

.thumbnail_image:hover
{
	opacity: 1;
	transition: opacity 0.1s ease;
}

.image
{
    max-width: 60%;
    max-height: 25em;
	border-radius: 5px;
}


/* ############################### */
/* Section : Seperator */
/* ############################### */

.separator
{
    display: none;
    position: relative;
    max-width: 70rem;
    height: 70px;
    margin-left: auto;
    margin-right: auto;
	margin-bottom: -1px;
}

.separator::before
{
   position: absolute;
   content: "";
   width: 100%;
   height: 100%;
   background-color: #ffffff;
   clip-path: polygon(100% 0, 0 0, 0 100%);
}

.separator::after
{
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: #dfdfdf;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.separator.reverse::before
{
    background-color: #dfdfdf;
}

.separator.reverse::after
{
    background-color: #ffffff;
}


/* ############################### */
/* Section : Feature Button */
/* ############################### */

.feature_button
{
    margin-left: 0;
    margin-right: 0;
    margin-top: 2em;
    width: 100%;
    min-width: 50em;
    height: 20rem;
	max-height: 20em;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.feature_button_image
{
    background-repeat: no-repeat;
    background-size: auto 150%;
	background-position-x: center;
    background-position-y: center;
    height: 20em;
	transition: all 0.2s ease, background-position 0ms;
}

.feature_button .feature_button_image
{
	
	background-size: auto 150%;
    opacity: 0.8;
	filter: blur(2px);
   -webkit-filter: blur(2px);
}

.feature_button:hover .feature_button_image
{
	
	background-size: auto 155%;
    opacity: 1.0;
	filter: blur(0px);
   -webkit-filter: blur(0px);
}

.feature_button_text
{
    position: absolute;
    left: 1em;
    top: 50%;
	bottom: 50%;
    font-family: 'Header';
    font-size: 4rem;
	line-height: 0;
    text-decoration: none;
    color: #ffffff;
    text-shadow: 4px 4px 12px #000;
}

.monospace
{
	font-weight: bold;
	font-family: 'Mono';
}


/* ############################### */
/* Section : Carousel */
/* ############################### */
/* 
@keyframes tonext {
    75% {
      left: 0;
    }
    95% {
      left: 100%;
    }
    98% {
      left: 100%;
    }
    99% {
      left: 0;
    }
  }
  
  @keyframes tostart {
    75% {
      left: 0;
    }
    95% {
      left: -300%;
    }
    98% {
      left: -300%;
    }
    99% {
      left: 0;
    }
  }
  
  @keyframes snap {
    96% {
      scroll-snap-align: center;
    }
    97% {
      scroll-snap-align: none;
    }
    99% {
      scroll-snap-align: none;
    }
    100% {
      scroll-snap-align: center;
    }
  }
  
  body {
    max-width: 37.5rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    font-family: 'Lato', sans-serif;
  }
  
  * {
    box-sizing: border-box;
    scrollbar-color: transparent transparent;
    scrollbar-width: 0px;
  }
  
  *::-webkit-scrollbar {
    width: 0;
  }
  
  *::-webkit-scrollbar-track {
    background: transparent;
  }
  
  *::-webkit-scrollbar-thumb {
    background: transparent;
    border: none;
  }
  
  * {
    -ms-overflow-style: none;
  }
  
  ol, li {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .carousel {
    position: relative;
    padding-top: 75%;
    filter: drop-shadow(0 0 10px #0003);
    perspective: 100px;
  }
  
  .carousel__viewport {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    overflow-x: scroll;
    counter-reset: item;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
  }
  
  .carousel__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    background-color: #f99;
    counter-increment: item;
  }
  
  .carousel__slide:nth-child(even) {
    background-color: #99f;
  }
  
  .carousel__slide:before {
    content: counter(item);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%,-40%,70px);
    color: #fff;
    font-size: 2em;
  }
  
  .carousel__snapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
  }
  
  @media (hover: hover) {
    .carousel__snapper {
      animation-name: tonext, snap;
      animation-timing-function: ease;
      animation-duration: 4s;
      animation-iteration-count: infinite;
    }
  
    .carousel__slide:last-child .carousel__snapper {
      animation-name: tostart, snap;
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .carousel__snapper {
      animation-name: none;
    }
  }
  
  .carousel:hover .carousel__snapper,
  .carousel:focus-within .carousel__snapper {
    animation-name: none;
  }
  
  .carousel__navigation {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center;
  }
  
  .carousel__navigation-list,
  .carousel__navigation-item {
    display: inline-block;
  }
  
  .carousel__navigation-button {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    background-color: #333;
    background-clip: content-box;
    border: 0.25rem solid transparent;
    border-radius: 50%;
    font-size: 0;
    transition: transform 0.1s;
  }
  
  .carousel::before,
  .carousel::after,
  .carousel__prev,
  .carousel__next {
    position: absolute;
    top: 0;
    margin-top: 37.5%;
    width: 4rem;
    height: 4rem;
    transform: translateY(-50%);
    border-radius: 50%;
    font-size: 0;
    outline: 0;
  }
  
  .carousel::before,
  .carousel__prev {
    left: -1rem;
  }
  
  .carousel::after,
  .carousel__next {
    right: -1rem;
  }
  
  .carousel::before,
  .carousel::after {
    content: '';
    z-index: 1;
    background-color: #333;
    background-size: 1.5rem 1.5rem;
    background-repeat: no-repeat;
    background-position: center center;
    color: #fff;
    font-size: 2.5rem;
    line-height: 4rem;
    text-align: center;
    pointer-events: none;
  }
  
  .carousel::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,50 80,100 80,0' fill='%23fff'/%3E%3C/svg%3E");
  }
  
  .carousel::after {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='100,50 20,100 20,0' fill='%23fff'/%3E%3C/svg%3E");
  } */


/* ############################### */
/* Section : Media Translation */
/* ############################### */

@media only screen and (max-width: 49rem)
{
    h1
    {
        font-size: 1.3em;
    }

    p
    {
        font-size: 1em;
    }

    .lister_link
    {
        font-size: 1em;
    }

    .page_content
    {
        padding-left: 2em;
        padding-right: 2em;
    }

    .header
    {
        padding-left: 2em;
        padding-right: 2em;
    }

    .footer
    {
        padding-left: 2em;
        padding-right: 2em;
    }

    .feature_button
    {
        width: 100%;
        min-width: 20em;
        height: 12rem;
        max-height: 12em;
        position: relative;
        overflow: hidden;
    }

    .feature_button_image
    {
        height: 12em;
    }

    .feature_button_text
    {
        font-size: 1.5rem;
    }

    .header
    {
        height: auto;
        max-height: none;
        overflow-wrap: normal;
    }

    .header_title
    {
        display: block;
        font-size: 2.2em;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        padding-top: 0.5em;
        padding-bottom: 2em;
        overflow-wrap: inherit;
    }

    ul.header_links
    {
        display: table;
        padding: 0em;
        margin: 0 auto;
        float: none;
    }

    .header_link
    {
        display: inline-block;
        margin-bottom: 1em;
        text-align: center;
        font-size: 1em;
    }

    .header_link a
    {
        padding: 0px !important;
    }
    
    li.header_link a:hover
    {
        border: none !important;
    }
 
    .link:hover
    {
        border: none !important;
    }

    .footer
    {
        padding-top: 1em;
        padding-bottom: 1em;
    }

    .footer_content
    {
        padding-bottom: 0.5em;
    }

    .footer_links
    {
        text-align: center;
    }
}

@media only screen and (max-width: 372px)
{
    .header_title
    {
        /* display: inline !important;
        line-height: 0.5em;
        float: none !important;
        text-align: center !important; */

        display: table;
        line-height: 0.8em;
        padding: 0;
        margin: 0 auto;
        float: none;
    }

    ul.header_links
    {
        margin-top: 1em;
    }
}

@media only screen and (orientation:landscape)
{
    .footer,
    .header,
    .page_content
    {
        padding-left: 2em !important;
        padding-right: 2em !important;
    }
}