/* Základné nastavenia */
body {
    font-family: Arial, sans-serif;
    background-color: #000033;
    color: #333;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 550px; 
    box-sizing: border-box;
}

h1 {
    color: #007bff;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    color: #555;
    font-size: 1.2em;
    margin-bottom: 25px;
    text-align: center;
}

/* ================================== */
/* POHĽAD 1: VÝBER KATEGÓRIE (Opravené na vertikálne) */
/* ================================== */

#quick-buttons {
    display: flex;
    flex-direction: column; /* Vynúti stohovanie pod seba */
    gap: 15px;
    margin-bottom: 20px;
}

#quick-buttons button {
    background-color: #339900;
    color: white;
    border: none;
    padding: 15px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.1s;
    text-align: center;
    width: 100%; /* Tlačidlá zaberú celú šírku */
}

#quick-buttons button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ================================== */
/* POHĽAD 2: KONVERTOR (Nastavené len na vertikálne stohovanie) */
/* ================================== */

#conversion-fields {
    display: flex;
    flex-direction: column; /* Zabezpečí, že inputy sú vždy pod sebou */
    gap: 25px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 1.785em;
    font-weight: bold;
    color: #339900;
    margin-bottom: 8px;
    text-align: center;
}

.input-group input {
    padding: 20px;
    font-size: 2em;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 10px;
    transition: border-color 0.3s;
    color: #000;
    width: 100%; /* Zabezpečí, že input je v rámci rodiča */
    box-sizing: border-box; 
}

.input-group input:focus {
    border-color: #007bff;
    outline: none;
}

/* Tlačidlo Späť */
#back-button {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    display: block; 
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s;
}

#back-button:hover {
    background-color: #5a6268;
}

/* Na tejto verzii sme odstránili všetky media queries, ktoré by nútili horizontálne usporiadanie. */