* {
    box-sizing: border-box;
}

body {
    width: 100%;
}

.row::after {
    content: "";
    clear: both;
    display: block;
}

[class*="col-"] {
    float: left;
    padding: 15px;
}

.dim {
	color: lightgrey;
}
.bright {
	color: black;
	font-weight: bold;
}


#logo {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

#logo img {
    width: 60%;
}

nav {
    margin-top: 70%;
    text-align: center;
    border: 1px solid blue;
    width: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

nav h1 {
    order: 0;
    color: blue;
    text-decoration: underline;
}

nav ul {
    order: 1;
    list-style-type: none;
    padding: 0;
}

nav ul a {
    text-decoration: none;
}

article {
    margin-top: 40%;
    background-color: rgb(255, 102, 102);
    text-align: center;
}

footer {
    background-color: #0099cc;
    color: #ffffff;
    text-align: center;
    font-size: 14px;
    padding: 1px;
    /* vertical-align: middle; */
    width: 100%;
    height: 70px;
    font-family: Arial, Helvetica, sans-serif;
}

footer h1 {
    width: 100%;
    color: rgb(255, 0, 102);
    /* text-align: center; */
}

.buttonright {
    height: 30px;
    width: 90px;
    margin-right: 30px;
    margin-top: -50px;
    float: right;
}

/* For desktop: */

.col-1 {
    width: 8.33%;
}

.col-2 {
    width: 16.66%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.33%;
}

.col-5 {
    width: 41.66%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.33%;
}

.col-8 {
    width: 66.66%;
}

.col-9 {
    width: 75%;
}

.col-10 {
    width: 83.33%;
}

.col-11 {
    width: 91.66%;
}

.col-12 {
    width: 100%;
}

#inputs {
    margin-top: -320px;
}

#state {
    margin-bottom: 10px;
}

.formName {
	display: flex;
	justify-content: center;
}
#stateTable {
	padding: 5px;
	border: 1px solid black;
	border-collapse: collapse;
}
#stateTable td {
	border: 1px solid black;
}
.choose {
	background: lightblue;
}

chosenStates {
    display: none;
}

#num2_buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 200px 0 20px 0;
}

#num2_buttons button {
    background-color: rgb(0, 0, 102);
    border: none;
    font-family: inherit;
    font-size: inherit;
    color: rgb(242, 242, 242);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    border: 30px;
    margin: 0 20px 0 0;
}

.autocomplete {
    /*the container must be positioned relative:*/
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

input {
    border: 1px solid red;
    background-color: none;
    padding: 10px;
    font-size: 14px;
}

input[type=text] {
    background-color: none;
    width: 100%;
}

input[type=submit] {
    background-color: DodgerBlue;
    color: black;
    cursor: pointer;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
}

.autocomplete-items div {
    font-size: 12px;
    padding: 5px;
    cursor: pointer;
    height: 22px;
    overflow: hidden;
    color: white;
    font-weight: bold;
    background-color: rgb(1, 66, 1);
    border-bottom: 1px solid #d4d4d4;
    width: 100%;
}

.truncate {
    white-space: nowrap;
    text-overflow: ellipsis;
}

.autocomplete-items div:hover {
    /*when hovering an item:*/
    background-color: red;
}

.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: DodgerBlue !important;
    color: blue;
}

prompt {
    font-weight: bold;
}

#button_group {
    margin: 0 auto;
}

@media only screen and (max-width: 768px) {
    /* For mobile phones: */
    [class*="col-"] {
        width: 100%;
    }
    #inputs {
        margin-top: -240px;
        margin-bottom: 100px;
    }
    prompt {
         font-size: 12px;
    }
    .row {
        flex-direction: column;
        align-items: center;
    }
    article {
        margin: 0 auto;
    }
    nav {
       margin-top: 45%;
    }
    #logo img {
        width: 100%;
        margin-top: 0px;
    }
    #news_right {
    	margin-top: -110px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #num2_buttons {
        margin: 20px -20px 20px 0;
    }
    footer {
        font-size: 10px;
    }
    .buttonright {
            font-size: 10px;
	    clear: both;
	    height: 25px;
	    width: 70px;
	    margin-top: -30px;
	    margin-right: 15px;
	      
    }
    div.autocomplete {
        width: 100px;
    }
    input[type=text] {
	    width: 80%;
    }
}
