.results_container {
    box-sizing: border-box;
    width: 22vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.5vw 0.5vw 0 0;
    gap: 0.5vw;
}

.card_results {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    padding: 0px 30px 0.5vw 30px;
    background-color: white;
    box-shadow: 5px 0px 5px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.card_descriptive {
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    flex: 1;
}

.card_descriptive h2 {
    position: relative;
    z-index: 1;
}

.descriptive_image {
    border-radius: 8px;
    align-self: center;
    transition: all 0.3s;
    object-fit: cover;

    max-width: 100%; /* La imagen no superará el ancho del contenedor */
    max-height: calc(100% - 8vh); /* La imagen no superará la altura del contenedor */
    width: auto; /* Para que la imagen mantenga su aspecto original */
    height: auto; /* Para que la imagen mantenga su aspecto original */
}

.descriptive_image:hover {
    transform-origin: top right;
    transform: scale(2);
    box-shadow: 5px 0px 5px rgba(0, 0, 0, 0.2);
}

.card_consolelog {
    box-sizing: border-box;
    flex: 1;
}

.card_resolution {
    box-sizing: border-box;
}

.buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
}

.resolution_button {
    cursor: pointer;
    height: 50px;
    width: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    color: white;
    border-style: none;
    font-weight: 600;
    font-size: 14px;
}

.ok {
    background-color: #428429;
}

.ok_disabled {
    background-color: white;
    color: #428429;
    border: solid 2px #428429
}

.ok_disabled:hover {
    background-color: #428429;
    color: white;
}

.ko {
    background-color: #DA0E1A;
}

.ko_disabled {
    background-color: white;
    color: #DA0E1A;
    border: solid 2px #DA0E1A;
}

.ko_disabled:hover {
    background-color: #DA0E1A;
    color: white;
}

#log_container {
    width: 100%;
    height: 28vh;
    overflow-y: scroll;
}

#iframe_bottom_half {
    display: none;
}

/* Media query half desktop */
@media (min-width: 660px) and (max-width: 1100px) {
    .results_container {
        margin: 0 0.5vw 0.5vw 0.5vw;
        width: 99vw;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5vw;
        flex-wrap: wrap;
    }

    #iframe_bottom_half {
        display: flex;
        order: -1;
    }
    
    #iframe_resolutions_full {
        display: none;
    }

    .iframe_resolution_half {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5vw;
        width: 100%;
    }

    .card_resolution {
        height: auto;
        width: auto;
        order: 1;
    }

    .card_descriptive {
        height: 40vh;
        width: 50%;
    }

    .card_consolelog {
        height: 40vh;
        width: 50%;
    }

    .bottom_section {
        width: 100% !important;
    }

    #id_response {
        height: 60% !important;
        width: 98% !important;
    }

    .iframe_bottom {
        height: 100% !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    .card_results {
        padding: 0px 30px 2vw 30px;
        box-sizing: border-box;
    }

    .descriptive_image:hover {
        transform-origin: top left;
        transform: scale(2);
    }

    .iframe_textarea {
        height: 100% !important;
    }
}

/* Media query mobile */
@media (max-width: 660px) {
    .results_container {
        width: 100vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1vw;
        padding: 0 1vw 1vw 1vw;
        margin: unset;
    }

    .card_results {
        width: 100%;
        padding: 0px 30px 0px 30px;
        background-color: white;
        box-shadow: 5px 0px 5px rgba(0, 0, 0, 0.2);
        border-radius: 8px;
    
    }

    .card_consolelog {
        position: relative;
        display: flex;
        flex-direction: column;
        height: 50vh;
        width: 100%;
        padding-bottom: 1vh;
    }
    
    #log_container {
        width: 100%;
        height: 50vh;
        overflow-y: scroll;
    }

    .card_descriptive {
        position: relative;
        display: flex;
        flex-direction: column;
        height: auto;
        width: 100%;
        padding-bottom: 1vh;
    }

    .descriptive_image {
        border-radius: 8px;
        align-self: center;
        transition: all 0.3s;
        object-fit: cover;

        max-width: 100%; /* La imagen no superará el ancho del contenedor */
        max-height: calc(100% - 8vh); /* La imagen no superará la altura del contenedor */
        width: auto; /* Para que la imagen mantenga su aspecto original */
        height: auto; /* Para que la imagen mantenga su aspecto original */
    }

    .descriptive_image:hover {
        transform-origin: top right;
        transform: scale(1);
        /* box-shadow: 5px 0px 5px rgba(0, 0, 0, 0.2); */
    }

    .card_resolution {
        height: auto;
        width: 100%;
    }

    .buttons {
        margin-bottom: 2vh;
    }
    
}
