@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@500;700&family=Share+Tech+Mono&display=swap');

body {
    background: #000000;
    font-family: Rajdhani, sans-serif;
    overflow-y: hidden;
}

#simulationCanvas {
    position: fixed;
    top: 0;
    left: 0;
    border: none;
    background-color: transparent;
    width: 100vw;    
    height: 100vh;
    image-rendering: pixelated; 
    z-index: 0;
    transition: all 0.2s ease-in-out;
}

.UI {
    z-index: 10;
    pointer-events: none;
}

.state-options {
    display: flex;
    flex-direction: row;
    gap: 5px;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 12rem;
    align-items: center;
    pointer-events: none;
}

.state-btn {
    background-color: rgba(0, 15, 34, 0.541);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    pointer-events: auto;
    border-radius: 8px;
    border: none;
}

#load-file-icon {
    color: #CAB67F;
    width: 40px;
    height: 40px;
}

#save-file-icon {
    color: #CAB67F;
    width: 40px;
    height: 40px;
}

.state-btn:active {
    outline: 2px solid #CAB67F;
}

.state-btn:hover {
    cursor: pointer;
    background-color: rgba(0, 35, 80, 0.541);
}

#input-file-popup {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: 110%;
    left: 40%;
    width: fit-content;
    height: 5rem;
    padding: 1rem;
    border-radius: 18px;
    background-color: rgba(0, 48, 110, 0.541);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #CAB67F;
    pointer-events: auto;
    transition: all 0.3s ease-in-out;
}

#close-file-popup-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 20px;
    height: 20px;
    padding: 0;
}

#close-file-popup-icon {
    width: 20px;
    height: 20px;
    color: #CAB67F;
}

#hide-hud-icon {
    display: inline;
    width: 40px;
    height: 40px;
    color: #CAB67F;
}

#show-hud-icon {
    display: none;
    width: 40px;
    height: 40px;
    color: #CAB67F;
}

.right-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 5rem;
    right: 1rem;
    background-color: rgba(0, 15, 34, 0.541);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    color: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    width: 12rem;
    height: fit-content;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}   

.pattern-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
}

.pattern-selection label {
    font-size: 1rem;
}

.metadata-group {
    color: #fde8a0;
    font-size: 1rem;
    text-align: center;
    display: flex;
    gap: 2rem;
    text-shadow: 0 0 5px black, 
             0 0 10px black, 
             0 0 15px black;
    padding: 0;
    height: 1.5rem;
}

.main-content {
    display: flex;
    padding-left: 1rem;
}

#toggleSimulation {
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.toggleIcon {
  box-sizing: border-box;
  width: 0;
  height: 30px;
  border-color: transparent transparent transparent #fff;
  transition: 0.2s all ease;
  cursor: pointer;
  border-style: solid;
  border-width: 15px 0 15px 25px; /* Forma de Triángulo */
}

#toggleSimulation.playing .toggleIcon {
    border-style: double;
    border-width: 0px 0px 0px 25px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
}

#speedControl, #masterVolume {
    -webkit-appearance: none;
    width: 60%;
    height: 5px;
    background: #000;
    outline: none;
    border: 5px solid #CAB67F;
    border-radius: 8px;
}

#speedControl::-webkit-slider-thumb, #masterVolume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 30px;
    background: #000;
    cursor: pointer;
    border: 3px solid #CAB67F;
    border-radius: 4px;
}

input[type="checkbox"] {
    appearance: none;
    background-color: transparent;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1em;
    height: 1em;
    border: 0.15em solid currentColor;
    border-radius: 0.15em;
    transform: translateY(0.2rem);
    display: inline-grid;
    place-content: center;
    position: relative;
}

input[type="checkbox"]::before {
    content: "";
    width: 0.6em;
    height: 0.6em;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    transform-origin: center;
    transition: transform 180ms ease-in-out;

    background-color: var(--form-control-color, currentColor);
    border-radius: 0.08em;
    z-index: 1;
}

input[type="checkbox"]:checked::before {
    transform: translate(-50%, -50%) scale(1);
}

input[type="radio"] {
    appearance: none;
    background-color: transparent;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1em;
    height: 1em;
    border: 0.15em solid currentColor;
    border-radius: 50%;
    transform: translateY(0.2rem);
    display: inline-grid;
    place-content: center;
    position: relative;
}

input[type="radio"]::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.45em;
    height: 0.45em;
    transform: translate(-50%, -50%) scale(0);
    transform-origin: center;
    transition: transform 140ms ease-in-out;
    background-color: var(--form-control-color, currentColor);
    border-radius: 50%;
    z-index: 1;
}

input[type="radio"]:checked::before {
    transform: translate(-50%, -50%) scale(1);
}

footer {
    display: flex;
    align-items: center;
    justify-content: start;
    color: #ecf9fa;
    width: 90%;
    padding: 20px 20px 20px 30px;
    position: absolute;
    bottom: .5rem;
    pointer-events: none;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 15, 34, 0.541);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    width: fit-content;
    height: auto;
    padding: 20px 20px 20px 20px;
    border-radius: 10px;
    gap: 10px;
}

.link-icons {
    display: flex;
    gap: 10px;
}

.link-icon {
    pointer-events: auto;
    transition: 0.5s all ease;
    width: 30px;
    height: 30px;
    scale: 1.2;
}   

.link-icon:hover {
    cursor: pointer;
    transition: 0.5s all ease;
    scale: 1.4;
}

#git-logo {
    color: rgb(52, 33, 77);
}

#git-logo:hover {
    color: rgb(92, 49, 148);
}

#linkedIn-logo {
    color: rgb(30, 44, 75);
}

#linkedIn-logo:hover {
    color: rgb(48, 75, 133);
}

#twitter-logo {
    color: rgb(139, 139, 139);
}

#twitter-logo:hover {
    color: rgb(189, 189, 189);
}

#web-link {
    pointer-events: auto;
    
}

