:root {
    --dark-bg: #1e1e1e;
    --text-light: #cccccc;
    --text-highlight: #f8f8f2;
    --primary-color: #007acc;
    --input-bg: #2d2d30;
}

body {
    background-color: var(--dark-bg); 
    margin: 0; 
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center; 
    padding-top: 20px; 
    padding-bottom: 0px; 
    color: var(--text-light); 
    font-family: Arial, sans-serif; 
    -webkit-user-select: none; 
    -moz-user-select: none;    
    -ms-user-select: none;     
    user-select: none;
}

#contentIframe {
    border: none; 
    width: 90%; 
    max-width: 620px; 
    min-height: 480px; 
    height: 85vh; 
    max-height: 600px; 
    margin-bottom: 20px; 
}

.mode-control-container {
    width: 90%; 
    max-width: 496px; 
    margin-top: 10px; 
    padding: 10px 15px;
    background-color: var(--input-bg); 
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    
    display: flex;
    flex-direction: column; 
    gap: 10px; 
    margin-bottom: 0; 
}

.mode-selector legend {
    display: none; 
}

.mode-selector {
    border: none;
    padding: 0;
    margin: 0;
    display: flex; 
    flex-wrap: wrap; 
    gap: 0; 
    justify-content: center;
}

.mode-selector label {

    width: auto; 
    margin-right: 20px; 
    display: flex;
    align-items: center;
    padding: 0;
    line-height: 1.2; 
    cursor: pointer; 
    word-break: break-word; 
}

.mode-selector label:last-child {
    margin-right: 0; 
}

.mode-selector input[type="radio"] {
    margin: 0 5px 0 0; 
}

.evm-selector-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    justify-content: center; 
}

.evm-selector-group label {
    font-weight: normal;
}

.evm-selector-group select {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #3c3c3c;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1em;
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 25px;
}

.evm-selector-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.evm-selector-group select:disabled {
    cursor: not-allowed;
    background-color: #444;
    color: #888;
}

@media (max-width: 500px) {
    .mode-control-container {
        padding: 5px 10px;
    }

    .mode-selector {
        justify-content: center;
        flex-wrap: wrap; 
        gap: 0; 
    }

    .mode-selector label {
        width: auto;
        padding: 3px 0; 
        margin-right: 20px; 
    }
    
    .mode-selector label:last-child {
        margin-right: 0; 
    }

    .evm-selector-group {
        align-items: center; 
        gap: 5px; 
    }

    .evm-selector-group select {
        width: 120px; 
    }
}