body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    line-height: 1.5;
    background-color: #1a1a1a;
    color: #ffffff;
}

.section {
    margin: 2rem auto;
    max-width: 800px;
    padding: 1.5rem;
    background-color: #2d2d2d;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 1rem;
}

.calc-input {
    width: 100px;
    padding: 0.5rem;
    border: 2px solid transparent;
    border-radius: 4px;
    font-family: 'DM Mono', monospace;
    background-color: #1a1a1a;
    color: #c4b5fd;
    appearance: textfield;
    -moz-appearance: textfield;
    font-size: 1.125rem;
}

.calc-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

.calc-button {
    padding: 0.5rem 1rem;
    background-color: #8b5cf6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-left: auto;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
}

.calc-button:hover {
    background-color: #7c3aed;
}

.calc-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

.calc-button:focus:not(:focus-visible) {
    box-shadow: none;
}

.calc-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #a78bfa;
    text-align: center;
    margin-bottom: 2rem;
}

input:focus {
    outline: none;
    border-color: rgb(147, 51, 234);
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-group span[id^="result"] {
    min-width: 100px;
    display: inline-block;
    font-weight: bold;
    color: rgb(216, 180, 254);  /* Bright purple */
    font-family: 'DM Mono', monospace;
}

.text-center { text-align: center; }
.py-4 { 
    padding-top: 1rem; 
    padding-bottom: 1rem; 
}
.ml-2 { margin-left: 0.5rem; }

#result, #result2, #result3 {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 1.125rem;
    color: #c4b5fd;
    min-width: 60px;
    display: inline-block;
}

@media (max-width: 600px) {
    .section {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .input-group {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        text-align: center;
    }
    
    .input-group label {
        width: 100%;
        text-align: center;
    }
    
    .calc-input {
        width: 20vw;
        min-width: 80px;
        max-width: 120px;
        text-align: center;
    }
    
    .calc-button {
        margin-left: 0;
        width: auto;
        min-width: 120px;
        margin-top: 0.75rem;
        padding: 0.5rem 1.5rem;
    }
    
    span {
        text-align: center;
    }
    
    .section-heading {
        font-size: 2rem;
    }
} 