
/* ------------------------- FULL PAGE MENU ------------------------- */

*,
*::after,
*::before {
	box-sizing: border-box;
}


body {
  margin: 0;
  --color-menu: #0099FF;
  --color-menu-hover: #FFFFFF;
  --color-bg: #16161D;
  --color-link: #C7C7C7;
  --color-link-alt: #C7C7C7;
  --color-link-hover: #0099FF;
  --color-link-alt-hover: #0099FF;
  --color-button-menu: #F5F5F5;
  --color-button-menu-hover: #0099FF;
  --color-button-close: #F5F5F5;
  --color-button-close-hover: #0099FF;
  --color-background-color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


.unbutton {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
}

.unbutton:focus {
	outline: none;
}

.hover-line {
	white-space: nowrap;
	overflow: hidden;
	position: relative;
	display: inline-block;
}

.hover-line::before {
	content: '';
	height: 1px;
	width: 100%;
	background: currentColor;
	position: absolute;
	top: 92%;
	transition: transform 0.3s;
	transform-origin: 0% 50%;
}

.hover-line:hover::before {
	transform: scaleX(0);
	transform-origin: 100% 50%;
}

.menu-ovr {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  grid-template-columns: 100%;
  grid-template-rows: 100vh;
  z-index: 700;
}

.frame {
	grid-area: 1 / 1 / 2 / 2;
	z-index: 800;
	display: grid;
	align-content: space-between;
	align-items: center;
	height: 100vh;
	width: 100vw;
	padding: 1rem 1rem 0.5rem 1rem;
	pointer-events: none;
	font-size: 1rem;
	grid-template-columns: repeat(4,25%);
	grid-template-rows: auto auto 1fr auto;
	grid-template-areas: 'author heading heading button'
						'... ... ... ...'
						'links links links links'
						'title title title title';	
}

.frame--menu-open {
	color: var(--color-text-alt);
	--color-link: var(--color-link-alt);
	--color-link-hover: var(--color-link-hover-alt);
	--color-heading-main: var(--color-heading-main-alt);
}

.frame__title {
	grid-area: title;
	font-size: inherit;
	font-weight: normal;
	margin: 0.5rem 0 0;
	justify-self: center;
}

.frame__links {
	grid-area: links;
	display: flex;
	flex-wrap: wrap;
	justify-self: center;
	align-self: end;
}

.frame__links a {
	margin: 0 0.5rem;
}

.frame__author {
	margin: 0;
	grid-area: author;
}

.frame__button {
	justify-self: end;
	grid-area: button;
}

.frame--menu-open .frame__author {
	opacity: 0;
	pointer-events: none;
}

.frame__heading {
	grid-area: heading;
	text-align: center;
	margin: 0;
	display: flex;
	flex-direction: column;
	white-space: nowrap;
	justify-self: center;
}

.frame__heading-main {
	line-height: 0.8;
	display: block;
	font-size: 1.5rem;
	color: var(--color-heading-main);
}

.frame__heading-sub {
	font-size: 0.75rem;
	line-height: 1;
	color: var(--color-heading-sub);
}

.frame--menu-open .frame__heading-sub {
	pointer-events: none;
	opacity: 0;
}

.frame a,
.frame button {
	pointer-events: auto;
}

.frame--menu-open .button-menu {
	opacity: 0;
	pointer-events: none;
}

.frontpage {
	grid-area: 1 / 1 / 2 / 2;
	display: flex;
	flex-direction: column;
	width: 100vw;
	position: relative;
	align-items: center;
	height: 100vh;
	justify-content: center;
}

.content__title,
.content__title-main,
.content__title-sub	{
	cursor: default;
	display: flex;
}

.button-enter {
	margin-top: 4vh;
	transition: transform 0.5s ease;
}

.button-enter:hover {
    transform: translateX(15px) rotate(-40deg);
}

.tiles {
	position: absolute;
	left: 50%;
	top: 50%;
	height: 150vh;
	display: flex;
	opacity: 0.25;
	flex-direction: column;
	justify-content: center;
	transform: translate3d(-50%,-50%, 0) rotate(22.5deg);
}

.tiles__line {
	display: flex;
	transform: translateX(25%);
	animation: runner 22s linear infinite;
}

.tiles__line:nth-child(2) {
	animation-duration: 20s;
}

.tiles__line:nth-child(3) {
	animation-duration: 24s;
}

.tiles__line:nth-child(4) {
	animation-duration: 29s;
}

.tiles__line:nth-child(5) {
	animation-duration: 22s;
}

.tiles__line:nth-child(6) {
	animation-duration: 25s;
}


@keyframes runner {
	to {
		transform: translateX(-25%);
	}
}

.tiles__line-img {
	--tile-margin: 8px;
	flex: none;
	width: 30vh;
	height: 30vh;
	margin: var(--tile-margin);
	background-size: cover;
	background-position: center;
	border-radius: 8px;
}

.tiles__line-img--large {
	width: 100vh;
	border-radius: 8px;
}




/*-- RESPONSIVE SETTINGS -----------------------------*/

/* Tablet */

@media screen and (max-width: 900px) {

  .menu__item-tiny {
  	font-size: 0.8rem;
  }

  .menu__item-text {
  	font-size: 3rem;
  }

}


/* Mobile */

@media screen and (max-width: 600px) {


	/* Menu Containers */

    .menu {
      width: auto;
      height: auto;
      display: grid;
      grid-template-columns: 1fr;
      margin: 12rem 3rem 18rem 3rem;
    }


  /* Menu Styles */

		.menu__item {
	    display: grid;
	    grid-template-columns: 1fr 3fr 1fr;
	    grid-auto-flow: row;
	    gap: 5vw;
	    vertical-align: middle;
	    align-items: center;
	    justify-items: center;
	  }


	  .menu__item-tiny {
	  	font-size: 0.6rem;
	  }

	  .menu__item-text {
	  	font-size: 1.7rem;
	  }


	/* Menu Buttons */

    .button-menu {
      transform: scale(1) translateX(5px);
    }

        /* Hover Effects */

          .button-menu:focus-visible,
          .button-menu:hover {
            fill: var(--accentColor);
            transform: scale(1.1) translateX(5px);
          }


    .button-close {
      transform: scale(0.8) translateX(5px);
    }

        /* Hover Effects */

          .button-close:focus-visible,
          .button-close:hover {
            fill: var(--accentColor);
            transform: scale(0.9) translateX(5px);
          }

}
