:root {
    --cb: cubic-bezier(.05, .61, .41, .95);
    --color: #3498db;
    --bg: #ffffff;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 100vh;
    font-family: "Roboto", sans-serif;
    transition: background 0.25s ease-in-out;
    background: #e1e1e1;
}

body.dark {
    background: #333;
    color: white;
}

.title {
    color: #3498db;
    font-size: 30px;
}

.cards {
    display: flex;
    max-width: 800px;
    width: calc(80% - 100px);
    height: 400px;
    background: #ff0000;
    border-radius: 5px;
}

.cards .card {
    position: relative;
    min-width: 60px;
    background: var(--bg);
    overflow: hidden;
    margin: 5px;
    background-size: auto 150%;
    background-position: center;
    cursor: pointer;
    transition: 0.5s var(--cb);
    border-radius: 5px;
    flex-grow: 1;
}

.cards .card .label {
    display: flex;
    position: absolute;
    right: 0;
    height: 40px;
    transition: 0.5s var(--cb);
}

.cards .card .label .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    background-color: white;
    color: var(--color);
    border-radius: 50%;
    pointer-events: auto; 
}

.cards .card .label .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 10px;
    white-space: pre;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
}

.cards .card.active {
    flex-grow: 10;
    background-size: auto 100%;
}

.cards .card.active .label {
    bottom: 20px;
    left: 20px;
}

.cards .card:not(.active) .label {
    bottom: 10px;
    left: 10px;
}

.cards .card .shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.25), transparent);
}

.cards .card .info {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.cards .card.active .info {
    opacity: 1;
}

.cooplogo {
    height: 70px;
}

.info-box {
    position: absolute;
    bottom: -190px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(33, 32, 32, 0.85);
    color: var(--text-light);
    padding: 12px;
    text-align: center;
    border-radius: 12px;
    font-size: 14px;
    transition: bottom 0.3s ease-in-out;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.4);
}

.card:hover .info-box {
    bottom: 60px;
}

.info-box div {
    text-shadow: none;
}

.info-box div:hover {
    color: #070707;
}

.info-box div a{
    color: #ff0000;
}

.info-box div a:hover {
    color: #680808;
}

.social-icons {
    margin-top: 5px;
}

.social-icons a {
    color: white;
    margin: 0 5px;
    text-decoration: none;
    font-size: 18px;
}

.social-icons a:hover {
     color: #333;
}