@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600&display=swap');

body,
html {
  position: relative;
  width: 100%;
  height: 100%;
  font-size: 20px;
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  overflow-y: scroll;
  overflow-x: hidden;
  @supports(display: grid) {
    display: block;
  }
}

.message {
  border: 1px solid #d2d0d0;
  font-size: 1.7vw;
  box-shadow: -2px 2px 10px 0px rgba(#444, 0.4);
  
  @supports(display: grid) {
    display: none;
  }
}

.section {
  width: 90%;
  
  @media screen and (min-width: 768px) {
    padding: 1rem;
  }
  
  @supports(display: grid) {
    display: block;
  }
}

h1 {
  font-size: 2rem;
}

.grid {
  display: flex;
  justify-content: center;
}

.item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  background: #ffffff;
  color: #fff;
  grid-column-start: auto;
  grid-row-start: auto;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: -2px 2px 10px 0px rgba(#444, 0.4);
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
  counter-increment: item-counter;
  z-index: 1;

  
  &:nth-of-type(1n) {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #00000000;
    font-weight: 350;
    text-align: center;
    width: 250px;
    color: #fafafa;
    text-shadow: 3px 0px 7px rgba(55, 152, 231, 0.624), 
      -3px 0px 7px rgba(48, 123, 185, 0.553), 
      0px 4px 7px rgba(32, 81, 122, 0.375);
    letter-spacing: 5px;
    padding-left: auto;
    margin-left: auto;
  }

  &:nth-of-type(2n) {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #00000000;
    font-weight: 350;
    text-align: center;
    width: 250px;
  }

  &:nth-of-type(3n) {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #00000000;
    font-weight: 350;
    text-align: center;  
    width: 250px;
  }
  
  &:nth-of-type(4n) {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #00000000;
    font-weight: 350;
    text-align: center;
    width: 250px;
  }
  
  &:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  
  &:hover {
    transform: scale(1.10);
    transition: 0.3s cubic-bezier(0.075, 0.82, 0.165, 1) all;
    
    &:after {
      opacity: 0;
    }
  }

  &--medium {
    grid-row-end: span 2;
  }

  &--large {
    grid-row-end: span 3;
  }

  &--full {
    grid-column-end: auto;

    @media screen and (min-width: 768px) {
      grid-column: 1/-1;
      grid-row-end: span 2;
    }
  }
  
  &__details {
    position: relative;
    z-index: 1;
    color: #444;
    background: #fff;
    text-transform: lowercase;
    letter-spacing: 1px;
    color: #828282;
    
    &:before {
      content: counter(item-counter);
      font-weight: bold;
      font-size: 1.1rem;
      color: #444;
    }
  }
}

.navlist a {
  text-decoration: none;
  color: #fff;
  background-color: #000000db;
  padding: 5px;
  animation: fadeInAnimation ease-in-out 1s;
  transition: width 0.44s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}

.navlist a:hover {
  background-color: #fff;
  color: #000;
  animation: fadeInAnimation ease-in-out 1s;
  animation-iteration-count: 1; 
  animation-fill-mode: forwards; 
  transition: width 0.44s cubic-bezier(0.895, 0.03, 0.685, 0.22);
  mix-blend-mode: color-dodge;
}

.navicon:hover {
  mix-blend-mode: difference;
	animation: fadeInAnimation ease-in-out 1s;
  animation-iteration-count: 1; 
  animation-fill-mode: forwards; 
  transition: width 0.44s cubic-bezier(0.895, 0.03, 0.685, 0.22);
  width: 85px;
}
.navigation {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 300;
}

.navicon {
  transition: width 0.2s cubic-bezier(0.895, 0.03, 0.685, 0.22);
  z-index: 1;
}

.navlist li {
  list-style-type: none;
  text-align: right;
  padding: 6px;
}

.navlist {
  padding-bottom: 10px;
  margin-right: 5px;
  display: none;
}

.logo:hover {
  mix-blend-mode: difference;
  animation: fadeInAnimation ease-in-out 3s;
  animation-iteration-count: 1; 
  animation-fill-mode: forwards; 
  transition: width 0.3s cubic-bezier(0.895, 0.03, 0.685, 0.22);
  width: 4%;
}
.logo {
  transition: width 0.3s cubic-bezier(0.895, 0.03, 0.685, 0.22);
  mix-blend-mode: lighten;
  width: 3%;    
  padding-top: 4rem;
  text-align: center;
}
.soundC {
  display: none;
}



@media screen and (max-width: 768px) {
  .item {
  &:nth-of-type(1n) {
    font-weight: 500;
    letter-spacing: normal;
  }
}

  canvas {
    display: none;
  }
  .logo {
    margin: auto;
    width: 70%;
    display: none;
  }
  .navicon {
    width: 70px;
    padding-top: 20px;
    display: block;
    margin-right: auto;
    margin-left: auto;
  }
  .navigation {
    float: none;
  }
  html { 
    overflow-x: hidden;
  }
  .navlist li {
    text-align: center;
    font-size: 32px;
  }
  .grid {
    font-size: 50px;
    display: grid;
  }
  
}
@media (hover: hover) and (pointer: fine) {
	.navlist:hover::before {
		left: 0;
		right: auto;
		width: 100%; 
	}
}
