/*
General
*/

* {
  font-family: Arial, Helvetica, sans-serif;
  color: #FFFFFF;
}

body {
  background-color: #181818;
}

.green {
  color: green;
}

.red {
  color: red;
}

/*
Page
*/

header, footer {
  padding: 1em;
  color: white;
  background-color: DarkGreen;
  clear: left;
  text-align: center;
}

article {
  margin-left: 5px;
  margin-right: 5px;
  padding: 1em;
  overflow: hidden;
}

/*
Buttons
*/
.styledButton {
  width: 100%;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  margin: 15px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
}

.createBtn {
  background-color: #212121;
  color: white;
  border: 2px solid #212121;
}

.greyBtn {
  background-color: #212121;
  border: 2px solid #212121;
}

.dangerBtn {
  background-color: #f44336;
  color: white;
  border: 2px solid #f44336;
}

.styledButton:hover {
  background-color: #3D3D3D;
}


/*
Message bar/response alert
*/

.alert {
  padding: 20px;
  color: white;
  opacity: 1;
  transition: opacity 0.6s;
  margin: 15px 0px;
}

.alert.error {
  background-color: #f44336;
}

.alert.success {
  background-color: #04AA6D;
}

.alert.info {
  background-color: #2196F3;
}

.alert.warning {
  background-color: #ff9800;
}

.closebtn {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}


/*
Top nav
*/
/* Add a black background color to the top navigation */
.topnav {
  background-color: #212121;
  overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  display: block;
  color: #FFFFFF;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #3D3D3D;
}

/* Add an active class to highlight the current page */
.topnav a.active {
  background-color: #008cba;
  color: white;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .navIcon {
  display: none;
}

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.navIcon) */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {
    display: none;
  }

  .topnav a.navIcon {
    float: right;
    display: block;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the navIcon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
  .topnav.responsive {
    position: relative;
  }

  .topnav.responsive a.navIcon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}


/*
Forms
*/

input[type=text], input[type="email"], input[type="password"], input[type=number], input[type="date"], select {
  background-color: #181818;
  color: #FFFFFF;
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #3D3D3D;
  border-radius: 4px;
  box-sizing: border-box;
}

button[type=submit] {
  width: 100%;
  background-color: DarkGreen;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button[type=submit]:hover {
  background-color: #003200;
}

/*
Lists
*/

.list-item {
  border: 1px solid #212121;
  padding: 2px 16px;
  margin-bottom: 6px;
  border-radius: 3px; /* rounded corners */
}

.list-item:hover {
  /* On hover, add a deeper shadow */
  box-shadow: 0 2px 4px 0 #3D3D3D;
}

.list-item-name{
  font-size: 1.1rem;
  display: block; /* New line after span */
}

.list-item-category{
  color: #FFFFFF;
  display: block;
}

.list-item-attributes{
  color: #FFFFFF;
  display: block;
}

/*
Bespoke
*/

.ccText {
  font-family: Georgia, "Arial Black", Helvetica, sans-serif;
  font-size: 4em;
  text-align: center;
}
