* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

dialog:modal {
  max-width: 100vw;
  max-height: 100vh;
}

body {
  background-color: #121615;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  height: 100svh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 64px;
}

.title {
  font-size: 20px;
  color: #398569;
  font-weight: 700;
  text-decoration: none;
}

.statusbar {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stopwatch {
  color: #6a7472;
  font-weight: 600;
  font-size: 18px;
}

.status {
  background-color: #2c3434;
  color: #d75f5e;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.status.done {
  color: #2e6752;
}

.textzone {
  background-color: #2c343420;
  flex: 1;
  margin: 0px 64px 32px 64px;
  border-radius: 24px;
  display: flex;
  line-height: 1.6;
}

.referencetext,
.textedit {
  flex: 1;
  padding: 32px;
}

.referencetext > p {
  padding: 24px;
  font-size: 24px;
  color: #c0c7c6;
}

.textedit {
  position: relative;
}

.textedit > textarea {
  width: 100%;
  height: 100%;
  resize: none;
  background-color: transparent;
  outline: none;
  border: 2px solid #238764;
  border-radius: 16px;
  color: #fdffff;
  font-size: 24px;
  font-family: inherit;
  padding: 24px;
  line-height: inherit;
}

.textedit > textarea::placeholder {
  color: #495351;
}

.textedit > textarea:focus {
  border: 2px solid #4ca586;
}

.textedit > p {
  color: #6a7472;
  font-size: 14px;
  position: absolute;
  right: 56px;
  bottom: 48px;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.56);
  border: none;
  outline: none;
  z-index: 9;
}

.popup__box {
  background-color: #45a883;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 128px;
  border-radius: 24px;
  z-index: 10;
}

.popup__emoji {
  font-size: 40px;
  margin-bottom: 16px;
}

.popup__title {
  font-size: 32px;
  margin-bottom: 48px;
  color: #121615;
  font-weight: 600;
  font-size: 32px;
  margin-bottom: 48px;
}

.popup__subtitle {
  color: #2c3434;
  font-size: 18px;
}

.popup__time {
  font-size: 64px;
  color: #121615;
  font-weight: 900;
}
