/* #define FONT "Ubuntu, sans-serif" */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

/* #define FONT "EB Garamond, serif" */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@600&display=swap');

/* https://codepen.io/lisilinhart/pen/MWaXgxX */

body{
	font-family: 'Ubuntu', sans-serif;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
  /*background-color: var(--bgcolor);*/
  background-color: #181818;
}

/* --------- Card Animation ---------- */
.card:not(:empty):hover,
.card:not(:empty):focus {
  z-index: 1;
  color: #fff;
  opacity: 1;
  cursor: pointer;
}
.card:not(:empty):hover:after,
.card:not(:empty):focus:after {
  opacity: 1;
}
.card:not(:empty):hover:before,
.card:not(:empty):focus:before {
  opacity: 0;
}

.card {
  padding: 10px;
  /*background: #c7e8fd;*/
  border-radius: 0.7em;
  /*opacity: 0.6;*/
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  transition-property: background, transform, color, opacity;
  /*color: #0273c6;*/
  background: var(--cardcolor);
  color: var(--cardtxtcolor);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.card:not(:empty):before {
  box-shadow: -2px 2px 8px 2px rgba(0, 0, 0, 0.2);
}
.card:empty {
  opacity: 0.5;
}
.card:before, .card:after {
  content: "";
  position: absolute;
  border-radius: 0.7em;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}
.card:after {
  box-shadow: -20px 20px 12px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
}

#loading{
  background-color: #121212;
}

/* --------- Grid ---------- */
.grid {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-gap: 20px;
}

.item1 {
  grid-area: 1/1/2/2;
}

.err404 {
  grid-area: 3/1/4/2;
}

.err404.card:hover, .err404.card:focus{
  background: #c98908/*linear-gradient(45deg, #FBD405, #c98908);*/
}

.fermi{
  grid-area: 2/3/3/1;
}
.fermi:hover, .fermi:focus{
  background: #32a727;
}

.salamusk {
  grid-area: 2/3/3/5;
}
.salamusk.card:hover, .salamusk.card:focus {
  background: #fe543c;
}

.store {
  grid-area: 4/1/4/3;
}
.store.card:hover, .store.card:focus {
  background: url('/img/lorenzobg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right;
  transition: 700ms;
  backdrop-filter: opacity(0.7);
  -webkit-backdrop-filter: opacity(0.7);
}
.fernot {
  grid-area: 4/1/4/3;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #10101e;
}
.fernot:hover{
  background: #10101e;
  color: #f29c46 !important;
}
.fernot img{
  max-width: 90%;
  max-height: 100% !important;
}

.ad{
  top: -1px;
  padding: 0;
  margin: 0;
  right: 20px;
  position: absolute;
  background-color: var(--cardtxtcolor);
  padding: 5px 7px;
  border-bottom-right-radius: 0.7em;
  border-bottom-left-radius: 0.7em;
  color: var(--cardcolor);
}
.store.card:hover > .ad{
  color: #000;
}

.IoL {
  grid-area: 3/2/4/2;
}
.IoL.card:hover, .IoL.card:focus {
  /* background: linear-gradient(45deg, #4568dc, #b06ab3); */
  background: #b06ab3;
}

.item6 {
  grid-area: 3/4/4/5;
}

.creative {
  grid-area: 3/4/5/5;
}
.creative.card:hover, .creative.card:focus {
  background: url('/img/myloxyloto.jpg');
  background-size: cover;
  background-position: right;
  transition: 700ms;
  /*
  backdrop-filter: opacity(0.7);
  -webkit-backdrop-filter: opacity(0.7);
  */
}

.catpics {
  grid-area: 1/4/2/6;
}
.catpics.card:hover, .catpics.card:focus {
  background: #363636;
}

.videoar {
  grid-area: 1/2/1/4;
}
.videoar.card:hover, .videoar.card:focus {
  background: #f00;
}

.sitemap {
  grid-area: 3/4/4/3;
}
.sitemap.card:hover, .sitemap.card:focus{
  background: #181849;
}


.randCSS {
  grid-area: 3/5/4/6;
}

.randCSS.card:hover, .randCSS.card:focus {
  /* background: linear-gradient(to right, #214ce5, #2465f1); /* CSS logo colors */
  background: #214ce5;
}

.contacts {
  grid-area: 4/5/5/6;
}
.contacts.card:hover, .contacts.card:focus {
  background: #15c32c;
}

.theme {
	grid-area: 2/5/2/6;
  background-position: 1000%;
}
.theme.card:hover, .theme.card:focus{
  /* bg image in themelight.css and themedark.css */
  background-color: #000;
}

.oldindex {
	grid-area: 4/4/4/3;
}
/*
.oldindex.card:hover, .oldindex.card:focus {
  background: #CFB53B;
}
*/


.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/*--------- Layout -------- */
*,
*:before,
*:after {
  position: relative;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 2.75rem 0 1.05rem;
  line-height: 1.2;
}

h1 {
  margin-top: 0;
  font-size: 4.3vh;/*3.052em*/
}

h2 {
  font-size: 2.2vh;
}

p {
  line-height: 1.3;
}

/* --------- Responsive ---------- */

@media only screen and (max-width: 600px), (orientation:portrait) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, minmax(auto, 300px));
    overflow-y: scroll;
  }

  .card {
    grid-area: auto;
    text-align: left;
    height: 16vh;
  }

  .card h1, .card h2{
    font-size: min(4.9vw, 40px);
    margin-bottom: 10px;
  }

  .card:empty {
    display: none;
  }

  .grid2line{
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .store.grid2line h2{
    font-size: 3.7vw;
  }
  .store.grid2line h2{
    margin-bottom: 0;
  }
  .store.grid2line h1{
    margin-bottom: 10px;
  }

  /*.fermi.grid2line h1{
    margin-bottom: 0;
  }*/
  .fermi.grid2line h2{
    display: none;
    /*margin-top: 0;
    margin-bottom: 10px;
    font-size: 3.4vw; /* 0.8 rem */
  }
}

/* this one's basically just for samsung fold small display */
@media only screen and (max-width: 411px) and (orientation:portrait) {
  .grid {
    grid-template-columns: repeat(2, 47.3%);
    padding: 5%;
    place-items: center;
  }
  .card{
    width: 100%;
  }
}


@media only screen and (min-width: 600px) and (orientation: landscape){
  body{ overflow: hidden; }

  .grid2line{
    display: flex;
    flex-direction: column;
    align-items: flex-start /*!important*/;
  }

  .grid2line.card{
    justify-content:flex-end;
  }

  .store.grid2line h2{
    margin-bottom: 0;
  }

  .fermi.grid2line h1{
    margin: 0;
  }
  .fermi.grid2line h2{
    margin-top: 0;
  }
}


@media only screen and (min-width: 1367px) and (orientation: landscape){
  .grid{
    padding: 10vh 10vw;
  }
}













@font-face {
	font-family: 'IBM Plex Mono';
	src: url(/font/IBMPlex/ibm-plex-mono-medium.ttf);
}

.m-scroll {
	display: flex;
	position: relative;
	width: 100%;
	height: 1.3em;
	overflow: hidden;
	z-index: 1;
}

.scrolling-text-element{
	padding-left: 30px;
  font-family: 'IBM Plex Mono', monospace;
}

.m-scroll__title {
	display: flex;
	position: absolute;
	align-items: center;
	justify-content: flex-start;
	white-space: nowrap;
  height: 1em;
}

.scroll__title-left>div {
	display: flex;
	-webkit-animation: scrollText-L infinite linear;
	animation: scrollText-L infinite linear;
}
.scroll__title-right>div {
	display: flex;
	-webkit-animation: scrollText-R infinite linear;
	animation: scrollText-R infinite linear;
}

.st-l-1>div{
	animation-duration: 35s;
}

.m-scroll__title a {
	text-decoration: none;
	color: #000;
}

.m-scroll__title a:hover {
	-webkit-text-stroke: 1px white;
	color: transparent;
}

/*div:hover {
	animation-play-state: paused;
  }*/
@-webkit-keyframes scrollText-L {
	from {
		transform: translateX(0%);
	}

	to {
		transform: translateX(-50%);
	}
}

@keyframes scrollText-L {
	from {
		transform: translateX(0%);
	}

	to {
		transform: translateX(-50%);
	}
}


@-webkit-keyframes scrollText-R {
	from {
		transform: translateX(-50%);
	}

	to {
		transform: translateX(0%);
	}
}

@keyframes scrollText-R {
	from {
		transform: translateX(-50%);
	}

	to {
		transform: translateX(0%);
	}
}
