header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: baseline;
    background-color: #0a5b95;
    padding: 0.5rem;
    width: 100%;
    z-index: 8000;

    a {
        font-size: 1.3rem;
        font-family: 'Open-Sans-Extrabold';
        color: #eee;

        &:hover,
        &:focus {
            color: #fff;
        }
    }

    button {
        border: none;
        background: none;
        font-size: 1.6rem;
        color: #eee;
        margin: 0;

        &:last-child {
            font-size: 1.2rem;
        }
    }
}

nav {
    background-color: #efefef;
    border-top: 1px solid #d2d2d2;
    border-bottom: 1px solid #d2d2d2;
    overflow: hidden;
    top: 57px;
    z-index: 8000;
    width: 100%;
}

main {
    position: relative;
    padding: 20px 0;
}

footer {
    border-top: 1px solid #d2d2d2;
    background-color: #eee;
    padding: 30px 10px;
    text-align: center;

    p {
        color: #108d00;

        a {
            color: inherit;
        }
        
        margin-bottom: 7px;
    }

    cite {
        font-size: 12px;
        font-style: normal;
    }
}

#main,
#search,
#categories,
#recommend,
#goldBox {
    figure {
        a {
            display: block;

            img {
                zoom: 1;

                &:hover,
                &:focus {
                    border: 1px solid #ff9020;
                }
            }
        }

        figcaption {
            a {
                color: #333;
                font-size: 14px;

                &:hover,
                &:focus {
                    text-decoration: underline;
                }
            }
        }

        p {
            margin-top: 7px;
            margin-bottom: 5px;
            color: #cb1400;
            font-weight: bold;
            font-family: Tahoma;
        }
    }

    .ads {
        a {
            display: block;
            margin-bottom: 5px;

            img {
                width: 100%;
            }
        }
    }
}

#event {
    figure {
        a {
            display: block;

            img {
                zoom: 1;

                &:hover,
                &:focus {
                    border: 1px solid #ff9020;
                }
            }
        }
    }
}

.swiper {
    width: 100%;
    height: 100%;

    .swiper-wrapper {
        .swiper-slide {
            text-align: center;
            font-size: 18px;
            background: #fff;
            display: flex;
            justify-content: center;
            align-items: center;

            img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
    }

    --swiper-navigation-size: 1.875rem;
}

.offcanvas {
    max-width: 300px;
    z-index: 9999;

    .offcanvas-header {
        h5 {
            color: #1f3cab;
            font-weight: bold;
            font-family: 'Open-Sans-Extrabold';
        }
    }

    .offcanvas-body {
        .dropdown {
            .dropdown-menu {
                background-color: #f1f1f1;
                position: relative !important;
                transform: none !important;
            }
        }

        table {
            width: 100%;

            caption {
                caption-side: top;
                padding: 0 0;
            }

            tr {
                th {
                    text-align: left;
                    padding: 3px 0;
                    font-weight: inherit;
                }

                td {
                    text-align: right;
                    padding: 3px 0;
                }
            }
        }

        iframe {
            width: 100%;
        }
    }
}

#btnMoveTop {
    position: fixed;
    right: 0;
    bottom: 24px;
    cursor: pointer;
    z-index: 9998;

    img {
        width: 60%;
    }
}
