* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
  display: flex;
  height: inherit;
  flex-wrap: wrap;
}
.content, .sidebar {
  padding: 30px 15px 15px 15px;
}
.content {
  display: flex;
  flex-direction: column;
  text-align: center;
  flex-grow: 1;
  min-width: calc(100% - 350px);
  background-color: #f5f5fa;
}
h1 {
  color: #3a3ab3;
  margin-bottom: 40px;
  text-transform: uppercase;
}
.preview-section {
  display: flex;
  row-gap: 40px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.preview {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
label {
  cursor: pointer;
  margin-bottom: 40px;
}
button {
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
}
#upload {
  margin: 0;
  font-size: 14px;
  height: 44px;
  width: 200px;
  pointer-events: none;
}
i {
  font-size: 22px;
}
.btn-primary {
  font-size: 18px;
  height: 60px;
  width: 100%;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  margin-top: auto;
  border-radius: 6px;
  border: none;
  background-color: #5f5ff0;
}
:is(button, [for=filepicker]):active {
  transform: scale(0.98);
}
.sidebar {
  display: flex;
  flex-direction: column;
  min-width: 350px;
  color: #2e2e88;
  flex: 1;
  row-gap: 15px;
  background-color: #fff;
  border-left: 1px solid rgba(0,0,0,0.2);
}
.label {
  display: flex;
  align-items: center;
  column-gap: 6px;
  font-weight: 500;
  margin-bottom: 18px;
}
.quality-type {
  font-size: 14px;
  display: flex;
  margin-bottom: 4px;
  justify-content: space-between;
}
input {
  width: 100%;
}
#compressor {
  cursor: pointer;
}
.info-wrap {
  margin-top: 10px;
}
.group {
  display: flex;
  align-items: end;
  column-gap: 8px;
  line-height: 22px;
  justify-content: space-between;
}
.group div {
  font-size: 14px;
}
.group input {
  border-radius: 5px;
  padding: 0 11px;
  font-size: 18px;
  height: 44px;
  outline: none;
  color: #7e7777;
  border: 1px solid #d4d2d2;
}
.wrap label {
  margin-bottom: 0;
}
.wrap div {
  margin-bottom: 8px;
}
.middle {
  padding: 0 8px;
  height: 44px;
  display: flex;
  align-items: center;
}
#ratio:checked + .unlock {
  display: none;
}
#ratio:not(:checked) ~ .lock {
  display: none;
}
#reset {
  padding: 8px 15px;
  margin-bottom: 30px;
  margin-top: 11px;
  border-radius: 100px;
  background: linear-gradient(#f8f8f8, #d8d8d8);
  text-shadow: 0 1px 0 #fff;
  border: 1px solid #aaa;
}
#reset:active {
  background-color: #e4e4e4;
  background-image: none;
  border-color: #e0e0e0;
  box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
}
body:has(.preview:empty) .sidebar {
  opacity: 0.5;
  pointer-events: none;
}