body {
    margin: 0;
}

* {
    font-family: Helvetica, sans-serif;
}

h1 {
    margin-left: 20px;
}
@font-face {
    font-family: "font";
    src:url("fonts/HeadlinerNo.45 DEMO.ttf");
}
.menu {
    background-color: black;
}

#nav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
}

li.nav {
    float: left;
}

li.nav a.nav, .dropbtn {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color:white;
}

li.nav a.nav:hover, .dropdown:hover .dropbtn {
    /*background-color: rgba(0, 0, 0, 0.1);*/
    background-color: gold;
    color: #1a1a1a;
}

.dropdown-content {
    position: absolute;
    display: none;
    min-width: 100px;
    /*background-color: #f2f2f2;*/
    background-color: #1a1a1a;
    box-shadow: -8px 8px 16px 0 rgba(0, 0, 0, 0.2), 8px 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.dropdown-content > a {
    padding: 10px 12px;

    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content > a:hover {
     /*background-color: lightseagreen;*/
    /*background-color: #e6c300;*/
    /*background-color: #ffac00;*/
    background: gold;
    color: #000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

#menu {
    margin: 0 0 10px 0;
}

#menu a {
    padding: 10px 10px 10px 10px;
    text-decoration: none;
}

#menu a:hover {
    background-color: gold;
}

/* Message */
.msg {
    background: white;
    text-align: center;
    color: black;
}

.success {
    background-color: #4BB543;
}
.error{
    background: #b2180e;
    color: white;
}
/*MODAL BOX*/
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    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 */
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    text-align: center;
    padding: 0;
    border: 1px solid #888;
    width: 50%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;


}

/* Add Animation */
@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
}

/* The Close Button */
.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 15px 20px;
    background-color: #660066;
    color: white;
}

.modal-body {
    padding: 16px 16px;

}

.modal-footer {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
}

/*FORM*/
form {
    /*margin: 20px 20px 0 20px;*/
    /*padding-bottom: 30px;*/
    display: inline-block;

}

form select, form input, form textarea {
    padding: 6px 10px;
    margin: 8px 0;
    font-size: 0.8em;
    border: 0.5px solid #ccc;
    /*min-width: 180px;*/
    box-sizing: border-box;
    border-radius: 3px;

}

form input:focus, form textarea:focus {
    /*box-shadow: 0 0 15px #ccc;*/
    border: 1px solid #660066;
}

form input[type=submit] {
    /*width: 180px;*/
    background-color: whitesmoke;
    border: 0.5px solid #ccc;
    color: black;
    padding: 8px 13px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 100%;
}

form input[type=submit]:hover {
    background-color: #7c5287;
    color: white
}

.edit input[type=submit] {
    position: relative;
}

label {
    text-align: left;
    /*width:180px;*/
}

.btn {
    min-width: 100px;
    background-color: whitesmoke;
    border: 1px solid black;
    color: black;
    padding: 4px 7px;
    cursor: pointer;
    font-size: 110%;
    margin-left: 20px;
}

.btn:hover {
    background-color: dimgrey;
    box-shadow: 0 0 9px #ccc;
    color: white;
}

.del {
    border: 1px solid #b2180e;
}

.del:hover {
    background-color: #b2180e;
    color: white;
}

.upd {
    border: 1px solid darkblue;
}

.upd:hover {
    background-color: #0078d7;
}

.add {
    border: 1px solid green;
    height: 40px;
    margin-left: 20px;
}

.add:hover {
    background-color: green;
}

.items {
    border-collapse: collapse;
    width: 100%;
}

.items th, .items td {
    margin-left: 20px;
    text-align: left;
    padding: 8px 8px 8px 30px;
}

.items tr:nth-child(even) {
    background-color: #f2f2f2;
}


/*Search*/
.search {
    text-align: center;
    margin-top: 20px;
}

.search input {
    font-size: 1.3em;
    width: 70%;
    padding: 15px;
    border: 1px solid lightgray;
    border-radius: 5px;
}

.search input::placeholder {
    color: #888888;
    /*background: #afbfad;*/
}

.search input:focus {
    box-shadow: 0 0 16px lightgrey;
}

.noResults {
    display: none;
}

.noResults p {
    text-align: center;
    font-size: 1.3em;
}

/*Weapons*/

#weapon-form {
    margin: auto;
    width: 70%;
}

#weapon-table-form {
    table-layout: fixed;
    text-align: left;
    width: 100%;
}


#weapon-table-form th, #weapon-table-form td {
    text-align: left;
    padding:6px 6px;

}

#weapon-table-form td {
    /*width:200px;*/
}

#weapon-form input, #weapon-form textarea {
    margin: 3px 0;
    width: 100%;

}

#weapon-form input[type=submit] {
    margin: 20px auto;
}

.weapon-modal {
    padding-top: 30px;
    overflow: auto;
}

.weapon-modal-content {
    margin: auto;
    min-width: 500px;
    height:auto;
}
.weapon-modal-body{
    /*max-height:90vh;*/
}
.iconImg{
    width:40px;
}

/*Category*/
#category-form {
    text-align: left;
}

#category-form input {
    width: 200px;
}

/*Comparator*/
.weaponInputDiv{
    margin-left:5%;
}
.weaponInput{
    margin-top:2%;
    width: 20%;
    font-size: 1.3em;
    padding: 15px;
    border: 1px solid lightgray;
    border-radius: 5px;
}

.weaponInput input::placeholder {
    color: #888888;
    /*background: #afbfad;*/
}

.weaponInput input:focus {
    box-shadow: 0 0 16px lightgrey;
}
#vsSpan{
    font-size:1.2em;
    margin:0 2% 0 2%;
}
.weaponDivs{
    margin-left:4%;
}
.weaponDiv{
    position: relative;
    float: left;
    background:  #e6e6e6;
    box-shadow: 0 0 20px #f2f2f2;
    margin:4% 4% 0 0;
}
#weaponDiv1{
    width:30%;
}
#weaponDiv2{
    width:45%;
}
.weaponTitle{
    margin-left: 3%;
    font-family: Georgia, sans-serif ;
    font-weight:bold;
    font-size: 1.8em;
}
#img1,#img2{
    width:70px;
    margin:0 10px 0 10px;
}
.weaponTitle,#img1,#img2{
    display:inline-block;
    vertical-align:middle;
}
.weaponDivContent{
margin:10px;
}
.contentTable{
width:90%;
}
.value{
color: darkred;
font-size: 1.2em;
}
.diffValue{
    font-size: 1.4em;
    font-weight:bold;
}

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 0;
}
#linkDataSource{
    text-decoration: none;
    color: #4d4d4d;
    padding-bottom: 20px;
    z-index: 1;
}
#linkDataSource:hover{
    color: #000;
}
#contact{
    float: right;
    padding:10px;
    background-color: whitesmoke;
}
#contact a{
    text-decoration: none;
    color: black;

}
#contact:hover{
    color: #000;
    box-shadow: 0 0 10px darkgray;
}