.grad {
    background-image: url(Slike/background.jpg);
    background-size: 1880px 960px;
}
.header {
    padding: 10px;
    background-color: gold;
    height: 30px;
}
.glavnidiv {
    padding: 10px;
    margin-left: 22%;
    margin-right: 22%;
   
    background-color: white;
    border: solid;
    border-image: url(Slike/BC.png);
    border-image-width: auto;
}
.footer {
    padding: 10px;
    background-color: #00519B;
    color: gold;
	font-size:16px;
}
.linkovi {
    text-align: center;
    font-size: 20px;
    text-decoration: none;
    color: cornflowerblue;
}
.linkovi:hover{
    text-align: center;
    text-decoration: underline;
    text-decoration-color: blue;
    color: blue;
}
.p1 {
    font-size: 20px;
    text-align: justify;

}
.p2 {
    font-size: 16px;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: gold;
}
li {
float: left;
}
li a {
display: inline-block;
color: black;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover{
background-color: orange;
}
.rmdiv {
    height: 70px;
    font-size: 70px;
    background-color: white;
    padding: 10px;
    text-align: center;
}
.rmimg {
    float: right;
}
table {
    
border-collapse:separate;
}
th, td {
text-align: center;
border: solid 1px;
border-color: gray;
padding: 10px 30px;
border-radius:20px 20px 20px 20px;
} 
tr:hover {
    background-color: lightgray;
}
th {
    background-color: #DCDCDC;
}
body {
	font-size:25px;
}
.tabela {
    padding: 10px;
    margin-left: 22%;
    margin-right: 22%;
    background-color: white;
    border: solid;
    border-image: url(Slike/BC.png);
    border-image-width: auto;
	font-size:16px;
}

/* Responsive slike */
.responsive-img {
    max-width: 850px;
    width: 100%;
    height: auto;
}

.trophy-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.trophy-img {
    width: 60px;
    height: auto;
}

.trophy-img-large {
    width: 90px;
    height: auto;
}

/* ==========================================
   RESPONSIVE DIZAJN ZA MOBILNE TELEFONE
   ========================================== */

@media screen and (max-width: 768px) {
    /* Pozadina */
    .grad {
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }
    
    /* Header sa logom */
    .rmdiv {
        font-size: 36px;
        height: auto;
        padding: 15px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .rmimg {
        float: none;
        width: 40px;
    }
    
    /* Navigacija */
    ul {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    li {
        float: none;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #e6c200;
    }
    
    li:last-child {
        border-bottom: none;
    }
    
    li a {
        display: block;
        padding: 12px 16px;
        font-size: 16px;
    }
    
    /* Glavni sadržaj */
    .glavnidiv {
        margin-left: 5px;
        margin-right: 5px;
        padding: 10px;
    }
    
    .tabela {
        margin-left: 5px;
        margin-right: 5px;
        padding: 5px;
        overflow-x: auto;
    }
    
    /* Tekst */
    .p1 {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .p2 {
        font-size: 14px;
        line-height: 1.4;
    }
    
    body {
        font-size: 18px;
    }
    
    blockquote {
        margin: 5px;
        padding: 5px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    /* Slike - responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Tabela na stranici Postava */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 12px;
    }
    
    th, td {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Footer */
    .footer {
        font-size: 12px;
        padding: 15px 10px;
    }
    
    /* Slike trofeja */
    .trophy-images {
        gap: 10px;
    }
    
    .trophy-img {
        width: 45px;
    }
    
    .trophy-img-large {
        width: 65px;
    }
}

/* Za jos manje telefone (do 480px) */
@media screen and (max-width: 480px) {
    .rmdiv {
        font-size: 28px;
        padding: 10px;
    }
    
    .rmimg {
        width: 35px;
    }
    
    li a {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .p1 {
        font-size: 14px;
    }
    
    .p2 {
        font-size: 12px;
    }
    
    h3 {
        font-size: 16px;
    }
    
    th, td {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .footer {
        font-size: 11px;
    }
    
    /* Slike trofeja - manji telefoni */
    .trophy-img {
        width: 35px;
    }
    
    .trophy-img-large {
        width: 50px;
    }
}