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

body {
    background: linear-gradient(45deg, orange, white, green);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 1rem;
}

.container {
    position: relative;
    width: 90vw;
    max-width: 600px;
    height: 70vh;
    max-height: 500px;
}

.image-container-before,
.image-container-after {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider {
    width: 0.4rem;
    background: white;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}

h1 {
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
    color: green;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    text-align: center;
    width: 100%;
}

.ro {
    color: blue;
    margin-right: 0.3rem;
    font-size: 2rem;
}
.ko {
    color: red;
    margin-left: 0.3rem;
    font-size: 2rem;
}

/* Responsive for small screens */
@media (max-width: 500px) {
    h1 {
        font-size: 1.2rem;
    }

    .ro, .ko {
        font-size: 1.5rem;
    }

    .container {
        height: 60vh;
    }
}
