@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --tb-grey: 190, 190, 190; /* #BEBEBE */
  --tb-dim-grey: 105, 105, 105; /* #696969 */
}

html {
  font-size: 62.5%;
}

html,
body {
  min-width: 320px;
}

* {
  font-family: "Roboto", serif;
  box-sizing: border-box;
  user-select: none;
  line-height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.2rem;
  height: 100dvh;
  overflow: hidden;
  background-color: rgba(var(--tb-grey), 1);
}

section,
footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding: 0 2.4rem;
  max-width: 141.4rem;
  width: 100%;
}

section:first-of-type {
  margin-top: 12.8rem;
}

footer {
  padding: 1.2rem 2.4rem 3.2rem;
  margin-top: auto;
}

h1 {
  font-size: 3.2rem;
}

h2 {
  font-size: 2.4rem;
}

h3,
p,
a {
  font-size: 1.6rem;
}

footer > a {
  font-size: 1.4rem;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.5);
}

footer > a:hover {
  text-decoration: underline;
}

.tb-back-button {
  position: absolute;
  top: 2.4rem;
  left: 2.4rem;
  text-decoration: none;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.5);
}

button,
.tb-button {
  font-size: 1.6rem;
  padding: 1.2rem 2.4rem;
  border-radius: 0.8rem;
  border: none;
  touch-action: manipulation;
  background-color: rgba(var(--tb-dim-grey), 1);
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.25);
  text-decoration: none;
  text-align: center;
  color: white;
  cursor: pointer;
  transition: background-color 0.1s ease-in-out;
}

button:hover,
.tb-button:hover {
  background-color: rgba(var(--tb-dim-grey), 0.8);
}

.button-container {
  display: flex;
  gap: 0.8rem;
}

.notice-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  top: 19.2rem;
  padding: 2.4rem;
  background-color: rgba(var(--tb-dim-grey), 0.2);
  border-radius: 1.6rem;
  margin: 2.4rem;
}

.tb-title {
  text-align: center;
}

.tb-score {
  position: absolute;
  top: 2.4rem;
  right: 2.4rem;
  text-decoration: none;
  font-weight: bold;
  color: red;
}

.tb-button-label {
  position: absolute;
  bottom: 4.8rem;
  font-size: 1.2rem;
  text-align: center;
  width: 200%;
  white-space: nowrap;
  left: 50%;
  transform: translateX(-50%);
}

input[type="file"] {
  display: none;
}

textarea {
  resize: none;
  overflow: hidden;
  white-space: nowrap;
  width: 64rem;
  height: 5.6rem;
  text-align: center;
  padding: 1.6rem;
  font-size: 2.4rem;
  font-weight: bold;
  border-radius: 0.8rem;
  border: none;
  outline: none;
}

label.drag-and-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 2.4rem;
  border-radius: 1.6rem;
  font-size: 1.6rem;
  border: 2px dashed rgba(var(--tb-dim-grey), 0.2);
  cursor: pointer;
}

@media (max-width: 768px) {
  html {
    font-size: 50%;
  }

  section:first-of-type {
    margin-top: 6.4rem;
  }

  footer {
    padding-bottom: 3.2rem;
  }
}
