
@font-face {
	font-family: 'Roboto Mono';
	src: local('Roboto Mono'), local('RobotoMono-Regular'), url('../files/RobotoMono-Regular.woff2') format('woff2');
	font-style: normal;
	font-weight: 400;
}

@font-face {
	font-family: 'Roboto Mono';
	src: local('Roboto Mono Medium'), local('RobotoMono-Medium'), url('../files/RobotoMono-Medium.woff2') format('woff2');
	font-style: normal;
	font-weight: 500;
}



:root {
	color-scheme: light dark;

    --background-color: #222;
    --secondary-background-color: #2e2e2e;

	--color-blue: #049EF4;
    --text-color: #bbb;
    --secondary-text-color: #666;

	--font-size: 16px;
	--line-height: 26px;

    --border-style: 1px solid #444;
	--header-height: 48px;
	--panel-width: 300px;
	--panel-padding: 16px;
	--icon-size: 20px;
}

html, body {
	height: 100%;
    width: 100%;
    overflow: hidden;
}

html {
	font-size: calc(var(--font-size) - 1px);
	line-height: calc(var(--line-height) - 1px);
}

body {
	font-family: 'Roboto Mono', monospace;
	margin: 0px;
	color: var(--text-color);
	background-color: var(--background-color);
}

* {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.card {
	border-radius: 3px;
	overflow: hidden;
	background-color: var(--secondary-background-color);
	padding-bottom: 6px;
	margin-bottom: 16px;
}

.card.selected {
	box-shadow: 0 0 0 3px var(--color-blue);
	text-decoration: none !important;
}

.card .cover {
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	position: relative;
	overflow: hidden;
}

.card .cover img {
	position: absolute;
	width: 100%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.card .title {
	padding: 8px 12px 4px;
	font-size: calc(var(--font-size) - 1px);
	font-weight: 500;
	line-height: calc(var(--line-height) - 6px);
}

.card .tag {
	background-color: var(--background-color);
	color: var(--color-blue);
	margin-left: 6px;
	padding: 1px 6px 2px;
	border-radius: 2px;
	font-size: calc(var(--font-size) - 2px);
	line-height: calc(var(--line-height) - 6px);
}

/* mobile */

@media all and ( max-width: 640px ) {

	:root {
		--header-height: 56px;
		--icon-size: 24px;
	}

	#projects {
		grid-template-columns: repeat(2, 1fr);
	}

	#panel #expandButton {
		display: block;
	}
	#panel {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		right: 0;
		z-index: 1000;
		overflow-x: hidden;
		transition: 0s 0s height;
		border: none;
		height: var(--header-height);
		transition: 0s 0.2s height;
	}
	#panel.open {
		height: 100%;
		transition: 0s 0s height;
	}

	#panelScrim {
		pointer-events: none;
		background-color: rgba(0,0,0,0);
		position: absolute;
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
		z-index: 1000;
		pointer-events: none;
		transition: .2s background-color;
	}
	#panel.open #panelScrim {
		pointer-events: auto;
		background-color: rgba(0,0,0,0.4);
	}

	#contentWrapper {
		position: absolute;
		right: 0;
		top: 0;
		bottom: 0;
		background: var(--background-color);
		box-shadow: 0 0 8px rgba(0,0,0,.1);
		width: calc(100vw - 60px);
		max-width: 360px;
		z-index: 10000;
		transition: .25s transform;
		overflow-x: hidden;
		margin-right: -380px;
		line-height: 2rem;
	}
	#panel.open #contentWrapper {
		transform: translate3d(-380px, 0 ,0);
	}

}


a {
    color: #8ff;
}


.element {
    width: 250px;
    height: 150px;
    box-shadow: 0px 0px 12px rgba(0,255,255,0.5);
    border: 1px solid rgba(127,255,255,0.25);
    font-family: Helvetica, sans-serif;
    text-align: center;
    line-height: normal;
    cursor: default;
}

.element:hover {
    box-shadow: 0px 0px 12px rgba(0,255,255,0.75);
    border: 1px solid rgba(127,255,255,0.75);
}

    .element .number {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 12px;
        color: rgba(127,255,255,0.75);
    }

    .element .symbol {
        position: absolute;
        top: 40px;
        left: 0px;
        right: 0px;
        font-size: 60px;
        font-weight: bold;
        color: rgba(255,255,255,0.75);
        text-shadow: 0 0 10px rgba(0,255,255,0.95);
    }

    .element .details {
        position: absolute;
        bottom: 15px;
        left: 0px;
        right: 0px;
        font-size: 12px;
        color: rgba(127,255,255,0.75);
    }

	.cardImage {
		width: 250px;
		height: 150px;
	}

.menu {
	position: fixed;
	bottom: 20px;
	width: 100%;
	display: flex;
	align-items: center;
	flex-direction: row;
	justify-content: center;
}
	

.menu button {
    color: rgb(255, 255, 255);
    background: transparent;
    border: 0px;
    padding: 5px 10px;
	width: 70px;
	height: 70px;
	font-size: 40px;
	border-radius: 50%;
    cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.menu button:hover {
    background-color: rgba(0,255,255,0.5);
}

.menu button:active {
    color: #000000;
    background-color: rgba(0,255,255,0.75);
}

/* --------------------------------------------------- */
#modal-container {
	display:none;
	position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
}

#modal-container #modal-card {
	position: relative;
	width: 90%;
    height: 100%;
    max-width: 900px;
    background-color: rgba(255,255,255,0.75);
    margin: 0 auto;
}

#modal-card #modal-close {
	position: absolute;
    top: 15px;
    right: 15px;
	font-size: 2em;
	line-height: 1.2em;
	background-color: transparent;
	border: 0px;
	cursor: pointer;
}

#modal-card #modal-image {
	margin: 100px 0 0 10%;
	width: 80%;
	height: auto;
}

#modal-card #modal-desc {
	width: 80%;
    padding: 10px;
    background-color: black;
    color: white;
    font-size: 2em;
    margin: 15px 0 0 10%;
}

#modal-container #modal-left{
	position: fixed;
    top: 50%;
    left: 10px;
	font-size: 3em;
	color: white;
	cursor: pointer;
}

#modal-container #modal-right{
	position: fixed;
    top: 50%;
    right: 10px;
	font-size: 3em;
	color: white;
	cursor: pointer;
}
/* --------------------------------------------------- */
.noselect {
	-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; /* Non-prefixed version, currently
									supported by Chrome, Edge, Opera and Firefox */
  }
