/* =====================================================
   GLOBAL RESET
===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}


/* =====================================================
   IMAGES
===================================================== */

img {
    max-width: 100%;
    height: auto;
}


/* =====================================================
   FORM ELEMENTS
===================================================== */

input,
select,
textarea,
button {
    max-width: 100%;
    font-family: inherit;
}

input,
select,
textarea {
    box-sizing: border-box;
}


/* =====================================================
   LINKS
===================================================== */

a {
    max-width: 100%;
}


/* =====================================================
   TABLES
===================================================== */

table {
    max-width: 100%;
}


/*
   Kapag may table na malapad,
   ilagay ito sa .table-responsive
*/

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* =====================================================
   CONTAINERS
===================================================== */

.container,
.main-container,
.content-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


/* =====================================================
   MOBILE - TABLETS
===================================================== */

@media (max-width: 992px) {

    .container,
    .main-container,
    .content-container {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    body {
        font-size: 14px;
    }


    /* -----------------------------
       Containers
    ----------------------------- */

    .container,
    .main-container,
    .content-container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }


    /* -----------------------------
       Headings
    ----------------------------- */

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }


    /* -----------------------------
       Forms
    ----------------------------- */

    input,
    select,
    textarea {
        width: 100%;
        max-width: 100%;
    }


    /* -----------------------------
       Buttons
    ----------------------------- */

    button {
        max-width: 100%;
    }


    /* -----------------------------
       Images
    ----------------------------- */

    img {
        max-width: 100%;
        height: auto;
    }


    /* -----------------------------
       Tables
    ----------------------------- */

    .table-responsive {
        overflow-x: auto;
        width: 100%;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    body {
        font-size: 13px;
    }


    h1 {
        font-size: 21px;
    }

    h2 {
        font-size: 18px;
    }

    h3 {
        font-size: 16px;
    }


    .container,
    .main-container,
    .content-container {
        padding-left: 12px;
        padding-right: 12px;
    }


    /*
       Prevent iOS/Android browsers
       from making inputs look too small.
    */

    input,
    select,
    textarea {
        font-size: 16px;
    }

}