body{
  background-color: black;
  image-rendering: optimizespeed;
  word-break: break-word;
  overflow-wrap: break-word;
  color: white;
  font-family: "VCR OSD Mono", sans-serif;
  text-align: center;
  background-image: url("../media/sky.gif");
  background-repeat: no-repeat;
  background-size: cover;
}

@font-face {
  font-family: "VCR OSD Mono";
  src: url("VCR_OSD_MONO_1.001.woff2") format("woff2"),
       url("VCR_OSD_MONO_1.001.ttf") format("truetype");
}

::-webkit-scrollbar {
  display: none; 
}

.ascii {
  font-family: monospace; 
  font-size: 16px;          
  line-height: 16px;        
  text-align: center;
  white-space: pre;   
  margin-top: 40px;
  margin-left: 38px;
}

#preload {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  font-size: 3rem;
  transition: 1s;
}

#preload p {
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  font-size: 1.25rem;
}

#hidden {
  opacity: 0;
  transition: 0s;
}

#hidden.disabled {
  pointer-events: none;
}

#main p {
  color: #ffffff;
}
  
#main {
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  text-align: center;
}

/* Force widget container out of main's flow */
#main .widget-container {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  transform: none !important;
}

.widget-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    height: 100vh;
    background-color: rgba(15, 15, 15, 0.98);
    padding: 16px 0;
    width: 76px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    z-index: 100;
    transform: none !important;
}

.widget-container a {
    color: inherit;
    text-decoration: none;
}

.widget {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 76px;
  height: 72px;
  margin: 0;
  background-color: transparent;
  border-radius: 0;   
  border: none;
  border-left: 3px solid transparent;
  transition: 
    background-color 0.2s ease-out,
    border-left-color 0.2s ease-out;
  position: relative;
}

.widget:hover {
  background-color: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  border-left-color: rgba(255, 255, 255, 0.7);
}

.widget img {
  width: 28px;
  height: 28px;
  margin-bottom: 5px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.widget:hover img {
  opacity: 1;
}

.widget span {
  margin-top: 0;
  font-size: 9px;
  font-weight: 400;
  text-transform: lowercase;
  opacity: 0.65;
  letter-spacing: 0.2px;
  transition: opacity 0.2s ease;
}

.widget:hover span {
  opacity: 0.9;
}

.neon-text {
  text-shadow:
      0 0 7px #8d8d8d,
      0 0 14px #f1f1f1;
}

.modal-open {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-closed {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-open {
    opacity: 1;
}

.overlay-closed {
    opacity: 0;
}

@media (max-width: 768px) {

  body {
    background-image: url("../media/mobile-girl.png"); 
    background-position: center top;
    background-size: cover;
  }

  #main {
    position: static;
    transform: none;
    top: auto;
    left: auto;
    margin: 10px auto 40px;  
    width: 100%;
  }

  .widget-container {
    position: static;
    transform: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    background-color: transparent;
    padding: 20px 10px;
    border: none;
    backdrop-filter: none;
  }

  .widget {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
  }

  .widget img {
    width: 32px;
    height: 32px;
  }

  .widget span {
    font-size: 10px;
  }

  .ascii {
    font-size: 12px;
    line-height: 12px;
    margin-top: 20px;
  }

  small {
    text-shadow:
    0 0 7px #000000,
    0 0 14px #000000;
    color: white;

  }

  .modal {
    align-items: flex-start !important;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .modal .relative {
    width: 100%;
    max-width: 95%;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
  }
}