* {
    box-sizing: border-box;
}

.img-comp-container {
    position: relative;
}

.img-comp-container {
    height: 400px;
    width: 500px;
}

.img-comp-img {
    position: absolute;
    width: auto;
    height: auto;
    overflow: hidden;
}

.img-comp-img2 {
    position: absolute;
    width: auto;
    height: auto;
    overflow: hidden;
}

img {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.img-comp-slider {
    position: absolute;
    z-index: 9;
    cursor: ew-resize;
    width: 40px;
    height: 40px;
    background-color: #2196F3;
    opacity: 0.7;
    border-radius: 50%;
}

.img-comp-slider:hover {
    background-color: #1976D2;
    opacity: 1;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    animation: FadeIn 1s ease-in-out;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    width: 50%;
    margin: 40px auto;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

footer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    width: 50%;
    margin: 40px auto;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.centriraj{
    margin-left: 15%;
}

h1 {
    font-size: 3em;
    margin: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #333;
}

p {
    padding: 15px;
    width: 90%;
    font-size: 1.1em;
    color: #555;
    margin-top: 20px;
}

@keyframes FadeIn{
    0%{
        opacity: 0;
    }

    100%{
        opacity: 1;
    }
}