html,
body {
    height: 100vh;
    margin: 0;
    overflow: hidden;
    padding: 0;
    width: 100vw;
}

body {
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.6), rgba(17, 17, 17, 0.8));
    font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;

    > * {
        box-sizing: border-box;
    }
}

.carousel {
    height: 100%;
    position: relative;
    width: 100%;
}

.vehicle {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    padding: 2rem;
    position: absolute;
    text-align: center;
    width: 100%;
    z-index: 2;
}

.vehicle.active {
    animation: fadeIn 1s ease-in-out;
    opacity: 1;
}

.vehicle-image {
    background-color: white;
    border-radius: 2rem;
    max-height: 65vh;
    max-width: 100%;
    padding: 1rem;
    object-fit: contain;
}

.vehicle-info {
    color: #FFF;
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 2rem;
}

.price {
    font-size: 4rem;
    font-weight: bold;
}

.vehicle-error {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.vehicle-error > div {
    background-color: #F8D7DA;
    border: thin solid #F1AEB5;
    border-radius: 10px;
    color: #58151C;
    padding: 1rem 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
