:root {
    --background-color-button: #0077ed;
    --background-color-button-hover: #0067ce;

}

*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: lato
}


button,
a.button {

    padding: 9px;
    border-radius: 6px;
    border: none;

    &.default {
        background-color: #c9c9c9;
        color: #333;

    }

    &.principal {
        color: #fff;
        background-color: var(--background-color-button);

        &:hover {
            background-color: var(--background-color-button-hover);
            box-shadow: 3px 3px 3px #d1d1d1;
            cursor: pointer;
        }

    }
}

body {
    width: 90%;
    font-family: Lato;
    margin: 24px 5%;
}

.icono {
    width: 120px;
    max-width: 500px;
}

.descripcion {
    display: flex;
}

.izquierda {
    width: 50%;
    float: left;
    text-align: left;
}

.derecha {
    width: 50%;
    float: left;
}

.derecha img {
    width: 90%;
}

input {
    height: 36px;
    width: 50%;
    border: 1px solid var(--background-color-button);
    margin: auto auto 24px auto;
    border-radius: 6px;
}

.not_my_device {
    color: var(--background-color-button);
    text-decoration: underline;
    background-color: transparent;
    cursor: pointer;
    padding: 0;
}

.error-message{
    text-align: center;
}

.spinner{
    color: var(--background-color-button)
}



.device {
    margin-top: 1rem;
    display: flex;
    padding: 0.25rem;
    align-items: center;
    border-radius: .25rem;
    border: 10px solid #e1e1e1;
    color: #444;

    img {
        max-width: 100px;
        height: auto;
    }

    h2 {
        margin: 0;
        padding: 0;
        font-size: 1.25rem;
        display: block;
    }
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1rem;

}

.card {
    border: 10px solid #e1e1e1;
    border-radius: .25rem;
    padding: .5rem;
    width: 175px;
}

.card img {
    margin: 0 auto;

    width: 100%;
    height: auto;
}

h4 {
    margin: 0;
    padding: 0;
}

.card h4 {
    text-align: center;
    font-size: .9rem;
    display: block;
    color: #333;
    margin: .25rem 0 .5rem 0;

}

.card footer {
    display: flex;
    justify-content: flex-end;
}



@media screen and (max-width: 720px) {
    .descripcion {
        display: block;
    }

    .izquierda {
        width: 90%;
        float: left;
        text-align: left;
        margin: auto 5%;
    }

    .derecha {
        width: 90%;
        float: left;
        margin: auto 5%;
    }

    .derecha img {
        width: 100%;
    }

    input {
        width: 100%;
    }
}


.buy_container {
    position: absolute;
    z-index: 100;

}

.modal_container {
    display: none;
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, .5);
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;

    &.active {
        display: flex;
    }
}

/* simple modal used by Vue component */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    /* align at the top instead of center */
    align-items: flex-start;
    justify-content: center;
    padding-top: 2rem;
    /* some space from the top edge */
    z-index: 1000;
}

.modal {
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    max-width: 90%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

    button {
        background-color: #c9c9c9;
        color: #333;
    }
}


#buy_container {
    /* display: none; */
    width: 90%;
    height: fit-content;
    background-color: #fff;
    border-radius: .25rem;
    box-shadow: 3px 3px 3px #444;
    max-width: 400px;

    >* {
        padding: .25rem .25rem;
    }

    /* &.active{
            display: flex; 
        } */

    footer {
        display: flex;
        justify-content: space-between;
        border-top: 1px solid #d1d1d1;
    }
}

#buyButton {
    height: fit-content;
    width: fit-content;
    display: none;

    &.active {
        display: block;
    }
}

#responseMessage {
    text-align: center;
    font-weight: bold;

}


#messageConteiner {
    font-size: .85rem;
    color: #960000;
}


.row {
    display: flex;
    gap: .5rem;
}


.wrongDevice {
    background-color: transparent;
    color: #333;
    border: 1px solid #d1d1d1;
    display: none;

    &.active {
        display: block;
    }

}