﻿@import url(https://fonts.googleapis.com/css?family=Lato);


main {
    background: white;
    box-shadow: 0 2px 4px 0 rgb(0 0 0 / 20%);
    border-radius: 2px;
    max-width: 99%;
    margin: 10px auto;
}

table {
    width: 100%;
    border: 2px indianred solid;
}

thead {
    text-align: left;
}

.header-row {
    background-color: indianred;
}

thead th {
    padding: 10px;
    color: white;
    font-size: 17px;
}

tr td {
    /*padding: 10px;*/
    padding: 4px;
    border: 1px indianred solid;
    font-weight: 500;
}

th,
td {
    padding: 15px 0;
}

th {
    color: #141E28;
    font-size: 16px;
}

/* Hide mobile only elements */
.mobile-header-row {
    display: none;
}

.mobile-spacing {
    display: none;
}


@media (max-width: 700px) {
    main {
        background: whitesmoke;
        box-shadow: none;
    }

    tr:not(.mobile-spacing) {
        box-shadow: 0 2px 4px 0 rgba(0,0,0,0.20);
        border-radius: 2px;
    }

    .mobile-spacing {
        display: table-row;
        /*height: 11px;*/
    }

    thead {
        display: none;
    }

    tr {
        border-radius: 2px;
    }

    td:first-of-type:not(.mobile-header) {
        display: none;
    }

    td:nth-child(2) {
        text-align: center;
    }

        td:nth-child(2):before {
            text-align: center;
            display: block;
            font-weight: bold;
            content: "Mortgage Rate";
            margin-bottom: 8px;
        }

    td:nth-child(3) {
        text-align: center;
    }

        td:nth-child(3):before {
            text-align: center;
            display: block;
            font-weight: bold;
            content: "APR*";
            margin-bottom: 8px;
        }

    td:nth-child(4) {
        text-align: center;
    }

        td:nth-child(4):before {
            text-align: center;
            display: block;
            font-weight: bold;
            content: "Change";
            margin-bottom: 8px;
        }

    .mobile-header-row {
        display: table-row;
        text-align: center;
        background: indianred;
        color: white;
        font-size: 16px;
    }
}
