* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: linear-gradient(135deg, #609aff, #a047ff);
}

header {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 3rem;
    margin: 0;
}

header p {
    font-size: 1.2rem;
    margin: 10px 0 0;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* Allows main to fill available space */
    width: 100%;
}

.box {
    position: relative;
    width: 300px;
    height: 300px;
    overflow: hidden;
    border: 15px solid grey;
    border-radius: 15px;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hover_img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.box:hover img {
    opacity: 0;
}

.box:hover .hover_img {
    opacity: 1;
}

/* Fixing .destinacija hover effect */
.destinacija {
    position: relative;
    width: 300px;
}

.destinacija .hover_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.destinacija:hover img {
    opacity: 0;
    padding: 20px;
    border-radius: 10px;
}

.destinacija:hover .hover_img {
    opacity: 1;
    padding: 20px;
    border-radius: 10px;
}

.destinacije {
    padding: 40px 20px;
    text-align: center;
}

.destinacije-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.destinacija {
    background: linear-gradient(135deg, #e1c3ff, #cbdfff);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 30%;
    margin: 10px;
}

.destinacija img {
    width: 100%;
    border-radius: 10px;
}

footer {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}
