* {
  box-sizing: border-box;
}

body {
  padding: 0px;
  margin: 0px;
  background-color: #ece9e9;

}

/* Add a black background color to the top navigation */
.topnav {
  background-color: #3C3838;
  color: #F7F5F5;
  overflow: hidden;
  box-shadow: 0 5px 10px 0 rgb(0 0 0 / 20%);
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 21px 16px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
  height: 100%;
}

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

/* Add a color to the active/current link */
.topnav a.active {
  background-color: #B1E0FF;
  color: #3C3838;
}

#projectList {
  list-style-type: none;
  padding: 0%;
}

#Projects {
  overflow-y: auto;
}

ul li {
  height: 40px;
  line-height: 40px;
  background: #B9B6B4;
  color: black;
  margin: 5px;
  text-align: center;
}

.itemClicked {
  background-color: #B1E0FF;
  color: #3C3838;
}

ul li:hover {
  background-color: #EFECEA;
  color: black;
  cursor: pointer;
}

#inputbox {
  display: none;
}

#container {
  width: 100%;
  height: 100%;
}

.content {
  display: flex;
  align-items: center;
  justify-content: center;
}



#myfile {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

#uploadbox {
  margin: 15px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  max-width: 325px;
  background-color: #3C3838;
  color: #EFECEA;
  border-radius: 8px;
}

#fileLabel {
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0.3px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  text-align: center;
}

#uploadbox:hover{
  background-color: black;
}

#fileLabel {
  cursor: pointer;
}

#Calculate {
  margin: 10px auto;
}

input[type=text], select{
  width: -webkit-fill-available;
  padding: 5px;
  margin: 10px 5px;

  background-color: #f7f5f5;
  border: 1px solid #999;
  height: 50px;


}

#speedCalc {
  display: none;
}

#resolutionSelectDiv {
  display: none;
}

.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  float: left;
  padding: 0px;
  width: 340px;
  height: 620px;
  margin: 15px;
  border: 2px solid #B9B6B4;
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}


.card_header {
  border-bottom: 1px solid #eee;
  padding: 20px;
  background-color: #3C3838;
  color: #EFECEA;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.card_row {
  border-bottom: 1px solid #eee;
  padding: 10px 20px 0px 20px;
}

.btnDiv {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 7px;
}

.button {
  background-color: #3C3838;
  color: #EFECEA;
  border: none;
  color: white;
  text-align: center;
  text-decoration: none;
  padding: 15px;
  font-size: 18px;
  height: 60px;
  border-radius: 8px;
  width: 220px;
}

.button:hover{
  background-color: black;
}

#result {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#resulttext {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.goodResult {
  background-color: #04AA85;
  color: #F7F5F5;
}

.badResult {
  background-color: #aa0404;
  color: white;
}


.prev_container{
  display: flex;
  flex-direction: column;
  max-width: 1115px;
  margin: 20px auto;

}

.prev_header{
  height: 60px;
  background-color: #3C3838;
  color: #EFECEA;
  width: 100%;
  padding-left: 20px;
}
.prev_body{
  height: 150px;
  background-color: white;
  border: 10px inset #2c2b29;
  overflow-x: auto;
}
.prev_inner_body{
  width: 100%;
  height: 100%;
  border: 10px inset #B9B6B4;
}
#preview_img{
  height: 100%;
  overflow-x: auto;
  image-rendering: pixelated;
}

#language{
  padding: 0px;
  margin: 10px 75px 11px 0px;
}
#language img{
  height: 35px;
}
.topnav a:last-child {
  float: right;
}

@media only screen and (max-width: 600px) {
  .content {
    display: flex;
    flex-direction: column;
  }

  .card {
    width: 95%;
  }
}