@font-face {
    font-family: 'ludvabold';
    src: url('fonts/ludva_bold-webfont.woff2') format('woff2'),
         url('fonts/ludva_bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'gystbold';
    src: url('fonts/gyst-bold-webfont.woff2') format('woff2'),
         url('fonts/gyst-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'lokanovarounded';
    src: url('fonts/lokanova-rounded-webfont.woff2') format('woff2'),
         url('fonts/lokanova-rounded-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'apercu_probold_italic';
    src: url('fonts/apercu_pro_bold_italic-webfont.woff2') format('woff2'),
         url('fonts/apercu_pro_bold_italic-webfont.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'apercu_probold';
    src: url('fonts/apercu_pro_bold-webfont.woff2') format('woff2'),
         url('fonts/apercu_pro_bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'apercu_proitalic';
    src: url('fonts/apercu_pro_italic-webfont.woff2') format('woff2'),
         url('fonts/apercu_pro_italic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'apercu_promedium_italic';
    src: url('fonts/apercu_pro_medium_italic-webfont.woff2') format('woff2'),
         url('fonts/apercu_pro_medium_italic-webfont.woff') format('woff');
    font-weight: medium;
    font-style: italic;
}

@font-face {
    font-family: 'apercu_promedium';
    src: url('fonts/apercu_pro_medium-webfont.woff2') format('woff2'),
         url('fonts/apercu_pro_medium-webfont.woff') format('woff');
    font-weight: medium;
    font-style: normal;
}

@font-face {
    font-family: 'apercu_proregular';
    src: url('fonts/apercu_pro_regular-webfont.woff2') format('woff2'),
         url('fonts/apercu_pro_regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html, body {
	margin: 0;
}
	
body {
	background: #f8f8f8;
	font-family: 'apercu_proregular', sans-serif;
	font-weight: regular;
	transition: background .2s ease;
	padding: 120px 0 0 0;
}

h1, h2, h3, b, strong {
	font-family: 'apercu_probold';
}

a {
    color: #3185FC;
    text-decoration: none;
}

a:hover {
    background: #1A936F;
    color: #fff;
}

a.img-link {
    transition: opacity .2s ease;
    display: inline-block;
}

a.img-link:hover {
    background: none;
    opacity: 0.8;
}

#top, #bottom, #left, #right {
	position: fixed;
	display: grid;
	z-index: 100;
	}

#left, #right {
	top: 0; bottom: 0;
	width: 10px;
	}

#left {
	left: 0;
	grid-template-rows: 40% 60%;
}

#right {
	right: 0;
	grid-template-rows: 65% 35%;
}
	
#top, #bottom {
	left: 0; right: 0;
	height: 10px;
	}

#top {
	top: 0;
	grid-template-columns: 60% 40%;
}

#bottom {
	bottom: 0;
	grid-template-columns: 35% 65%;
}

.green { background: #02c39a; }

.yellow { background: #ebb85a; }

.red { background: #d35e46; }

.blue { background: #417297; }
		
.name {
	font-family: 'ludvabold', sans-serif;
	font-style: normal;
	text-transform: uppercase;
	font-size: 9rem;
	color: #050517;
	transform: rotate(-3deg);
	position: fixed;
	z-index: 99;
	top: 20px;
	left: 20px;
	text-shadow: 3px 3px #FFACE4;
	transition: transform .1s ease, color .5s ease, text-shadow .5s ease;
}

.scrolled {
	color: #d35e46;
	text-shadow: 3px 3px #000;	
}

.scrolled2 {
	color: #ebb85a;
	text-shadow: 3px 3px #d35e46;
}

.scrolled3 {
	color: #417297;
	text-shadow: 3px 3px #02c39a;
}

.name:hover {
	transform: rotate(-5deg);
	font-family: 'lokanovarounded';
	font-size: 8rem;
}

h1.section {
	font-family: 'lokanovarounded';
	font-size: 3rem;
	font-weight: normal;
	text-align: center;
	background: #02c39a;
	color: #fff;
	padding: 10px;
	border-radius: 10px;
	display: block;
	margin: 0 auto;
	width: 500px;
}

p {
	margin: 10px 0;
}

.container {
    width: 95%;
    max-width: 1300px;
    min-height: 200px;
    margin: 0 auto 50px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 30px;
}

.container-inner {
    font-size: 1rem;
    line-height: 1.4;
    padding: 10px 20px 50px;
    border-radius: 20px;
    border: 6px solid #BFD7EA;
    background: #fff;
    transform: scale(1);
    transition: all .2s ease;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.1);
    position: relative;
    display: block;
}

.container-inner--latch {
	cursor: pointer;
}

.container-inner:hover {
    transform: scale(1.05);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
}

.container-inner:nth-child(2) {
	border-color: #d9b9e0;
}

.container-inner:nth-child(3) {
	border-color: #e0e0b9;
}

.container-inner:nth-child(4) {
	border-color: #e0c6b9;
}

.container-inner:nth-child(5) {
	border-color: #b9e0e0;
}

.container-inner:nth-child(6) {
	border-color: #dbdade;
}

.container-inner:nth-child(7) {
	border-color: #e8c4d7;
}

.container-inner:nth-child(8) {
	border-color: #d6f3dd;
}

.container-inner:nth-child(9) {
	border-color: #f1f3d6;
}

.container-inner img {
    width: 100%;
    margin: 10px auto;
    display: block;
    border-radius: 10px;
    border: 2px solid #e9ebed;
}

.container-inner h3 {
    text-align: center;
}

.note {
	font-size: .7rem;
	color: #787b7f;
}

#lightbox {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(2px); 
    text-align: center;
    display: none;
    z-index: 2000;
}

#lightbox p {
    text-align: right; 
    color: #fff; 
    margin-right: 20px; 
    font-size: 12px; 
}

#lightbox img {
    box-shadow: 0 0 25px #111;
    -webkit-box-shadow: 0 0 25px #111;
    -moz-box-shadow: 0 0 25px #111;
    max-width: 1100px;
    width: 80%;
    border-radius: 10px;
}

.filter-toggle-grid {
	width: 614px;
	position: absolute;
	display: grid;
	grid-template-columns: 352px 180px;
	grid-gap: 20px;
	right: 30px;
	top: 30px;
 	z-index: 90;
}

.filters {
	background: #d6e0ed;
  padding: 10px;
  border-radius: 10px;
}

.filter-label {
	font-size: 0.7rem;
}

.toggle-container {
	width: 180px;
	display: grid;
  grid-template-columns: 80px 100px;
  align-items: center;
  background: #e6d9eb;
  padding: 10px;
  border-radius: 10px;
}

.hard-mode-on {
	background: #dfdfdf;
}

.hard-mode-on .toggle-container {
	background: black;
	color: #fff;
}

.hard-mode-on .green,
.hard-mode-on .blue,
.hard-mode-on .yellow,
.hard-mode-on .red  {
	background: black;
}

.switch {
  font-size: 17px;
  position: relative;
  width: 3.5em;
  height: 2em;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  border: 1px solid #adb5bd;
  transition: .4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.4em;
  width: 1.4em;
  border-radius: 20px;
  left: 0.27em;
  bottom: 0.25em;
  background-color: #adb5bd;
  transition: .4s;
}

input:checked + .slider {
  background-color: #007bff;
  border: 1px solid #007bff;
}

input:focus + .slider {
  box-shadow: 0 0 1px #007bff;
}

input:checked + .slider:before {
  transform: translateX(1.4em);
  background-color: #fff;
}

.tag-container {
	position: absolute;
	bottom: 20px;
}

.tag,
.tag-link,
.tag-link-all {
	font-size: 0.68rem;
	background: grey;
	color: #fff;
	padding: 3px 6px;
	border-radius: 6px;
	display: inline-block;
	font-family: 'apercu_probold';
	margin-top: 10px;
	margin-right: 2px;
}

.tag-link,
.tag-link-all {
	cursor: pointer;
	opacity: 1;
	transition: all .2s ease;
}

.tag-link:hover,
.tag-link-all:hover {
	transform: scale(1.04);
}

.tag-link-all {
	background: #eff2f6;
	color: black;
	opacity: 1;
}

.tag-link--active {
	background: #50565d;
}

.tag-link--inactive {
	opacity: 0.5;
}

.tag-brand {
	background: #58c09c;
}

.tag-design {
	background: #e3ba69;
}

.tag-dev {
	background: #4d7194;
}

.tag-personal {
	background: #d35e46;
}

.tag-product {
	background: #8f679d;
}

.no-scroll {
	overflow: hidden;
}

.modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.8);
	backdrop-filter: blur(2px);
	z-index: 200;
	display: flex;
  justify-content: center;
  align-items: center;
  display: none;
  opacity: 0;
}

.modal-inner {
	z-index: 201;
	width: 60%;
	height: auto;
	max-height: 100%;
	overflow: scroll;
	padding: 40px 100px;
	background: #fff;
	border-radius: 12px;
	position: relative;
}

.modal-inner p {
	display: block;
	max-width: 600px;
	margin: 10px auto;
}

.modal-close {
	display: block;
	width: 12px;
	position: absolute;
	top: 20px;
	left: 20px;
	cursor: pointer;
	opacity: 0.7;
}

.modal-close:hover {
	opacity: 1;
}

.modal img {
	max-width: 100%;
}

.latch {
	display: block;
	width: 600px;
	margin: 0 auto;
}

.castle-app {
	display: block;
	width: 650px;
	margin: 0 auto;
}

img.latch-preview {
	border: none;
}

.castle-product {
	cursor: pointer;
}

@media (max-width: 1360px) {
	.name {
		font-size: 7rem;
	}
	
	.filter-toggle-grid {
		right: 0;
	}
}

@media (max-width: 1200px) {
	.filter-toggle-grid {
		transform: scale(0.9);
		transform-origin: top right;
	}
}

@media (max-width: 1100px) {
    .name {
        font-size: 6rem;
    }
    
    .container {
    	max-width: 90%;
    	grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1000px) {
		.name {
        font-size: 5rem;
    } 
}

@media (max-width: 960px) {
		.name {
        font-size: 4rem;
    } 
}

@media (max-width: 886px) {
		.filter-toggle-grid {
			display: block;
			width: 360px;
			right: 43px;
		}

    .toggle-container {
        display: none;
    } 
}

@media (max-width: 600px) {
    .container {
    	grid-template-columns: 1fr;
    }
    
    .modal-inner {
    	padding: 40px;
    }
}

@media (max-width: 500px) {
    .name {
        font-size: 4.5rem;
    } 
    
    .filter-toggle-grid {
    	position: relative;
    	width: 352px;
    	margin-left: -177px;
    	left: 50%;
    	top: 40px;
    	max-width: 100%;
    	transform: scale(1);
    }
    
    body {
    	padding-top: 70px;
    }
    
    .container {
    	margin-top: 60px;
    }
}