/* MyThemeShop Point Theme - Responsive CSS */

@media screen and (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .main-container {
        margin: 0;
        box-shadow: none;
    }

    #header {
        padding: 10px 0;
    }

    .main-header {
        padding: 10px 15px;
    }

    #logo img {
        max-width: 100%;
        width: 100%;
    }

    #navigation ul.menu {
        flex-direction: column;
        padding: 0;
    }

    #navigation ul.menu li {
        width: 100%;
        border-bottom: 1px solid #444;
    }

    #navigation ul.menu li a {
        padding: 12px 15px;
    }

    #page {
        flex-direction: column;
    }

    .content {
        padding: 10px;
    }

    #sidebars {
        width: 100%;
        padding: 10px;
        border-left: none;
        border-top: 1px solid #ddd;
    }

    .firstpost,
    .secondpost,
    .thirdpost {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .article {
        margin-bottom: 10px;
        padding: 10px;
    }

    .featured-title {
        font-size: 16px;
    }

    .carousel li img {
        width: 100px;
        height: 100px;
    }

    .sidebar_list {
        margin-bottom: 15px;
    }

    input[type="text"],
    input[type="email"],
    input[type="url"],
    textarea {
        font-size: 16px;
        padding: 10px;
    }

    button,
    input[type="submit"],
    .button {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    footer {
        padding: 15px 10px;
    }

    .footer-navigation {
        flex-direction: column;
        align-items: center;
    }

    .footer-navigation a {
        padding: 5px 0;
        border-right: none;
        border-bottom: 1px solid #444;
        display: block;
        width: 100%;
        text-align: center;
    }

    .footer-navigation a:last-child {
        border-bottom: none;
    }

    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    h4 { font-size: 16px; }
    h5 { font-size: 14px; }
    h6 { font-size: 12px; }

    .frontTitle {
        font-size: 18px;
        margin-bottom: 10px;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .main-container {
        margin: 0;
    }

    #header {
        padding: 15px 0;
    }

    #logo img {
        max-width: 280px;
    }

    #page {
        flex-direction: column;
    }

    .content {
        padding: 15px;
    }

    #sidebars {
        width: 100%;
        padding: 15px;
        border-left: none;
        border-top: 1px solid #ddd;
    }

    .firstpost {
        width: 100%;
        margin-bottom: 15px;
    }

    .secondpost,
    .thirdpost {
        width: calc(50% - 8px);
        margin-right: 15px;
        margin-bottom: 15px;
    }

    .thirdpost {
        margin-right: 0;
    }

    .featured-title {
        font-size: 16px;
    }

    .carousel li img {
        width: 120px;
        height: 120px;
    }

    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    h4 { font-size: 18px; }

    .frontTitle {
        font-size: 20px;
        margin-bottom: 12px;
    }
}

@media screen and (min-width: 769px) {
    #page {
        display: flex;
    }

    .content {
        flex: 1;
    }

    #sidebars {
        width: 300px;
        border-left: 1px solid #ddd;
    }

    .firstpost {
        width: 100%;
    }

    .secondpost,
    .thirdpost {
        width: calc(50% - 10px);
        margin-right: 10px;
    }

    .thirdpost {
        margin-right: 0;
    }

    #navigation ul.menu {
        justify-content: center;
    }

    .footer-navigation {
        justify-content: center;
    }

    .footer-navigation a {
        padding: 0 15px;
        border-right: 1px solid #444;
    }

    .footer-navigation a:last-child {
        border-right: none;
    }
}

@media screen and (min-width: 1025px) {
    .main-container {
        max-width: 1080px;
        margin: 0 auto;
    }

    .secondpost,
    .thirdpost {
        width: calc(33.333% - 10px);
    }

    .thirdpost {
        margin-right: 0;
    }
}

@media (-webkit-min-device-pixel-ratio: 1.5),
       (min-resolution: 144dpi) {
    img {
        image-rendering: crisp-edges;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    a {
        transition: none;
    }

    button,
    input[type="submit"],
    .button {
        transition: none;
    }
}
