
html, body{
  padding: 0;
  margin: 0;
  font-family: Arial;
}

h1{
  margin: 0;
  display: inline;
  width: 300px;
  vertical-align: middle;
  flex-grow: 1;
}

header{
  background: #242b31;
  width: 100%;
  text-align: left;
  color: #fff;
  grid-area: header;
  display: flex;
  align-items: center;
}

header img{
  height: 35px;
  margin-left: 5px;
  margin-right: 10px;
  vertical-align: middle;
  width: 35px;
  filter: invert();
}

article{
  margin-left: 10px;
  margin-right: 10px;
}

#bulkConvert > div{
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: center;
  padding: 10px;
}

.holder{
  text-align: center;
  display: flex;
  flex-direction: column;
}

.holder img{
  object-fit: scale-down;
  max-width: 100%;
  max-height: 300px;
  flex-grow: 1;
  cursor: zoom-in;
}

.holder button{
  border: none;
  background: #2c93f1;
  color: white;
  padding: 5px;
  cursor: pointer;
}

.buttons{
  margin-top: 5px;
  margin-bottom: 5px;
}

.buttons button + button{
  margin-left: 10px;
}

[name="width"], [name="height"]{
  width: 8ch;
}

#uploadArea{
  margin: 20px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 20px;
}

#uploadArea p{
  margin-top: 0;
}

#converted{
  display: grid;
  gap: 20px 20px;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

#fullscreen{
  position: fixed;
  top: 0;
  left: 0;
  background: white;
  width: 100%;
  height: 100%;
  visibility: hidden;
  overflow: scroll;
  text-align: center;
}

#fullscreen img{
  object-fit: scale-down;
  max-width: 100%;
  max-height: 100%;
}

#fullscreen button{
  border: none;
  background: transparent;
  font-size: 45px;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}

.file{
  display: inline-block;
  background: #2c93f1;
  cursor: pointer;
  padding: 5px;
  font-weight: bold;
  color: white;
  text-align: center;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.file input{
  display: none;
}

#bulkConvert{
  border: 1px solid #888;
  margin-left: 20px;
  margin-right: 20px;
  background-color: #f7f8f9;
  border-radius: 5px;
  display: none;
}

#bulkSize, #side{
  visibility: hidden;
}

#bulkConvert button{
  font-weight: bold;
  font-size: 16px;
  background: #2c93f1;
  border: 0;
  padding: 5px;
  color: white;
  cursor: pointer;
  display: block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

#bulkConvert button + button{
  margin-top: 8px;
}

h2{
  margin: 0;
  text-align: center;
  background-color: #92a1a1;
  color: white;
}

fieldset{
  text-align: center;
  border: 0;
}

.menu{
    display: inline-block;
    position: relative;
  }
  
  .menu > a{
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding-left: 6px;
    padding-right: 6px;
  }

  .menu ul{
    display: none;
    background: #ffffff;
    list-style-type: none;
    padding: 0;
    margin: 0;
    z-index: 100;
  }
  
  .menu:hover ul{
    display: block;
    position: absolute;
  }
  
  .menu li{
    padding: 5px;
  }
  
  .menu li:hover{
    background: #dcdcdc;
  }
  
  .menu li a{
    display: block;
    width: 100%;
    text-decoration: none;
    color: #242b31;
  }
  