.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #00d4ff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.converter-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.screen-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    min-height: 300px;
    position: relative;
}

.screen-rectangle {
    border: 4px solid #00d4ff;
    background: rgba(0, 212, 255, 0.2);
    transition: all 0.5s ease;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.screen-rectangle::after {
    content: 'ЭКРАН';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    color: #00d4ff;
    font-weight: bold;
}

.ratio-selector {
    text-align: center;
    margin-bottom: 20px;
}

.ratio-selector label {
    font-size: 1.2em;
    margin-right: 10px;
}

.ratio-selector select {
    padding: 10px 20px;
    font-size: 1em;
    border: 2px solid #00d4ff;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
    cursor: pointer;
}

.ratio-selector select:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.input-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.input-group {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.input-group label {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #00d4ff;
    display: block;
}

.input-group input {
    width: 100%;
    padding: 12px;
    font-size: 1.2em;
    border: 2px solid #00d4ff;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
    margin-bottom: 10px;
}

.input-group input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.unit-select {
    width: 100%;
    padding: 8px;
    font-size: 0.9em;
    border: 2px solid #00d4ff;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
    cursor: pointer;
}

.table-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.table-section h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    color: #00d4ff;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.size-table th {
    background: rgba(0, 212, 255, 0.3);
    padding: 15px;
    text-align: center;
    font-size: 1.1em;
    border: 1px solid rgba(0, 212, 255, 0.5);
}

.size-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.size-table tr:hover {
    background: rgba(0, 212, 255, 0.1);
}

.info-text {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }

    .input-fields {
        grid-template-columns: 1fr;
    }

    .size-table {
        font-size: 0.85em;
    }

    .size-table th,
    .size-table td {
        padding: 8px 4px;
    }
}
