* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    background-color: white;
    color: #333333;
}

nav {
    /* padding-top: 40px; */
    overflow: auto;
    background-color: black;
    color: white;
    position: fixed;
    z-index: 1;
    display: none;
    width: 130px;
    margin-top: 20px;
}

.nav_menu_item {
    height: 100px;
    text-align: center;
    /* line-height: 120px; */
    /* float: left; */
    /* display: block; */
    vertical-align: middle;
    /* padding: 12px 24px; */
}

.nav_menu_item:hover {
    background-color: grey;
}

.nav_menu_item img {
    margin: auto;
    display: block;
    padding: 18px 24px 6px;
}

.nav_menu_item div {
    /* text-align: center; */
    /* padding: 14px 16px; */
    font-size: 0.7em;
    /* line-height: 1.5; */
    display: inline-block;
}
.nav_padding {
    min-height: 80px;
}

.top_image_container {
    background-image: url("../images/Chinese_medicine_free.jpg");
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: brightness(60%);
    /* position: relative; */
}

.top_image {
    width: 100%;
}

.top_bar {
    top: 0;
    position: fixed;
    width: 100%;
    height: 80px;
    z-index: 1;
    background-color: black;
    color: white;
}
.top_bar_menu {
    height: 40px;
    line-height: 40px;
}
.top_bar_menu div {
    display: inline-block;
    font-size: 0.7em;
    width: 24%;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
    /* line-height: 1.5; */
    height: 100%;
}
.top_bar_menu div:hover {
    background-color: grey;
}
main {
    margin-left: 10px;
    margin-top: 40px;
}

.top_image_text {
    position: absolute;
    color: white;
    font-size: 7vw;
    /* top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
    width: 90%;
    text-align: center;
    height: 500px;
    line-height: 500px;
    top: 40px;
    -webkit-user-select: none; /* Safari 3.1+ */
    -moz-user-select: none; /* Firefox 2+ */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard syntax */
}
.nav_blank {
    height: 60px;
}

.top_bar_title_block {
    font-size: 0.8em;
    height: 40px;
    width: 100%;
    padding-left: 0px;
    background-color: black;
    color: white;
    line-height: 40px;
}
.top_bar_title_block_text {
    display: inline-block;
    font-size: 2.4vw;
    padding: 0px 12px 0px 12px;
    line-height: 40px;
}
.top_bar_title_block_text_right {
    display: inline-block;
    font-size: 2.4vw;
    padding: 0px 12px 0px 12px;
    line-height: 40px;
    float: right;
}
.top_bar_subtitle_block_text {
    display: inline-block;
    font-size: 1.2vw;
    padding: 0px 12px 0px 12px;
}
.card_container {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
}
div.card {
    width: 250px;
    /* max-width: 30%; */
    /* min-width: 30%; */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    text-align: center;
    margin: 12px;
    flex-grow: 1;
}
div.card_wide {
    width: 100%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    text-align: center;
    margin: 12px;
}
div.card_header {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    font-size: 40px;
}
div.card_header_img {
    color: white;
    width: 100%;
}
div.card_wide_img {
    display: flex;
    align-items: center;
    flex-flow: wrap;
}
div.card_wide_img > div {
    flex: 50%;
    max-width: 50%;
    padding: 0 4px;
}
div.card_wide_img > div > img {
    width: 100%;
}
div.card_header_img img {
    width: 100%;
}
div.card_details {
    padding: 10px;
}
div.card_details h4 {
    margin-top: 0;
    margin-bottom: 10px;
}
div.card_details p {
    font-size: 0.8em;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}
.card_header_icon {
    /* background: #4CAF50; */
    padding: 12px 48px;
}
.card_icon {
    width: 150px;
    max-width:150px;
    text-align: center;
    margin: 12px;
    flex-grow: 1;
}
div.card_icon_details p {
    font-size: 0.8em;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    color: #ff9e00;
}
div.card_header_icon img {
    width: 100%;
}

.div_href {
    height: 80px;
}
.map_container {
    margin: 36px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* Bordered form */
form {
    border: 3px solid #f1f1f1;
}

/* Full-width inputs */
input[type=text], input[type=password], textarea {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Set a style for all buttons */
button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 18px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    min-width: 75px;
}

/* Add a hover effect for buttons */
button:hover {
    opacity: 0.8;
}

/* Extra style for the cancel button (red) */
.cancelbtn {
    min-width: 75px;
    width: auto;
    padding: 10px 18px;
    background-color: #f44336;
}

/* Center the avatar image inside this container */
.imgcontainer {
    text-align: center;
    margin: 24px 0 12px 0;
}
.dialog_title {
    text-align: center;
    margin: 24px 0 12px 0;
    font-weight: bold;
    font-size: 1.5em;
}

/* Avatar image */
img.avatar {
    width: 40%;
    border-radius: 50%;
}

/* Add padding to containers */
.f_container {
    padding: 16px;
}

/* The "Forgot password" text */
span.psw {
    float: right;
    padding-top: 16px;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 120px;
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 5px auto; /* 15% from the top and centered */
    border: 1px solid #888;
    width: 70%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
    /* Position it in the top right corner outside of the modal */
    position: absolute;
    right: 25px;
    top: 0; 
    color: #000;
    font-size: 35px;
    font-weigt: bold;
}

/* Close button on hover */
.close:hover,
.close:focus {
    color: red;
    cursor: pointer;
}

/* Add Zoom Animation */
.animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
    from {-webkit-transform: scale(0)} 
    to {-webkit-transform: scale(1)}
}

@keyframes animatezoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

@media only screen and (min-width: 800px) {
    body {
        background-color: white;
    }
    nav {
        height: 100%;
        display: block;
    }

    nav div {
        float: none;
        /* width: 120px; */
    }
    .top_bar {
        height: 60px;
    }
    .top_bar_menu {
        display: none;
    }
    main {
        margin-left: 10px;
        margin-top: 40px;
    }
    .top_bar_title_block {
        padding-left: 10px;
        height: 60px;
        line-height: 60px;
    }
    .top_bar_title_block_text {
        line-height: 60px;
    }

    .top_bar_title_block_text_right {
        line-height: 60px;
    }
    
    div.card_wide_img > div {
        flex: 25%;
        max-width: 25%;
    }
    .div_href {
        height: 40px;
    }
    div.card {
        /* width: 350px;
        max-width: 350px; */
        min-width: 30%;
    }
    .top_image_text {
        top: 60px;
    }
    .modal {
        padding-left: 130px;
        padding-top: 100px;
    }
}

@media only screen and (max-width: 1024px) {
    .top_image_container {
        background-attachment: scroll;
        height: 300px;
    }
    .top_image_text {
        height: 300px;
        line-height: 300px;
    }
}