* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #FF0000;
    font-family: "Times New Roman", Times, serif;
    line-height: 1.6;
    padding: 20px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.company-info {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

h2 {
    display: none;
}

.randomizer-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.randomizer-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Grid for Melody Input */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 0;
    border: 1px solid #FF0000;
    margin-bottom: 15px;
    height: 200px;
    overflow: visible;
}

.grid-item {
    border-bottom: 1px solid #FF0000;
    border-right: 1px solid #FF0000;
    position: relative;
}

.grid-item:nth-child(3n) {
    border-right: none;
}

.grid-item.selected {
    background-color: #FF0000;
}

/* Pie Chart for Sonic Output */
.pie-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    height: 200px;
}

.pie-chart {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid #FF0000;
    overflow: visible;
}

.pie-slice-line {
    position: absolute;
    background-color: #FF0000;
}

.pie-slice {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pie-slice.selected {
    background-color: transparent;
}

/* Intensity chart - fixed to match reference image */
.bar-container {
    height: 200px;
    width: 300px;
    margin-bottom: 15px;
    border: none;
    position: relative;
}

/* Adjustments for the intensity chart to match reference image */
.bar {
    position: absolute;
    bottom: 0;
    border: 1px solid #FF0000;
    background-color: transparent;
    box-sizing: border-box;
}

/* Exact positioning for bars to create stair effect */
.bar:nth-child(1) {
    left: 0;
    width: 60px;
    height: 40px;
}

.bar:nth-child(2) {
    left: 60px;
    width: 60px;
    height: 80px;
}

.bar:nth-child(3) {
    left: 120px;
    width: 60px;
    height: 120px;
}

.bar:nth-child(4) {
    left: 180px;
    width: 60px;
    height: 160px;
}

.bar:nth-child(5) {
    left: 240px;
    width: 60px;
    height: 200px;
}

.bar.selected {
    background-color: #FF0000;
    border: none;
}

/* Result displays - ensuring alignment */
.result {
    min-height: 30px;
    padding: 5px;
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: left;
    color: #FF0000;
}

/* Randomize button */
#randomizeButton {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 10px 0;
    font-size: 1.2rem;
    font-family: "Times New Roman", Times, serif;
    background-color: #000000;
    color: #FF0000;
    border: 1px solid #FF0000;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
}

#randomizeButton:hover {
    background-color: #FF0000;
    color: #000000;
}

/* Mobile responsive */
@media (max-width: 768px) {
    body {
        height: auto;
        overflow: auto;
        padding: 15px;
        min-height: 100vh;
    }
    
    .container {
        padding: 0 5px;
    }
    
    .randomizer-wrapper {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .randomizer-section {
        width: 100%;
        max-width: 300px;
    }
    
    .grid-container {
        height: 150px;
        width: 100%;
    }
    
    .pie-container {
        height: 160px;
    }
    
    .pie-chart {
        height: 150px;
        width: 150px;
        margin: 0 auto;
        border: 1px solid #FF0000;
    }
    
    .bar-container {
        height: 150px;
        width: 225px; /* Maintaining the same proportion */
        margin: 0 auto;
    }
    
    /* Adjust intensity bars for mobile */
    .bar:nth-child(1) {
        left: 0;
        width: 45px;
        height: 30px;
    }
    
    .bar:nth-child(2) {
        left: 45px;
        width: 45px;
        height: 60px;
    }
    
    .bar:nth-child(3) {
        left: 90px;
        width: 45px;
        height: 90px;
    }
    
    .bar:nth-child(4) {
        left: 135px;
        width: 45px;
        height: 120px;
    }
    
    .bar:nth-child(5) {
        left: 180px;
        width: 45px;
        height: 150px;
    }
    
    .result {
        font-size: 0.8rem;
        line-height: 1.2;
        word-break: break-word;
        width: 100%;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .company-info {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    
    #randomizeButton {
        width: 160px;
        font-size: 1rem;
        margin: 15px auto;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    h1 {
        font-size: 1.3rem;
    }
    
    .randomizer-section {
        max-width: 250px;
    }
    
    .grid-container {
        height: 120px;
    }
    
    .pie-chart {
        height: 120px;
        width: 120px;
    }
    
    .bar-container {
        height: 120px;
        width: 180px;
    }
    
    /* Adjust intensity bars for very small screens */
    .bar:nth-child(1) {
        width: 36px;
        height: 24px;
    }
    
    .bar:nth-child(2) {
        left: 36px;
        width: 36px;
        height: 48px;
    }
    
    .bar:nth-child(3) {
        left: 72px;
        width: 36px;
        height: 72px;
    }
    
    .bar:nth-child(4) {
        left: 108px;
        width: 36px;
        height: 96px;
    }
    
    .bar:nth-child(5) {
        left: 144px;
        width: 36px;
        height: 120px;
    }
} 