* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
#    background-image: url('Suhor_Ozadje.jpg'); /* Background image for the whole page */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('Suhor_Ozadje_3.png');
    background-size: cover; /* Cover the entire page */
    background-position: center;
    padding: 20px;
}


body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05); /* Very subtle white overlay */
    background-image: url('grain.png'); /* Add a grainy texture */
    background-repeat: repeat;
    opacity: 0.4;
    z-index: -1;
}

.container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
}

.card {
    text-decoration: none;
    color: black;
    background-color: rgba(255, 255, 255, 0.8); /* Slightly transparent white background */
    width: 400px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card .logo {
    width: 100%; /* Make the logo fit the width of the card */
    max-width: 150px; /* Set a max width to prevent the logo from being too large */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 10px; /* Space between logo and text */
}
.card {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.card:hover {
    transform: rotateX(10deg) rotateY(10deg); /* Adds a 3D tilt effect */
}
#.card:hover {
#    transform: translateY(-10px) scale(1.05);
#    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
#}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
}

.card:hover::before {
    left: 100%;
}

.card .content {
    z-index: 1;
    text-align: center;
}

.card .logo {
    width: 100%; /* Make the logo fit the width of the card */
    max-width: 150px; /* Set a max width to prevent the logo from being too large */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 10px; /* Space between logo and text */
}

h2 {
    margin-bottom: 10px;
}

p {
    font-size: 22px;
    color: #666;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stack cards vertically on smaller screens */
        align-items: center;
    }
    
    .card {
        width: 100%; /* Cards take full width of the screen on small devices */
        max-width: 350px; /* Set a max width to prevent cards from becoming too wide */
    }
}

@media (max-width: 480px) {
    .card {
        height: 220px; /* Slightly smaller cards on very small screens */
    }

    p {
        font-size: 14px; /* Smaller text on small screens */
    }
}

