/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
    transition: background-color 1s ease;
    background-color: #000;
    color: rgba(255, 255, 255, 0.6);
}

main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    align-items: center;
}
        
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.version {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    z-index: 101;
    font-family: monospace;
    margin-top: 10px;
}

.btn-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
    align-items: center;
    margin-bottom: 15px;
    min-width: 200px;
}

.control-btn {
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.transition-enabled .control-btn {
    transition: all 0.5s ease;
}

.half-btn {
    display: flex;
    gap: 15px;
    width: 100%;
}

.half-btn .control-btn {
    width: 100%;
}

.bg-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    transition: all 1s ease;
    text-align: center;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.play, .pause {
    width: 10px;
    height: 10px;
}

.download, .copy {
    width: 14px;
    height: 14px;
}

body.white-bg {
    background-color: #fff;
}

.dark-button {
    background-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.4);
}
.sun-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.moon-icon {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.animate-btn.active {
    background-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}