body {
    background-color: #f5f5f5;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 18px; /* Základná veľkosť pre veľké obrazovky */
}

h4, h5 {
    margin-top: 30px;
    font-weight: 400;
    color: #424242;
    font-size: 2rem; /* Väčší nadpis pre veľké obrazovky */
}

.container {
    margin-top: 50px;
    max-width: 1400px; /* Väčší kontajner pre veľké obrazovky */
    padding: 0 40px; /* Väčšie odsadenie pre pohodlné čítanie */
}

input[type=text], input[type=password], textarea {
    color: #000;
    border: none;
    border-bottom: 2px solid #9e9e9e;
    background-color: transparent;
    outline: none;
    height: 3.5rem;
    width: 100%;
    font-size: 1.4rem;
    margin-bottom: 25px;
}

input[type=text]:focus, input[type=password]:focus, textarea:focus {
    border-bottom: 2px solid #1976D2;
    box-shadow: 0 1px 0 0 #1976D2;
}

#event-codes > tr > td > form[method="post"] > input[name="new_code"] {
    width: 60px;
}

.btn {
    background-color: #1976D2;
    color: white;
    padding: 15px 25px;
    font-size: 1.2rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-top: 10px;
    text-align: center;
    line-height: 1; /* Zabezpečí, že riadkovanie je konzistentné */
    vertical-align: middle; /* Vertikálne zarovnanie textu */
    height: auto;
}

.btn:hover {
    background-color: #1565C0;
}

.btn-small {
    padding: 0px 5px;
}

table {
    width: 100%;
    margin-top: 30px;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 1.2rem;
}

table thead {
    background-color: #1976D2;
    color: #fff;
}

table thead th {
    padding: 20px 15px;
    text-align: left;
}

table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tbody td {
    padding: 15px 20px;
}

table tbody tr.blue {
    background-color: #e3f2fd;
}

.progress {
    height: 30px;
    background-color: #cfd8dc;
    border-radius: 15px;
    margin-top: 25px;
    overflow: hidden;
}

.determinate {
    background-color: #1976D2;
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

/* Mobilné zariadenia: šírka do 480px */
@media only screen and (max-width: 480px) {
    body {
        font-size: 14px; /* Menšie písmo pre mobilné zariadenia */
    }

    h4, h5 {
        font-size: 1.4rem; /* Menšie nadpisy pre mobilné zariadenia */
        margin-top: 40px; /* Väčšie medzery hore a dole */
        margin-bottom: 40px;
    }

    input[type=text], input[type=password], textarea {
        font-size: 1rem;
        height: 2.8rem; /* Menšie input polia pre mobilné zariadenia */
        margin-bottom: 30px; /* Väčšie medzery dole */
    }

    .btn {
        font-size: 1rem;
        padding: 12px 20px; /* Menšie tlačidlá na mobiloch */
        margin-top: 40px; /* Väčšie medzery hore */
        margin-bottom: 40px; /* Väčšie medzery dole */
    }

    table thead th, table tbody td {
        padding: 10px; /* Zmenšiť padding v tabuľkách pre mobilné zariadenia */
        margin-top: 30px; /* Väčšie medzery hore */
        margin-bottom: 30px; /* Väčšie medzery dole */
    }

    .progress {
        height: 16px; /* Menší progress bar pre mobilné zariadenia */
        margin-top: 30px; /* Väčšie medzery hore */
        margin-bottom: 30px; /* Väčšie medzery dole */
    }
}

/* Tablety: šírka od 481px do 768px */
@media only screen and (min-width: 481px) and (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h4, h5 {
        font-size: 1.6rem; /* O niečo väčšie nadpisy pre tablety */
        margin-top: 40px; /* Väčšie medzery hore */
        margin-bottom: 40px; /* Väčšie medzery dole */
    }

    input[type=text], input[type=password], textarea {
        font-size: 1.2rem;
        height: 3rem; /* O niečo väčšie input polia pre tablety */
        margin-bottom: 30px; /* Väčšie medzery dole */
    }

    .btn {
        font-size: 1.1rem;
        padding: 14px 22px;
        margin-top: 40px; /* Väčšie medzery hore */
        margin-bottom: 40px; /* Väčšie medzery dole */
    }

    table thead th, table tbody td {
        padding: 12px 15px;
        margin-top: 30px; /* Väčšie medzery hore */
        margin-bottom: 30px; /* Väčšie medzery dole */
    }

    .progress {
        height: 20px;
        margin-top: 30px; /* Väčšie medzery hore */
        margin-bottom: 30px; /* Väčšie medzery dole */
    }
}

/* Stredné zariadenia (menšie laptopy): šírka od 769px do 1024px */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    body {
        font-size: 17px;
    }

    h4, h5 {
        font-size: 1.8rem; /* Väčšie nadpisy pre menšie laptopy */
        margin-top: 40px; /* Väčšie medzery hore */
        margin-bottom: 40px; /* Väčšie medzery dole */
    }

    input[type=text], input[type=password], textarea {
        font-size: 1.3rem;
        height: 3.2rem;
        margin-bottom: 30px; /* Väčšie medzery dole */
    }

    .btn {
        font-size: 1.15rem;
        padding: 15px 23px;
        margin-top: 40px; /* Väčšie medzery hore */
        margin-bottom: 40px; /* Väčšie medzery dole */
    }

    table thead th, table tbody td {
        padding: 14px 18px;
        margin-top: 30px; /* Väčšie medzery hore */
        margin-bottom: 30px; /* Väčšie medzery dole */
    }

    .progress {
        height: 25px;
        margin-top: 30px; /* Väčšie medzery hore */
        margin-bottom: 30px; /* Väčšie medzery dole */
    }
}

/* Veľké obrazovky: šírka nad 1025px */
@media only screen and (min-width: 1025px) {
    body {
        font-size: 18px; /* Pôvodná veľkosť pre veľké obrazovky */
    }

    h4, h5 {
        font-size: 2rem;
    }

    input[type=text], input[type=password], textarea {
        font-size: 1.4rem;
        height: 3.5rem;
    }

    #event-codes > tr > td > form[method="post"] > input[name="new_code"] {
        width: 25%;
    }

    .btn {
        font-size: 1.2rem;
        padding: 15px 25px;
    }

    table thead th, table tbody td {
        padding: 15px 20px;
    }

    .progress {
        height: 30px;
    }
    
    .container {
        width: 85%;
    }
}