/* =========================================
   DOZNI TOOLS
   SCREEN RESOLUTION TESTER
   THEME-MATCHED UI
========================================= */


/* =========================================
   PAGE
========================================= */

body.screen-resolution-tool-page {
    margin: 0;
    padding: 0;
}


/* =========================================
   MAIN SECTION
========================================= */

.screen-resolution-page {
    padding: 26px 0 32px;
}


/* =========================================
   CONTAINER
========================================= */

.screen-resolution-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}


/* =========================================
   MAIN TOOL CARD
========================================= */

.screen-resolution-card {
    width: 100%;

    min-height: 498px;

    display: grid;

    grid-template-columns:
        220px
        minmax(0, 1fr);

    box-sizing: border-box;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius:10px;

    box-shadow: var(--shadow);

    overflow: hidden;
}


/* =========================================
   LEFT SIDEBAR
========================================= */

.screen-resolution-sidebar {
    box-sizing: border-box;

    padding: 30px 24px;

    background: var(--card);

    border-right:
        1px solid var(--border);
}


.screen-resolution-check-title {
    margin-bottom: 20px;

    color: var(--text);

    font-size: 14px;

    line-height: 1.5;

    font-weight: 700;
}


.screen-resolution-check-link {
    display: block;

    margin-bottom: 13px;

    padding: 2px 0;

    color: var(--text-light);

    font-size: 15px;

    line-height: 1.55;

    font-weight: 700;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}


.screen-resolution-check-link:hover {
    color: var(--primary);

    transform: translateX(3px);
}


.screen-resolution-check-link.active {
    color: var(--primary);
}


/* =========================================
   RIGHT CONTENT
========================================= */

.screen-resolution-content {
    min-width: 0;

    box-sizing: border-box;

    padding:
        36px 40px 30px;

    background: var(--card);

    text-align: center;
}


.screen-resolution-content h2 {
    margin:
        0 0 24px;

    color: var(--text);

    font-size: 21px;

    line-height: 1.4;

    font-weight: 800;

    letter-spacing: -.2px;
}


/* =========================================
   RESOLUTION DISPLAY
========================================= */

.screen-resolution-value {
    width: 276px;

    height: 176px;

    box-sizing: border-box;

    margin:
        0 auto;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--bg);

    border:
        7px solid var(--primary);

    border-radius: 18px;

    color: var(--text);

    font-size: 29px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: -.3px;

    box-shadow:
        0 8px 24px rgba(18, 38, 63, .07);

    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}


/* =========================================
   RESULT TEXT
========================================= */

.screen-resolution-line {
    margin:
        30px 0 0;

    color: var(--text-light);

    font-size: 15px;

    line-height: 1.6;
}


.screen-resolution-line
+ .screen-resolution-line {
    margin-top: 9px;
}


.screen-resolution-line strong {
    color: var(--text);

    font-weight: 800;
}


/* =========================================
   DESCRIPTION
========================================= */

.screen-resolution-description {
    margin:
        48px 0 0;

    color: var(--text-light);

    font-size: 14px;

    line-height: 1.7;
}


.screen-resolution-description
+ .screen-resolution-description {
    margin-top: 7px;
}


.screen-resolution-description a {
    color: var(--primary);

    font-weight: 600;

    text-decoration: none;

    transition: color .2s ease;
}


.screen-resolution-description a:hover {
    color: var(--primary-dark);

    text-decoration: underline;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 760px) {

    .screen-resolution-page {
        padding:
            22px 14px 0;
    }


    .screen-resolution-card {
        grid-template-columns:
            1fr;

        min-height: 0;

        border-radius: 20px;
    }


    .screen-resolution-sidebar {
        padding:
            20px 20px 17px;

        border-right: none;

        border-bottom:
            1px solid var(--border);
    }


    .screen-resolution-check-title {
        margin-bottom: 10px;
    }


    .screen-resolution-check-link {
        display: inline-block;

        margin:
            0 18px 0 0;
    }


    .screen-resolution-content {
        padding:
            30px 18px 32px;
    }


    .screen-resolution-content h2 {
        margin-bottom: 22px;

        font-size: 19px;
    }


    .screen-resolution-value {
        width:
            min(276px, 100%);

        height:
            160px;

        border-width:
            6px;

        border-radius:
            16px;

        font-size:
            26px;
    }


    .screen-resolution-line {
        font-size: 15px;
    }


    .screen-resolution-description {
        margin-top: 38px;

        font-size: 14px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 430px) {

    .screen-resolution-content h2 {
        font-size: 18px;
    }


    .screen-resolution-value {
        height: 145px;

        border-width: 6px;

        font-size: 24px;
    }

}
