body{
    margin: 20px auto 20px auto;
    font-family: helvetica;
    max-width: 600px;
    padding: 10px;
}

.form-group{
    margin-bottom: 20px;
}

form{
    line-height: 30px;
    max-width: 600px;
}

h3{
  margin-bottom: 40px;  
  margin-top: 20px;
}

.btn{
    min-width: 120px;
    margin-top: 20px;
}

#main{
    margin: 20px;
}

.btn-nav{
    margin-bottom: 20px;
}

.new-icon{
    display: inline-block;
    margin-bottom: 20px;
}

.trash-icon{
    display: inline-block;
    margin-left: 10px;
}

.table-row{
    border-bottom: 1px solid #ccc;
    line-height: 40px;
}

.tbl{
    margin-bottom: 50px;
}

.row-category-name{
    display: inline-block;
    width: 200px;
}

.row-sort-position{
    display: inline-block;
    width: 40px;
}

.table-row-category{
    width: 300px;
}

.row-auction-name{
    display: inline-block;
    width: 200px;
}

.row-auction-enddate{
    width: 160px;
    display: inline-block;
}

.row-auction-startprice{
    width: 100px;
    display: inline-block;
}

.row-nominee-fullname{
    display: inline-block;
    width: 400px;
}

.hidden{
    display: none;
}

.vote-img{
   height: 100%;
}

.nominee-vote-box input, .nominee-vote-box label{
    display: inline-block;
}

.nominee-vote-box{
    height: 120px;
    line-height: 120px;
    vertical-align: middle;
    margin-bottom: 20px;
    width: 100%;
}

.nominee-vote-box input{
    height: 20px;
    width: 20px;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 50px;
}

.nominee-vote-box label{
    width: 100%;
    line-height: 20px;
    height: 100%;
    vertical-align: middle;
}

.vote-img-container{
    display: inline-block;
    min-width: 160px;
    max-width: 160px;
    overflow: hidden;
    vertical-align: top;
    height: 100%;
    margin-right: 10px;
}

.vote-label-container{
    display: inline-block;
    max-width: calc(100% - 185px);
}

.auction-box{
    height: 120px;
    margin-bottom: 80px;
    width: 100%;
    padding-left: 0px;
}

.auction-box input{
    display: inline-block;
    width: 100px;
}

.auction-container{
    display: inline-block;
    width: calc(100% - 210px);
}

.auction-img-container{
    display: inline-block;
    width: 200px;
    height: 100%;
    vertical-align: top;
}

.auction-box img{
    height: 100%;
}

.auction-productname{
    width: 100%;
    font-weight: bold;
}

.auction-box button{
    margin-top: 0px;
}

.header-img{
    max-width: 100%;
}

.heading-result-category:first-child{
    margin-top: 0px;
}

.heading-result-category{
    margin-top: 80px;
}

.table-row-result-auction{
    width: 1000px;
}

.row-result-name{
     display: inline-block;
    width: 400px;
}

.row-result-firstname, .row-result-lastname{
    display: inline-block;
    width: 150px;
}

.row-result-email{
    display: inline-block;
    width: 250px;
}

.row-result-submitdate{
    display: inline-block;
    width: 160px;
}

.row-result-price{
    display: inline-block;
    width: 100px;
    text-align: right;
}

.result-btn-back{
    margin-top: 30px;
}

.btn-back{
    margin-right: 40px;
}

/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 250px; /* Set a default minimum width */
  margin-left: -125px; /* Divide value of min-width by 2 */
  background-color: #28a745;
  color: #fff; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 2px; /* Rounded borders */
  padding: 16px; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 1; /* Add a z-index if needed */
  left: 50%; /* Center the snackbar */
  bottom: 30px; /* 30px from the bottom */
}

#snackbarerr {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 250px; /* Set a default minimum width */
  margin-left: -125px; /* Divide value of min-width by 2 */
  background-color: #dc3545;
  color: #fff; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 2px; /* Rounded borders */
  padding: 16px; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 1; /* Add a z-index if needed */
  left: 50%; /* Center the snackbar */
  bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show, #snackbarerr.show {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@media screen and (max-width: 475px) {
  .auction-box {
     height: 180px;
  }
  
  .auction-img-container{
      height: 80px;
      width: 120px;
  }
  
  .auction-container{
      width: calc(100% - 150px);
  }
}