@font-face {
  font-family: 'Lemon Milk';
  src: url('fonts/LEMONMILK-Regular.otf') format('opentype');
  font-weight: normal;
}

@font-face {
  font-family: 'Twentieth Century';
  src: url('fonts/TCM_____.TTF') format('truetype');
  font-weight: normal;
}



html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: sans-serif;
    overflow: auto;
    display: flex;
    flex-direction: column;
  }
  
  header, footer {
    background: #1a1a1a; /* light grey */
    color: #ffffff;
    font-family: 'Twentieth Century', sans-serif;
    z-index: 10;
  }




  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    padding: 1rem 2rem;
    font-family: 'Twentieth Century', sans-serif;
    z-index: 10;
    
  }
  
  .logo img {
    height: 40px;
  }
  
  .nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .nav-links a i {
    margin-right: 5px;
  }
  
  .nav-links a:hover {
    color: #555;
  }

  


    /* Dropdown styles */
  .dropdown {
    position: relative;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    top: 100%;
    left: 0;
    z-index: 20;
    min-width: 180px;
  }

  .dropdown-content a {
    padding: 0.75rem 1rem;
    display: block;
    color: black;
    text-decoration: none;
  }

  .dropdown-content a:hover {
    background-color: #f0f0f0;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }





  main {
    /*flex: 1;
    position: relative;
    overflow: hidden;*/
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    
    background: #272727; /* optional */
  }

  

  .canvas-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    position: relative;
  }

  canvas#canvas {
    width: 100%;
    height: 100%;
    /*V IMP: CANVAS WIDTH*/
    max-width: 1200px;  /* LIMIT WIDTH */
    aspect-ratio: 16 / 9; /* maintain ratio */
    background: transparent;
    touch-action: none;
    display: block;
    image-rendering: auto;
  }

  #canvas:focus {
    outline: none;
  }
  
  /*
  #canvas {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    touch-action: none;
    background: transparent;
  }
  */


  /* Popup overlay */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Content box */
  .popup-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 80%;
    max-height: 80%;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
  }
  
  .popup-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 1rem;
  }
  
  .popup-content button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #161616;
    color: white;
    border: none;
    cursor: pointer;
  }
  
  .hidden {
    display: none;
  }
  