/* Resetiranje osnovnih stilova */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 20px;
}

.container {
    width: 95%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 24px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section {
    margin-bottom: 20px;
}

h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    margin: 4px;
    padding: 8px 12px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

button.selected {
    background: #ff9800;
    color: black;
    transform: scale(1.1);
}

/* Stil tablice */
.table-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

table {
    border-collapse: collapse;
    width: 90%;
    max-width: 800px;
}

td {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    border: 1px solid white;
    position: relative;
}

/* Stilovi za različite kvalitete pogotka */
.ll-hit {
    background-color: #b71c1c;
}

/* Najtamnija crvena */
.l-hit {
    background-color: #d32f2f;
}

/* Tamnocrvena */
.lp-hit {
    background-color: #ff6659;
}

/* Svijetlocrvena */
.s-hit {
    background-color: #ff9800;
}

/* Narančasta */
.d-plus-hit {
    background-color: #a5d6a7;
}

/* Svijetlozelena */
.d-hit {
    background-color: #4caf50;
}

/* Zelena */
.dd-hit {
    background-color: #1b5e20;
}

/* Tamnozelena */

/* Stil za bonus čunjeve */
.bonus {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: black;
    padding: 2px;
    border-radius: 3px;
    min-width: 16px;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    z-index: 1000;
}

/* Modal stilovi */
#edit-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgb(226, 174, 17);
    /* Tamnoplava boja s prozirnošću */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 1000;
    color: white;
    /* Bijeli tekst za bolji kontrast */
}

#edit-modal h2 {
    margin-bottom: 15px;
}

.modal-section {
    margin-bottom: 15px;
}

.quality-btn {
    padding: 8px 12px;
    margin: 4px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    color: white;
}

.quality-btn.selected {
    border: 2px solid black;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

#save-edit,
#cancel-edit {
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

#save-edit {
    background-color: green;
    color: white;
}

#cancel-edit {
    background-color: red;
    color: white;
}

.fixed-top-right {
    position: fixed;
    top: 10px;
    right: 10px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 10px;
}

.fixed-top-right button {
    cursor: pointer;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    font-size: 14px;
}

.fixed-top-right button:hover {
    background-color: #0056b3;
}