/* VARIABLES */
:root {
    --title-color: rgb(75, 224, 120);
    --default-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* GENERAL STYLE */
* {
    box-sizing: border-box;
}
body {
    margin: 50px auto auto auto;
    padding: 5px;
    max-width: 65%;
    background-image: url("../images/cape-may-background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
p {
    font-family: var(--default-font-family);
    font-size: large;
    animation: fade-out-in 1s ease;
}
footer p {
    margin: 0;
}
h1, h2 {
    margin: 0;
    font-family: var(--default-font-family);
    text-transform: uppercase;
    text-shadow: 2px 1px rgb(39, 117, 62);
    color: var(--title-color);
    animation: fade-out-in 1s ease;
}
h3 {
    color: #1aafaa;
    font-size: 25px;
    text-shadow: 1px 1px rgb(75, 75, 75);
    font-weight: 600;
    text-align: center;
    animation: fade-out-in 1s ease;
}
h4 {
    animation: fade-out-in 1s ease;
}
li {
    font-size: 20px;
    width: 125px;
    text-transform: uppercase;
    font-weight: 450;
    text-align: left;
    animation: fade-out-in 1s ease;
}
li:hover{
    color:rgb(29, 227, 58);
    font-weight: 500;
    text-shadow: 1px 1px black;
}
form {
    animation: fade-out-in 1s ease;
}

/*CLASSES*/
/* NAV & DROPDOWN MENU */
.navigation {
    text-align: center;
    text-transform: uppercase;
    background-color: bisque;
}
.menu_option {
    display: inline-block;
    padding: 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    color: black;
    border: none;
    transition: all 0.2s linear;
    background-color: bisque;
}
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover {
    background-color: rgb(232, 207, 177);
}
.dropdown:hover .dropdown-content {
    display: block;
}
.menu_option:hover {
    background-color: #dad0b1;
    font-size: 19px;
}
.menu_option.active {
    color:#1aafaa
}
.menu_option.dropbtn {
    cursor: default;
}

/* TITLE & BACKGROUND */
.webpage_title {
    position: relative;
    text-align: center;
    padding: 60px;
    background: rgba(0, 0, 0, 40%);
}
.webpage_title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(../images/flowers.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
}
.trenton::before {
    background-image: url(../images/Trenton_Main_Image.jpg);
    background-size: cover;
    background-position: center;
}
.newark::before {
    background-image: url(../images/Newark-background.svg);
    background-size: cover;
    background-position: center;
}
.jersey::before {
    background-image: url(../images/Jersey-city-background.jpg);
    background-size: cover;
    background-position: center;
}

/* MAIN CONTENT & CONTAINERS */
.njlogo {
    max-width: 5%;
    animation: fade-out-in 1s ease;
}
.main_content_container {
    display: flex;
    flex-wrap: wrap;
    background-color: antiquewhite;
    text-align: center;
}
.left_content {
    flex: 75%;
    background-color: rgb(255, 229, 253);
    padding: 20px;
}
.right_content {
    flex: 5%;
    background-color: rgb(217, 255, 201);
    padding: 20px;
}

/* BUTTON TO SEND USER TO FORM */
.form_button {
    padding: 10px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid rgba(0, 0, 0, 30%);
    text-align: center;
    background-color: rgb(0, 223, 186);
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.5s ease;
    animation: fade-out-in 1s ease;
}
.form_button:hover {
    background-color: rgb(0, 189, 158);
    padding: 13px;
    border-radius: 10px;
}

/* FORM STYLE */
#question_form {
    font-family: var(--default-font-family);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
}
#question_form label {
    display: block;
    margin-bottom: 5px;
}
#question_form input, #question_form textarea {
    width: 65%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    resize: vertical;
}
input[type=text], input[type=email] {
    border: 1px solid #000000;
}
#submit_question {
    margin: 5px;
    padding: 15px;
    background-color:#1aafaa;
    color: white;
    text-transform: uppercase;
    font-weight: 500;
    border: 2px solid rgb(136, 237, 146);
    float: right;
    cursor: pointer;
    font-size: 15px;
    font-family: var(--default-font-family);
}
#submit_question:hover {
    opacity: 0.8;
}

/* CUSTOM TABLE STYLE (For main.html only) */
#state_data {
    margin-top: 40px;
    text-transform: uppercase;
    font-family: var(--default-font-family);
    font-size: 0.6vw;
    border-collapse: collapse;
    width: 100%;
    text-align: left;
    transform: translate(0.1%);
    animation: fade-out-in 1s ease;
    table-layout: fixed;
}
#state_data td, #state_data th {
    padding: 9px;
}
#state_data tr {
    background-color: #cefaec;
}
#state_data td span {
    background: #ffffff;
    color: rgb(0, 0, 0);
    display: none;
    font-size: 10px;
    font-weight: bold;
    padding: 5px;
    position: absolute;
    text-transform: uppercase;
    top: 0;
    left: 0;
}
#state_data tr:hover {
    background-color: #aed3c7;
}
#state_data th {
    background-color: white;
}

/* FOOTER */
.footer_content {
    background-color: rgb(115, 191, 201);
    clear:both;
    font-family: var(--default-font-family);
    text-align: center;
    padding: 10px;
}

/* EXTRAS */
.reference {
    font-weight: bold;
    color: chocolate;
}

/* IDs */
/* STYLE FOR FEEDBACK */
#submit_button {
    margin: 15px;
    padding: 5px;
    background-color:#1aafaa;
    color: white;
    text-transform: uppercase;
    font-weight: 500;
    border: 2px solid rgb(136, 237, 146);
    font-family: var(--default-font-family);
}
#submit_button:hover {
    opacity: 0.8;
}

/* RESPONSIVE DESIGN PER SCREEN SIZE*/
@media (max-width: 1333px) {
    .main_content_container {
        flex-direction: column;
    }
    .njlogo {
        min-width: 50px;
    }
    #state_data {
        font-size: 17px;
    }
    #state_data thead {
        position: absolute;
        visibility: hidden;
    }
    #state_data tr {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin-bottom: 15px;
    }
    #state_data td {
        border: 1px solid black;
        margin: 0 -1px -1px 0;
        padding-top: 35px;
        position: relative;
        width: 50%;
    }
    #state_data td span {
        display: block;
    }
}

@media (max-width: 768px) {
    #submit_question {
        float: none;
        font-size: 14px;
    }
    h1, h2 {
        font-size: 21px;
    }
}

@media (max-width: 510px) {
    .menu_option {
        font-size: 17px;
    }
}
/* ANIMATIONS */
@keyframes shake {
    25% {transform: rotate(20deg);}
    50% {transform: rotate(-20deg);}
    100% {transform: rotate(0deg);}
}
@keyframes fade-out-in {
    from {opacity: 0;}
    to {opacity: 1;}
}