* {
  font-family: 'Krayewski';
}

body { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    min-height: 100vh; 
    overflow: hidden;
    text-transform: uppercase;} 

  
  ul { 
    position: relative; } 
  
  ul li { 
    list-style: none; 
    text-align: center; } 
  
  ul li a { 
    color: rgb(230, 155, 90); 
    text-decoration: none; 
    font-size: 3em; 
    padding: 5px 20px; 
    display: inline-flex; 
    font-weight: 700; 
    transition: 0.5s; } 
  
  ul li:hover a { 
    color: white; } 
  
  ul li a:before { 
    content: ''; 
    position: absolute; 
    top: 50%; 
    left: 40%; 
    transform: translate(-50%,-50%); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 6.8em; 
    color: black; 
    border-radius: 50%; 
    z-index: -1; 
    opacity: 0; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 500px; 
    transition: letter-spacing 0.5s,left 0.5s; } 
  
  ul li a:hover:before { 
    content: attr(data-text); 
    opacity: 1; 
    left: 50%; 
    letter-spacing: 10px; 
    width: 1000px; 
    height: 1000px; } 
  
  ul li:nth-child(6n+1) 
  
  a:before { background: sandybrown; } 






  
  .perspective-text {
    color: rgb(66, 66, 66);
    font-size: 58px;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
  }
  
  .perspective-line {
    height: 50px;
    overflow: hidden;
    position: relative;
  }
  
  p {
    margin: 0;
    height: 50px;
    line-height: 50px;
    transition: all 0.5s ease-in-out;
  }
  
  .perspective-line:nth-child(odd) {
    transform: skew(60deg, -25deg) scaleY(0.667);
  }
  
  .perspective-line:nth-child(even) {
    transform: skew(0deg, -25deg) scaleY(1.337);
  }
  
  .perspective-text:hover p {
    transform: translate(0, -55px);
  }
  
  .perspective-line:nth-child(1) {
    left: 19px;
  }
  
  .perspective-line:nth-child(2) {
    left: 48px;
  }
  
  .perspective-line:nth-child(3) {
    left: 77px;
  }
  
  .perspective-line:nth-child(4) {
    left: 106px;
  }
  
  .perspective-line:nth-child(5) {
    left: 135px;
  }




  :root {
    --primColor: rgb(66, 66, 66);
    --secoColor: sandybrown;
    --cornerRad: 4px;
  }
  body {
    background-color: var(--secoColor);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
  }
  details {
    margin: 40px;
  }
  summary {
    writing-mode: vertical-lr;
    text-align: center;
    padding: 12px 10px;
    width: 23px;
    height: 17px;
    background-color: var(--primColor);
    border: 2px solid var(--secoColor);
    border-radius: var(--cornerRad);
    color: var(--secoColor);
    cursor: pointer;
    user-select: none;
    outline: none;
    transition: transform 200ms ease-in-out 0s;
  }
  summary::before,
  summary::after {
    position: static;
    top: 0;
    left: 0;
  }
  summary::before {
    content: "";
  }
  summary::after {
    content: "II";
    letter-spacing: -1px;
  }
  summary:hover {
    transform: scale(1.1);
  }
  summary::marker {
    font-size: 0;
  }
  summary::-webkit-details-marker {
    display: none;
  }
  details[open] .menu {
    animation-name: menuAnim;
  }
  details[open] summary::before {
    content: "X";
  }
  details[open] summary::after {
    content: "";
  }
  .menu {
    height: 0;
    width: fit-content;
    border-radius: var(--cornerRad);
    background-color: var(--primColor);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.2);
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    animation: closeMenu 300ms ease-in-out forwards;
  }
  .menu a {
    padding: 12px 24px;
    margin: 0 16px;
    color: var(--secoColor);
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    text-decoration: none;
    text-align: center;
    transition: filter 200ms linear 0s;
  }
  .menu a:nth-of-type(1) {
    padding-top: 24px;
  }
  .menu a:nth-last-of-type(1) {
    border-bottom: none;
  }
  .menu a:hover {
    filter: brightness(200%);
  }
  details::before {
    color: var(--secoColor);
    position: absolute;
    margin-left: 80px;
    padding: 10px 10px;
    opacity: 0.4;
    
  }
  details[open]::before {
    animation: fadeMe 300ms linear forwards;
  }
  @keyframes menuAnim {
    0% {
      height: 0;
    }
    100% {
      height: 312px;
    }
  }
  @keyframes fadeMe {
    0% {
      opacity: 0.4;
    }
    100% {
      opacity: 0;
    }
  }
  
  