@font-face {
  font-family: InterVariable;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Inter-4.0/InterVariable.woff2") format("woff2");
}

body {
  opacity: 0; /* Set to 1 when the contents are loaded. */
  font-family: InterVariable, sans-serif;
  font-size: 1rem;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}

.container {
  max-width: 40%;
  margin: 50px auto;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0 0 0 0.1);
  border-radius: 8px;
  padding: 2rem;
}

a {
  color: #0000ff;
}

h1 {
  color: #333;
  margin-top: 30px;
  margin-bottom: 40px;
  font-weight: normal;
}

h2 {
  color: #e15e49;
  font-weight: normal;
  font-size: 1.5rem;
  text-align: start;
}

label {
  margin-bottom: 5px;
  text-align: start;
  width: 100%;
  font-size: 1rem;
}

input {
  width: 15%;
  padding: 8px;
  box-sizing: border-box;
  text-align: center;
  border: none;
  border: solid 1.5px #aaa;
  border-radius: 6px;
}

input:focus {
  outline: 1px solid #0000ff;
}

input::placeholder {
  opacity: 0.7;
  color: #5c5c5c;
}

.setting-group:nth-child(n + 2) {
  margin-top: 50px;
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 55px;
}

button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e15e49;
  color: #fff;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition:
    border-radius 0.5s ease,
    background 0.3s ease;
}

button:hover {
  background: #a84636;
  border-radius: 12px;
}

button svg {
  margin-right: 8px;
}

#save {
  margin: 55px auto 15px;
}

.setting-button {
  padding: 5px 10px;
  margin-left: 15px;
  font-size: 0.9rem;
  background: none;
  border: solid 2px #e15e49;
  color: #e15e49;
  white-space: nowrap;
}

.setting-button svg {
  width: 1.1rem;
}

.setting-button:hover {
  background: #e15e49;
  color: white;
  border-radius: 8px;
}

.form {
  width: 75%;
  margin: 0 auto;
  box-sizing: border-box;
}

.back-container {
  font-size: 0.9rem;
  text-align: left;
}

.setting-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.setting-label {
  display: flex;
  flex-direction: column;
  text-align: start;
}

.setting-label p {
  margin: 7px 0 0;
  color: #454545;
}

.setting-detail,
.storage-label {
  font-size: 0.82rem;
}

.storage-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: end;
  margin-bottom: 20px;
}

.storage-label {
  margin-bottom: 5px;
}

.storage-bar {
  width: 100%;
  height: 0.5rem;
  border-radius: 5px;
  background: #e3e3e3;
}

.storage-bar > div {
  width: 5%;
  height: 0.5rem;
  border-radius: 5px;
  background: #e15e49;
}

@media screen and (width < 1000px) {
  html {
    background-color: white;
  }

  .container {
    max-width: 100%;
    margin: 0;
    padding: 0 0 50px;
    box-shadow: none;
  }

  .form {
    width: 90%;
  }

  .back-container {
    padding: 20px;
  }

  .button-label {
    display: none;
  }

  .setting-button svg {
    margin-right: 0;
    width: 1.1rem;
  }
}

/* No storage quota on mobile. */
@media (hover: none) {
  #storage,
  .storage-container {
    display: none;
  }
}
