#styleswitch label {
    color: white;
    margin-right: 10px;
}

body.kezdolap {
    margin-top: 45px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 45px;
    padding: 0;
    max-width: 900px;
    background: none !important;
    box-shadow: none;
    border: none;          
    align-items: center;     
}

#carouselExampleAutoplaying {
    display: flex;
    justify-content: center; 
    align-items: center; 
    height: 500px; 
    border-radius: 5px;
    box-shadow: 5px 5px 10px black;
    flex: 1 1 100%;
}

.carousel img {
    width: 400px; 
    height: 500px; 
    object-fit: cover; 
    align-items: center;
    border-radius: 5px;
    box-shadow: 5px 5px 10px black;
}

.gombok {
    display: flex;
    gap: 20px;
}

.gombok a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    margin-top: 20px;

    border-radius: 5px;
    box-shadow: 5px 5px 10px black;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6); 
    background: linear-gradient(to bottom, red -40%, blue 140%);
}

.gombok a:hover {
    transform: scale(1.05);
}

.gombok .aktualis{
    color: black;
    background: white;
}

@media (max-width: 900px) {
    body.kezdolap {
        margin: 10px;
    }

    #carouselExampleAutoplaying {
        max-width: 100%;
    }

    .carousel img {
        width: 100%;
        height: auto;
        aspect-ratio: 4/5;
    }
}

@media (max-width: 600px) {
    .gombok {
        flex-direction: column;
        gap: 0;
    }

    .gombok a {
        width: 100%;
        height: 120px;
        font-size: 1.2rem;
    }

    #carouselExampleAutoplaying {
        box-shadow: 3px 3px 6px black;
    }

    .carousel img {
        aspect-ratio: 3/4;
    }
}

#carouselExampleAutoplaying {
    overflow: hidden; 
}

.carousel img {
    transition: transform 0.3s ease; 
}