/* random-hot-rod.css */

.random-hot-rod {
    border: 1px solid #ccc;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center; /* Default center alignment */
    background-color: rgba(255, 255, 255, 0.8); /* Added semi-transparent white background */
}

.hot-rod-owner {
    color: navy; /* Changed name color to navy */
    font-size: 1.5em;
    margin-bottom: 10px;
    display: block;
    width: 100%;
}

.hot-rod-info {
    margin-bottom: 5px;
    display: block;
    width: 100%;
    text-align: left;
}

.hot-rod-label {
    font-weight: bold;
    margin-right: 5px;
    display: inline-block;
    color: green; /* Changed label color to green */
}

.hot-rod-value {
    font-style: italic;
    display: inline-block;
    color: orange; /* Changed value color to orange */
}

.hot-rod-image-container {
    margin-top: 15px;
    text-align: center; /* For centering the image */
}

.random-hot-rod img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 3px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    display: block; /* To allow margin: auto */
    margin: 10px auto 0; /* Center the image */
}

.no-hot-rod-found {
    text-align: center;
    padding: 10px;
    color: #777;
    display: block;
    width: 100%;
}

/* Responsive layout for larger screens */
@media (min-width: 768px) {
    .random-hot-rod {
        display: flex;
        align-items: flex-start; /* Align items to the top */
        text-align: left;
        background-color: rgba(255, 255, 255, 0.8); /* Apply to flex layout as well */
    }

    .image-wrapper { /* New wrapper for the image */
        flex: 0 0 300px; /* Fixed width for the image area */
        margin-right: 20px;
    }

    .text-wrapper { /* New wrapper for the text */
        flex: 1; /* Take remaining space */
    }

    .hot-rod-image-container {
        margin-top: 0; /* Reset top margin */
        text-align: left; /* Align image to the left within its wrapper */
    }

    .random-hot-rod img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 0; /* Remove auto margins for left alignment */
    }

    .hot-rod-owner,
    .hot-rod-info {
        display: block;
        width: 100%;
        margin-bottom: 8px;
        text-align: left;
    }

    /* Remove order as we are using explicit wrappers */
}