
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background-color: #111111;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

#title {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
}

#info {
    font-size: 14px;
    color: #ffffff;
    text-align: left;
}

#visualization-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#visualization-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

button:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    header {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

#leftButtons {
    grid-column: 1;
}

#rightButtons {
    grid-column: 3;
    justify-self: end;
}

.dialog {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.dialog-content {
    background-color: #2a2a2a;
    color: #ffffff;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    height: 80vh;
    border-radius: 8px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
}

.close-button {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #fff;
}

.dialog-text {
    margin-top: 20px;
    line-height: 1.6;
    overflow: auto;
    padding-right: 10px;
    flex: 1;
}

.dialog-text::-webkit-scrollbar {
    width: 10px;
}

.dialog-text::-webkit-scrollbar-track {
    background: #2a2a2a;
}

.dialog-text::-webkit-scrollbar-thumb {
    background: #6e6e6e;
    border-radius: 5px;
}

.dialog-text::-webkit-scrollbar-thumb:hover {
    background: #8e8e8e;
}

.dialog-text ul {
    margin: 10px 0;
    padding-left: 20px;
}

.dialog-text a {
    color: #4a9eff;
    text-decoration: none;
}

.dialog-text a:hover {
    text-decoration: underline;
}

#aboutButton {
    background-color: #4a4a4a;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#aboutButton:hover {
    background-color: #5a5a5a;
}

