/* roboto-mono-regular - latin */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/roboto-mono-v7-latin-regular.eot'); /* IE9 Compat Modes */
  src: local('Roboto Mono'), local('RobotoMono-Regular'),
       url('../fonts/roboto-mono-v7-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-mono-v7-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-mono-v7-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-mono-v7-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-mono-v7-latin-regular.svg#RobotoMono') format('svg'); /* Legacy iOS */
}

body, * {
	box-sizing: border-box;
}

body {
	font-family: 'Roboto Mono', monospace;
	font-size: 13px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-size: 13px;
	font-weight: normal;
}

html {
	height: 100%;
}

a {
	color: black;
	text-transform: uppercase;
	cursor: pointer;
}

a:hover {
	font-style: italic;
}

a:visited {
	color: black;
}

button {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	-webkit-text-size-adjust: 100%;
	font-size: 13px;
	padding: 5px 10px;
	cursor: pointer;
	border: 1px solid black;
	text-transform: uppercase;
	background-color: transparent;
	border-radius: 50px;
	margin: 0 5px 0 0;
}

button:hover {
	font-style: italic;
}

ol {
	margin: 0;
	list-style-type: decimal-leading-zero;
	padding-inline-start: 32px;
}

ol li,
ul li {
	line-height: 1.6;
}

figure {
	position: relative;
}

figcaption {
	background-color: thistle;
	font-size: 11px;
	padding: 5px;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
}

th, td {
	border: 1px solid black;
	padding: 10px;
	line-height: 1.3;
}

table {
	border-collapse: collapse;
	margin: 15px 0;
}

input[type="password"] {
	border: 1px solid black;
	padding: 5px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}
 
::-webkit-scrollbar-thumb {
  background: #ffffff; 
  border: 1px solid black;
  border-style: solid;
  border-radius: 50px;
}

.container {
	display: inline-grid;
	grid-template-columns: 3em auto 3em;
	grid-template-rows: 3em auto 3em;
	height: 100vh;
	width: 100vw;
}

.cell {
	display: flex;
	justify-content: center;
	align-items: center;
}

.cell-nav {
	display: inline-flex;
	justify-content: space-between;
}

.cell-nav-projects {
	display: inline-flex;
}

.cell-main {
	border: 1px solid black;
	position: relative;
	overflow: hidden;
	cursor: cell;
}

.cell-tertiary {
	border: 1px solid black;
	overflow: hidden;
}

.cell-nav-item a {
	text-decoration: underline;
}

.cell-nav-item a:hover {
	font-style: italic;
}

#cell-nav-item-hello {
	overflow: hidden;
	width: 100%;
	margin: 0 4em;
	height: 100%;
	position: relative;
}

#cell-nav-item-hello span {
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
    width: 850px;
    height: 100%;
    margin: 0;
    text-align: center;
    -moz-transform: translateX(100%);
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -moz-animation: scroll-left 2s linear infinite;
    -webkit-animation: scroll-left 2s linear infinite;
    animation: scroll-left 20s linear infinite;
}

#cell-nav-item-hello span:hover {
	animation-play-state: paused;
}

/* About Page */
.cell-about {
	flex-direction: column;
}

.cell-about a,
.cell-contact a {
	text-decoration: underline;
}

.cell-about a:hover,
.cell-contact a:hover {
	font-style: italic;
}

.cell-about .cell-contents {
	width: 40%;
	line-height: 1.4;
}

/* Projects Page */
.cell-projects {
	width: 100%;
	display: grid;
	grid-template-columns: 20% 80%;
	grid-template-rows: 1fr 1fr 1fr;
	grid-template-areas:
		"nav contents"
		"description contents"
		"description contents";
}

.project-nav {
	align-self: start;
	margin: 0;
	padding-inline-start: 0;
	grid-area: nav;
}

.project-nav li {
	cursor: pointer;
	border-bottom: 1px solid black;
	text-transform: uppercase;
	width: auto;
	list-style: none;
}

.project-nav li a,
li[class^="project-active-"] {
	display: inline-block;
	padding: 8px 10px;
	width: 100%;
	text-decoration: none;
}

.project-nav li a:hover {
	font-style: normal;
}

.project-contents {
	overflow: auto;
	height: 100%;
	align-self: start;
	grid-area: contents;
	border-width: 0px 0px 0px 1px;
	border-color: black;
	border-style: solid;
	margin: 0px -1px 0px 0px;
}

.project-contents-container {
	text-align: center;
	padding: 15px 4.265em 0;
}

.project-contents-container img {
	width: 100%;
}

.project-contents-container > img {
	padding: 1em 40px;
}

.project-contents-content {
	width: 85%;
	text-align: left;
	display: inline-block;
}

.project-contents-container p {
	line-height: 1.4;
	margin: 0 0 1em;
}

.project-description {
	align-self: end;
	grid-area: description;
	padding: 0 15px 15px;
	overflow-y: scroll;
	max-height: 100%;
}

.project-description-content {
	line-height: 1.4;
}

.project-description-content p {
	margin: 0;
}

.project-nav li:nth-child(1):hover,
.project-nav li:nth-child(5):hover {
	background-color: thistle;
}
.project-nav li:nth-child(2):hover,
.project-nav li:nth-child(6):hover {
	background-color: orange;
}
.project-nav li:nth-child(3):hover {
	background-color: springgreen;
}
.project-nav li:nth-child(4):hover {
	background-color: salmon;
}

.project-nav .project-active-thistle {
	background-color: thistle;
}
.project-nav .project-active-orange {
	background-color: orange;
}
.project-nav .project-active-springgreen {
	background-color: springgreen;
}
.project-nav .project-active-salmon {
	background-color: salmon;
}

.project-tag {
	display: inline-block;
	border-radius: 50px;
	border: 1px solid black;
	padding: 0 5px;
	margin: 15px 5px 5px 0;
	text-transform: uppercase;
}

.project-name {
	display: inline;
	font-size: inherit;
	line-height: 1.4;
}

.table-filled {
	background-color: springgreen;
	position: relative;
}

/* Accordion */
.accordion__button {
	position: relative;
	display: block;
	margin: -1px 0 0;
	width: 100%;
	text-align: left;
	border-radius: 0;
}

.accordion__button::after {
	content: '↓';
	position: absolute;
	right: 1rem;
	top: 0.35rem;
	width: 0;
	height: 0;
}

.accordion__section {
	max-height: 0vh;
	overflow: hidden;
	padding: 0;
	border-left: 1px solid black;
	border-right: 1px solid black;
}

.accordion__section.open {
	max-height: 100vh;
	overflow: auto;
	padding: 1em;
	visibility: visible;
}

.accordion__section.open:last-child {
	border-bottom: 1px solid black;
}

.accordion__button.expanded::after {
	content: '↑';
}

/*.axis text {
  fill: black;
  stroke: none;
}
.axistitle {font-weight: bold; fill: #909090; font-size: 15pt;}*/

/* Stamps */
.stamp {
	width: 90px;
}

.cell-reset-btn {
	border: 1px solid black;
	border-radius: 50px;
	background-color: white;
	padding: .75em 1em;
	background-image: url(../img/reset_symbol.svg);
	background-repeat: no-repeat;
	background-size: 1.25em;
	background-position: center;
}

.cell-reset-btn:hover {
	background-color: orange;
	cursor: pointer;
}

.cell-reset-btn:active {
	font-style: italic;
}

#stamp-container {
	 -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; 
}

.thistle {
	color: thistle;
}

.orange {
	color: orange;
}

.springgreen {
	color: springgreen;
}

.salmon {
	color: salmon;
}

/* Accessibility Helpers */
.visuallyhidden {
	clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* Mobile */

@media only screen and (min-device-width: 320px) and (max-device-width: 736px) {
	body {
		font-size: 14px;
	}
	button {
		font-size: 16px !important;

	}
	#cell-nav-item-hello {
		margin: 0 20px;
	}
	.cell-about .cell-contents {
		width: 75%;
	}
	.cell-reset-btn {
		font-size: 16px;
	}
	.cell-projects {
		width: 100%;
		display: inline-block;
	}
	.project-contents {
		border-width: 1px 0 0 0;
	}
	.project-description {
		max-height: 15%;
	}
	.project-contents-container {
		padding: 15px 0 0;
	}
	.project-contents-container > img {
		padding: 20px;
	}
	.project-contents-content button {
		margin: 10px 0 0;
	}
	.primary-input {
		width: 100%;
	}
}

/* Animations */
@-moz-keyframes scroll-left {
    0% {
        -moz-transform: translateX(100%);
    }
    100% {
        -moz-transform: translateX(-100%);
    }
}

@-webkit-keyframes scroll-left {
    0% {
        -webkit-transform: translateX(100%);
    }
    100% {
        -webkit-transform: translateX(-100%);
    }
}

@keyframes scroll-left {
    0% {
        -moz-transform: translateX(50%);
        -webkit-transform: translateX(50%);
        transform: translateX(50%);
    }
    100% {
        -moz-transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }
}
