﻿/* Schermi grandi o ad alta risoluzione */
@media screen and (min-width: 1690px) {
    .message-back {
        display: none;
        position: absolute;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: var(--colorPopUpBack);
        backdrop-filter: blur(10px);
    }

    .message-main-mail {
        display: grid;
        grid-template-rows: 7rem auto 3rem 3rem;
        gap: 0.3rem;
        position: relative;
        background-color: var(--colorWhite);
        margin: 0 auto;
        padding: 0.7rem;
        top: 5%;
        width: 25rem;
        height: 30rem;
        border-radius: 0.5rem;
    }

    .message-icon {
        height: 7rem;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .message-icon img {
        height: 6rem;
        width: 8rem;
    }

    .message-text {
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

        .message-text span {
            font-family: var(--fuenteLight);
            font-size: 0.8rem;
            color: var(--colorGray);
        }

    .message-buttons {
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .message-button-accept {
        display: block;
        height: 3rem;
        width: 50%;
        background-color: var(--colorWhite);
        border: 0.1rem solid var(--colorgreen);
        font-family: var(--fuenteLight);
        font-size: 1rem;
        text-align: center;
        text-decoration: none;
        color: var(--colorgreen);
        padding-top: 0.7rem;
    }

        .message-button-accept:hover {
            border: 0.1rem solid var(--colorWhite);
            color: var(--colorWhite);
            background-color: var(--colorgreen);
        }

    .message-send-mail-again {
        font-family: var(--fuenteLight);
        font-size: 0.8rem;
        color: var(--color4);
        text-decoration: none;
    }

        .message-send-mail-again:hover {
            color: var(--color4);
            text-decoration: underline;
        }
}

/* Schermi Desktop o Portatili */
@media screen and (min-width: 1280px) and (max-width: 1689px) {
    .message-back {
        display: none;
        position: absolute;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: var(--colorPopUpBack);
        backdrop-filter: blur(10px);
    }

    .message-main-mail {
        display: grid;
        grid-template-rows: 7rem auto 3rem 3rem;
        gap: 0.3rem;
        position: relative;
        background-color: var(--colorWhite);
        margin: 0 auto;
        padding: 0.7rem;
        top: 5%;
        width: 25rem;
        height: 30rem;
        border-radius: 0.5rem;
    }

    .message-icon {
        height: 7rem;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .message-icon img {
            height: 6rem;
            width: 8rem;
        }

    .message-text {
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

        .message-text span {
            font-family: var(--fuenteLight);
            font-size: 0.8rem;
            color: var(--colorGray);
        }

    .message-buttons {
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .message-button-accept {
        display: block;
        height: 3rem;
        width: 50%;
        background-color: var(--colorWhite);
        border: 0.1rem solid var(--colorgreen);
        font-family: var(--fuenteLight);
        font-size: 1rem;
        text-align: center;
        text-decoration: none;
        color: var(--colorgreen);
        padding-top: 0.7rem;
    }

        .message-button-accept:hover {
            border: 0.1rem solid var(--colorWhite);
            color: var(--colorWhite);
            background-color: var(--colorgreen);
        }

    .message-send-mail-again {
        font-family: var(--fuenteLight);
        font-size: 0.8rem;
        color: var(--color4);
        text-decoration: none;
    }

        .message-send-mail-again:hover {
            color: var(--color4);
            text-decoration: underline;
        }
}

/* Tablet in modalità horizontal */
@media screen and (min-width: 737px) and (max-width: 1279px) {
    .message-back {
        display: none;
        position: absolute;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: var(--colorPopUpBack);
        backdrop-filter: blur(10px);
    }

    .message-main-mail {
        display: grid;
        grid-template-rows: 4rem auto 3rem 3rem;
        gap: 0.3rem;
        position: relative;
        background-color: var(--colorWhite);
        margin: 0 auto;
        padding: 0.4rem;
        top: 5%;
        width: 20rem;
        height: 20rem;
        border-radius: 0.5rem;
    }

    .message-icon {
        height: 4rem;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .message-icon img {
            height: 4rem;
            width: 6rem;
        }

    .message-text {
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

        .message-text span {
            font-family: var(--fuenteLight);
            font-size: 0.7rem;
            color: var(--colorGray);
        }

    .message-buttons {
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .message-button-accept {
        display: block;
        height: 2.5rem;
        width: 50%;
        background-color: var(--colorWhite);
        border: 0.1rem solid var(--colorgreen);
        font-family: var(--fuenteLight);
        font-size: 1rem;
        text-align: center;
        text-decoration: none;
        color: var(--colorgreen);
        padding-top: 0.5rem;
    }

        .message-button-accept:hover {
            border: 0.1rem solid var(--colorWhite);
            color: var(--colorWhite);
            background-color: var(--colorgreen);
        }

    .message-send-mail-again {
        font-family: var(--fuenteLight);
        font-size: 0.7rem;
        color: var(--color4);
        text-decoration: none;
    }

        .message-send-mail-again:hover {
            color: var(--color4);
            text-decoration: underline;
        }
}

/* Tablet in modalità verticale */
@media screen and (min-width: 481px) and (max-width: 736px) {
    .message-back {
        display: none;
        position: absolute;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: var(--colorPopUpBack);
        backdrop-filter: blur(10px);
    }

    .message-main-mail {
        display: grid;
        grid-template-rows: 7rem auto 3rem 3rem;
        gap: 0.3rem;
        position: relative;
        background-color: var(--colorWhite);
        margin: 0 auto;
        padding: 0.7rem;
        top: 5%;
        width: 25rem;
        height: 30rem;
        border-radius: 0.5rem;
    }

    .message-icon {
        height: 7rem;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .message-icon img {
            height: 6rem;
            width: 8rem;
        }

    .message-text {
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

        .message-text span {
            font-family: var(--fuenteLight);
            font-size: 0.8rem;
            color: var(--colorGray);
        }

    .message-buttons {
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .message-button-accept {
        display: block;
        height: 3rem;
        width: 50%;
        background-color: var(--colorWhite);
        border: 0.1rem solid var(--colorgreen);
        font-family: var(--fuenteLight);
        font-size: 1rem;
        text-align: center;
        text-decoration: none;
        color: var(--colorgreen);
        padding-top: 0.7rem;
    }

        .message-button-accept:hover {
            border: 0.1rem solid var(--colorWhite);
            color: var(--colorWhite);
            background-color: var(--colorgreen);
        }

    .message-send-mail-again {
        font-family: var(--fuenteLight);
        font-size: 0.8rem;
        color: var(--color4);
        text-decoration: none;
    }

        .message-send-mail-again:hover {
            color: var(--color4);
            text-decoration: underline;
        }
}

/* Smartphone o piccoli Tablet */
@media screen and (max-width: 480px) {
    .message-back {
        display: none;
        position: absolute;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: var(--colorPopUpBack);
        backdrop-filter: blur(10px);
    }

    .message-main-mail {
        display: grid;
        grid-template-rows: 7rem auto 3rem 3rem;
        gap: 0.3rem;
        position: absolute;
        bottom: 0;
        background-color: var(--colorWhite);
        padding: 0.7rem;
        width: 100%;
        height: max-content;
        border-radius: 0.7rem 0.7rem 0 0;
    }

    .message-icon {
        height: 7rem;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .message-icon img {
            height: 6rem;
            width: 8rem;
        }

    .message-text {
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

        .message-text span {
            font-family: var(--fuenteLight);
            font-size: 0.8rem;
            color: var(--colorGray);
        }

    .message-buttons {
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .message-button-accept {
        display: block;
        height: 2.5rem;
        width: 50%;
        background-color: var(--colorWhite);
        border: 0.1rem solid var(--colorgreen);
        font-family: var(--fuenteLight);
        font-size: 1rem;
        text-align: center;
        text-decoration: none;
        color: var(--colorgreen);
        padding-top: 0.5rem;
    }

    .message-send-mail-again {
        font-family: var(--fuenteLight);
        font-size: 0.8rem;
        color: var(--color4);
        text-decoration: none;
    }

}

