* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif
}

#main {
    height: 100vh;
    width: 100%;
}

.active {
    color: rgb(0, 0, 0) !important;
}

#header {
    height: 100vh;
    width: 100%;
}

#navbar {
    background-color: rgb(206, 204, 204);
    height: 15vh;
    width: 100%;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 80%;
    margin-left: 10%;
}

#logo {
    width: 50%;
    font-size: 2.4vw;
    font-weight: bold;
    color: teal;
}

#links {
    width: 50%;
}

#menu {
    display: none;
}

#links ul li {
    list-style-type: none;
}

#links ul li a {
    text-decoration: none;
    color: black;
    font-size: 1.4vw;
    font-weight: 400;
    color: teal;
    padding: 5.8vh 0;
    display: block;
}

#links ul {
    display: flex;
    justify-content: space-between;
}

#news {
    position: relative;
    z-index: 1;
}

#news:hover #news_dropdown {
    display: block !important;
}

#news_dropdown {
    background-color: rgb(236, 236, 236);
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    display: none !important;
    white-space: nowrap;
}

#news_dropdown li a {
    padding: 1vw !important;
    width: 100% !important;
    display: inline-block;
    font-size: 1.2vw !important;
    border: 0 !important;
}

#pmr,
#simulation {
    position: relative;
}

#pmr:hover #product_dropdown {
    display: block !important;
}

#simulation:hover #product_dropdown2 {
    display: block !important;
}

#product_dropdown,
#product_dropdown2 {
    background-color: rgb(221, 221, 221);
    position: absolute;
    top: 0;
    right: 100%;
    display: flex;
    flex-direction: column;
    width: fit-content;
    display: none !important;
}

#product_dropdown2 {
    top: -100%;
}

#product_dropdown li,
#product_dropdown2 li {
    padding: 2vh;
    font-size: 1.1vw;
    color: teal;
}

#product_dropdown li:hover,
#product_dropdown2 li:hover {
    background-color: teal;
    color: rgb(236, 236, 236);
}

#news_dropdown li a:hover {
    background-color: teal;
    color: rgb(228, 228, 228);
}

#section {
    width: 100%;
    height: 85vh;
    background-image: url('/images/green.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section_first {
    width: 100%;
    background-color: rgba(0, 0, 0, .3);
    height: 100%;
    position: relative;
}

.section_second {
    width: 80%;
    margin-left: 10%;
    text-align: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 10%;
}

.section_second h1 {
    font-size: 5vw;
    font-weight: 400;
    color: white;
}

.section_second p {
    font-size: 1.4vw;
    font-weight: 400;
    line-height: 1.5;
    color: rgb(235, 235, 235);
    margin: 10px 0 30px 0;
    text-align: justify;
}

#gallery {
    width: 100%;
    height: 100vh;
    background-color: rgb(235, 235, 235);
}

#gallery h1{
    font-size: 4vw;
    text-align: center;
    font-weight: 400;
    color: teal;
    bottom: 10vh;
}

#gallery_section {
    width: 80%;
    margin-left: 10%;
    padding: 10vh 0;
}

#gallery_image {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 10vh;
}

#gallery_image img {
    width: calc(25% - 20px);
    overflow: hidden;
    object-fit: cover;
    height: 50vh;
}

#about {
    width: 100%;
    height: 100vh;
    text-align: center;
}

#about_us {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

#about_us div {
    width: calc(50% - 10px);
}

#about_img {
    width: 100%;
    height: 20vw;
}

#about_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-position: center;
    box-shadow: 4px 4px 10px grey;
}

#about_container {
    width: 80%;
    margin-left: 10%;
    padding: 10vh 0;
}

#about_container h1 {
    color: teal;
    font-size: 4vw;
    font-weight: 400;
    margin-bottom: 10vh;
}

#about_details p {
    font-size: 1.3vw;
    color: grey;
    text-align: justify;
}

#footer {
    width: 100%;
    height: 100vh;
}

#footer #form {
    width: 80%;
    height: 60vh;
    margin-left: 10%;
    /* background-color: red; */
}

#footer_panel {
    width: 100%;
    height: 40vh;
    background-color: rgb(206, 204, 204);
}

form {
    height: 100%;
    /* background-color: blue; */
}

#form #form_main {
    height: 80%;
    display: flex;
    justify-content: space-between;
    /* background-color: red; */
}

#form {
    text-align: center;
}

#form form #form_main div {
    width: calc(50% - 10px);
    padding: 2vh 0;
    /* height: 100%; */
    /* background-color: blue; */
}

#form_input {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#form_input input {
    font-size: 1.1vw;
    font-weight: 400;
    padding: 1vw;
    outline: 0;
    border-radius: 10px;
    border: 0;
    background-color: rgb(216, 216, 216);
    height: 21%;
    /* margin: 10px 0; */
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

#form_message textarea {
    width: 100%;
    height: 100%;
    padding: 1vw;
    outline: 0;
    font-size: 1.1vw;
    font-weight: 400;
    border-radius: 10px;
    border: 0;
    background-color: rgb(216, 216, 216);
}

#submit {
    font-size: 1.4vw;
    padding: 0.5vw 1.8vw;
    background-color: teal;
    border: 2px solid teal;
    color: rgb(216, 216, 216);
    border-radius: 5px;
    margin: 2.5vh 0;
}

#footer_panel_container {
    display: flex;
    width: 80%;
    margin-left: 10%;
}

#footer_panel_container div {
    width: 100%;
}

#footer_panel2 {
    padding: 20px 0;
}

#footer_panel_container div h2 {
    /* height: 25%; */
    font-size: 1.9vw;
    color: teal;
    font-weight: 400;
    margin-bottom: 20px;
}

#footer_panel_container div a:hover {
    color: teal;
}

#footer_panel_container p {
    color: grey;
    margin-bottom: 10px;
    font-size: 1.2vw;
    font-weight: 400;
}

span{
    color: teal;
}

#close {
    display: none;
}

/* Tab View Responsive Website */

@media only screen and (max-width: 992px) {
    #gallery {
        padding: 10vh 0;
    }

    #gallery h1,
    #machine h1 {
        font-size: 5vw;
        margin-bottom: 30px;
    }

    #gallery_image {
        display: flex;
        margin-top: 0;
    }

    #gallery_section {
        padding: 0;
    }

    #gallery_image img {
        height: 30vh;
        width: calc(50% - 10px);
        margin-bottom: 20px;
        object-fit: cover;
    }
}

@media screen and (max-width: 768px) {
    #navbar {
        background-color: rgb(206, 204, 204);
    }

    nav {
        display: flex;
        justify-content: space-between;
    }

    #logo {
        width: 40%;
        font-size: 4.5vw;
    }

    #links {
        display: none;
        position: absolute;
        top: 15vh;
        left: 0;
        background-color: rgb(236, 236, 236);
        width: 100%;
        height: fit-content;
        z-index: 999;
        padding: 0 10%;
    }

    #menu {
        display: block;
        font-size: 4.5vw;
        position: relative;
    }

    #close {
        display: none;
        font-size: 4.5vw;
        position: relative;
    }

    #menu:hover,
    #close:hover {
        cursor: pointer;
    }

    #links ul li a {
        font-size: 2.4vw;
        width: 100% !important;
        display: inline-block;
        padding: 2vh 10px;
        font-weight: 400;
    }

    #links ul {
        flex-direction: column;
    }

    #links ul li a:hover {
        background-color: teal;
        color: rgb(236, 236, 236);
    }

    #news:hover #news_dropdown {
        display: block !important;
    }

    #news_dropdown {
        background-color: rgb(207, 206, 206);
        position: relative;
        top: 0;
        left: 0;
    }

    #news_dropdown li {
        margin: 0 !important;
    }

    #news_dropdown li a {
        width: 100% !important;
        font-size: 2vw !important;
        padding: 1.4vh 10px !important;
    }

    #product_dropdown,
    #product_dropdown2 {
        top: 0;
        left: 50%;
        width: 50%;
        z-index: 999;
    }

    #product_dropdown2 {
        top: 0;
    }

    #product_dropdown li,
    #product_dropdown2 li {
        font-size: 1.7vw;
    }

    .section_second {
        padding: 0;
    }

    .section_second h1 {
        font-size: 6vw;
    }

    .section_second p {
        font-size: 2.4vw;
    }

    #gallery {
        padding: 10vh 0;
    }

    #gallery h1,
    #machine h1 {
        font-size: 5vw;
        margin-bottom: 30px;
    }

    #about {
        padding: 15vh 0;
    }

    #about_img {
        height: 40vh;
        width: 100%;
    }

    #about_container {
        padding: 0;
    }

    #about_container h1 {
        font-size: 5vw;
        margin-bottom: 10vh;
    }

    #about_details p {
        font-size: 1.8vw;
    }

    #form form div {
        padding: 0;
    }

    #form_input input {
        font-size: 1.7vw;
        padding: 2vw;
    }

    #form_message textarea {
        padding: 2vw;
        font-size: 1.7vw;
    }

    #submit {
        font-size: 2.1vw;
    }

    #footer_panel_container div h2 {
        font-size: 2.4vw;
    }

    #footer_panel_container p {
        margin-bottom: 8px;
        font-size: 1.7vw;
    }
}

/* Mobile View Responsive Website */

@media screen and (max-width: 480px) {

    #logo {
        width: 60%;
        font-size: 6.5vw;
    }

    #menu {
        font-size: 6.5vw;
    }

    #close {
        font-size: 6.5vw;
    }

    #links ul li a {
        font-size: 3.2vw;
    }

    #news_dropdown li a {
        font-size: 2.8vw !important;
    }

    #product_dropdown li,
    #product_dropdown2 li {
        font-size: 2.6vw;
    }

    .section_second h1 {
        font-size: 8.5vw;
    }

    .section_second p {
        font-size: 3.2vw;
    }

    #gallery h1,
    #machine h1 {
        font-size: 7.5vw;
    }

    #about_container h1 {
        font-size: 6.5vw;
        margin-bottom: 20px;
    }

    #about_us {
        flex-direction: column;
        justify-content: space-between;
    }

    #about_us div{
        height: calc(35vh - 20px);
        margin: 10px 0;
    }

    #about_us div {
        width: 100%;
    }

    #about_details p {
        font-size: 2.8vw;
    }

    #form_input input {
        font-size: 2.6vw;
        padding: 3vw !important;
    }

    #form_message {
        height: 50%;
        margin: 1vh 0;
    }

    #form_message textarea {
        font-size: 2.6vw;
        padding: 3vw 2vw;
    }

    #form form #form_main {
        flex-direction: column;
        justify-content: center;
    }

    #form form {
        width: 100%;
        padding: 1vh 0;
    }

    #form form #form_main div {
        width: 100%;
        padding: 0;
    }

    #form form div {
        padding: 0;
    }

    #form_input {
        height: 50%;
    }

    #form_input input {
        height: 30%;
    }

    #submit {
        font-size: 3.4vw;
        padding: .5vh 2vh;
    }

    #footer_panel {
        padding: 0;
    }

    #footer_panel_container {
        flex-direction: column;
        height: 100%;
    }

    #footer_panel_container div {
        width: 100% !important;
        margin: 0;
    }

    #footer_panel2 h2 {
        font-size: 3.8vw !important;
    }

    #footer_panel2 p {
        margin-bottom: 5px;
        font-size: 2.8vw;
    }

    #product_name div, #product_name2 div{
        margin: 5px;
    }
}