.phone-mock {
  position: relative;
  border-color: black;
  border-radius: var(--border-radius);
  border-style: solid;
  border-width: var(--border-width);

  max-width: 250px;

  --color-mock: #222;
  --speaker-width: 100px;
  --speaker-height: 10px;
  --border-width: 50px 15px 40px 15px;
  --border-radius: 30px;
  --speaker-top: -30px;
}

.phone-mock .camera {
  position: absolute;
  top: var(--speaker-top);
  width: var(--speaker-height);
  height: var(--speaker-height);
  border-radius: 50%;
  background: var(--color-mock);
}

.phone-mock .left-camera {
  left: calc(2 * var(--speaker-height));
}

.phone-mock .right-camera {
  left: calc(4 * var(--speaker-height));
}

.phone-mock .speaker {
  position: absolute;
  left: 50%;
  margin-left: calc(-0.5 * var(--speaker-width));
  width: var(--speaker-width);
  height: var(--speaker-height);
  border-radius: 10px;
  background: var(--color-mock);
}

.phone-mock .top-speaker {
  top: var(--speaker-top);
}

.phone-mock .bottom-speaker {
  bottom: var(--speaker-top);
}

.phone-mock .screen {
  margin-bottom: -5px;
}

#landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#landing h1 {
  font-size: 15vw;
  margin: 1rem 0 0;
}

#landing img,
#landing iframe {
  max-width: 100%;
}

#landing .mdc-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
}

#landing .user-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem;
}

#landing .cta {
  justify-content: center;
  min-height: 25vh;
}

#landing li {
  padding: 0.25rem 1rem;
}

#landing h1,
#landing h2 {
  text-align: center;
}

#landing h2 {
  font-size: 8vw;
}

#landing hr {
  width: 100%;
}

#landing section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  width: calc(100vw - 2rem);
  max-width: var(--dimensions-max-width);
}

#landing p,
#landing ul,
#landing .user-actions {
  max-width: 500px;
}

#landing .user-actions a {
  width: 100%;
}

#landing .mdc-list {
  color: var(--mdc-theme-primary-text);
  width: 100%;
}

#landing .mdc-list-item__graphic {
  color: var(--mdc-theme-primary-text);
  font-style: initial;
  font-size: 1.5rem;
}

#landing .mdc-list a {
  text-decoration: none;
}

#landing .phone-mock {
  margin: 2rem 0;
}

#login .mdc-button.google {
  background-color: var(--color-google) !important;
  color: var(--mdc-theme-secondary-text) !important;
}
#login .mdc-button.facebook {
  background-color: var(--color-facebook) !important;
  color: var(--mdc-theme-secondary-text) !important;
}
#advertisement {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1;

  --dismiss-height: 4rem;
  --img-margin: 1rem;
}

#advertisement .dismiss {
  /* position: absolute;
  top: 0;
  right: 0;
  left: 0; */

  position: relative;
  height: var(--dismiss-height);
}

#advertisement .dismiss .mdc-icon-button {
  position: absolute;
  top: calc(50% - 25px);
  right: 1rem;
}

#advertisement .body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  flex: 1;
  max-height: calc(100% - var(--dismiss-height));
}

#advertisement .body,
#advertisement .body > * {
  width: 100%;
}

#advertisement .body .banner {
  text-align: center;
}

#advertisement .body .text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
}
#advertisement .body .cta {
  display: block;
  padding: 1rem;
  text-align: center;
  background: var(--color-cta);
}

#advertisement .body img {
  margin: var(--img-margin);
}

#advertisement .body p {
  max-width: 100%;
  padding: 0rem 2rem;
  margin: 0 0 1rem;
  text-align: center;
}

#advertisement .banner {
  text-decoration: none;
  font-family: var(--font-bold);
}

#advertisement .advertising-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

@media (orientation: portrait) {
  #advertisement .body img,
  #advertisement .body .cta {
    max-width: calc(100% - 2 * var(--img-margin));
  }

  #advertisement .body p {
    font-size: 5vw;
  }

  #advertisement .advertising-banner span {
    font-size: 15vw;
  }
}

@media (orientation: landscape) {
  /* #advertisement .body .banner {
    max-height: 20vh;
  } */

  #advertisement .body img {
    max-width: calc(100% - 2 * var(--img-margin));
    height: calc(100% - 2 * var(--img-margin));
  }

  #advertisement .body p {
    font-size: 5vh;
  }

  #advertisement .advertising-banner span {
    font-size: 15vh;
  }
}

#reddit-ads {
  --background-inset: 32px;
}

#reddit-ads h2 {
  font-size: 5rem;
  text-align: center;
}

#reddit-ads .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

#reddit-ads .grid > * {
  margin: 2rem;
}

#reddit-ads img {
  max-width: 100%;
}

#reddit-ads .desktop .phone-mock {
  max-width: 260px;
}

#reddit-ads .mobile .phone-mock {
  max-width: 110px;
}

#reddit-ads .ad {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--mdc-theme-primary);
  padding: 1rem;
}

#reddit-ads .desktop {
  width: calc(1200px - var(--background-inset));
  height: calc(628px - var(--background-inset));
}

#reddit-ads .mobile {
  width: calc(400px - var(--background-inset));
  height: calc(300px - var(--background-inset));
}

#reddit-ads .mobile .phone-mock {
  --speaker-width: 40px;
  --speaker-height: 5px;
  --border-width: 20px 10px 15px 10px;
  --border-radius: 15px;
  --speaker-top: -10px;
}

#reddit-ads .text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 2rem;
  text-align: center;
}

#reddit-ads .desktop .text {
  font-size: 4rem;
}

#reddit-ads .mobile .text {
  font-size: 2rem;
}

#reddit-ads .mobile p {
  font-size: 1.25rem;
}

#reddit-ads h3 {
  margin: 0 0 1rem;
}

#reddit-ads p {
  margin: 0.75rem 0
}


#screenshots h2 {
  font-size: 5rem;
  text-align: center;
}

#screenshots .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

#screenshots .grid > * {
  margin: 2rem;
}

#screenshots img {
  max-width: 100%;
}

#settings form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: calc(100vw - 4rem);
  padding: 2rem;
  max-width: 500px;
}

#settings .switch {
  padding: 1rem;
}

#settings .radio-button {
  margin-left: -1rem;
}

#settings .mdc-text-field {
  width: 100%;
}

#settings input {
  color: var(--color-gray-light) !important;
}

#settings .mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label,
#settings .mdc-text-field-helper-text {
  color: var(--color-gray-light);
}

#settings .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,
#settings .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,
#settings .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing {
  border-color: var(--color-gray-light);
}

#settings .mdc-text-field--focused .mdc-floating-label {
  color: var(--mdc-theme-secondary) !important;
}

#settings hr {
  height: 2rem;
  border: none;
}

#settings .mdc-form-field {
  width: 100%;
}

#settings .mdc-form-field label {
  color: var(--color-gray-light);
  margin-left: 1rem;
}

#support ul {
  list-style-type: none;
  margin-top: 4rem;
}

#support li {
  margin: 2rem 0;
}

#support a {
  display: block;
  text-decoration: none;
}

#support a div {
  display: flex;
  justify-content: center;
  align-items: center;
}

#support img {
  width: 100%;
}

#support span {
  font-size: 5vw;
}

.chromecast-base .cycles-list .period-list .period-list-item {
  /* padding-right: 1rem; */
}

@media (orientation: landscape) {
  #timer-details-container,
  #timer-bars,
  #timer-list {
    max-width: 100vw !important;
  }
}

.image-upload-input {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.image-upload-input[is-loading='true'] {
  pointer-events: none;
}

.image-upload-input .mdc-linear-progress {
  position: absolute;
  top: 0;
  z-index: 1;
}

.image-upload-input[is-loading='true']:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.75);
  z-index: 1;
}

@media (max-width: 450px) {
  .image-upload-input {
    flex-direction: column;
  }

  .image-upload-input .mdc-button {
    margin-bottom: 1rem;
  }
}

.image-upload-input input {
  display: none;
}

.image-upload-input .image-upload-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 10rem;
  width: 10rem;
  border: 1px dashed var(--color-form-outline);
  padding: 0.5rem;
}

.image-upload-input img.constrained-size {
  max-width: 100%;
  max-height: 100%;
}

.image-upload-input img.full-size {
  position: absolute;
  display: none;
}

.image-upload-input canvas {
  display: none;
}

.image-upload-input .mdc-icon-button {
  position: absolute;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.image-upload-input .rotate-button {
  left: 1rem;
}

.image-upload-input .delete-button {
  right: 1rem;
}

/* Input Styles */
#timer-metadata-inputs .row {
  padding: 0.5rem 0;
}

#timer-metadata-inputs .mdc-text-field--textarea {
  padding-top: 1rem;
}

#timer-metadata-inputs .mdc-text-field--textarea .mdc-floating-label {
  top: 2rem;
  left: 1rem;
}

#timer-metadata-inputs .mdc-text-field {
  background: var(--color-form-input-background);
  width: 100%;
}

#timer-metadata-inputs .mdc-switch {
  margin-left: 1rem;
}

#timer-metadata-inputs .mdc-switch + label {
  color: var(--mdc-theme-primary-text);
}

#period-sheet {
  position: fixed;
  background: var(--color-sheet-background);
  right: 0;
  left: 0;
  top: 100vh;
  height: 100vh;
  z-index: 1;

  transition: top 600ms;
}

#period-sheet[is-showing='true'] {
  top: 0;
}

#period-sheet[type='work'] .mdc-toolbar__row {
  background: var(--color-form-background-work);
}

#period-sheet[type='rest'] .mdc-toolbar__row {
  background: var(--color-dark-background);
}

#period-sheet .mdc-toolbar__row {
  justify-content: space-between;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

#period-sheet .form-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: auto;
}

#period-sheet[type='rest'] .form-wrapper {
  margin-top: -97px;
}

#period-sheet .form-wrapper form {
  max-width: 500px;
}

#period-sheet .form-wrapper form > div:not(:last-child) {
  margin-bottom: 1rem;
}

#period-sheet .row {
  display: flex;
  align-items: center;
}

#period-sheet .time {
  /* color: var(--color-sheet-color); */
  background: var(--color-gray-dark);
  margin-left: 1rem;
  padding: 16px;
  border-radius: var(--border-radius);
}

#period-sheet .image-upload-preview {
  border-color: var(--color-sheet-color);
  color: var(--color-sheet-color);
}

#period-sheet .mdc-button--raised {
  background-color: var(--color-sheet-color);
  color: var(--color-dark-background-text);
}

#period-sheet hr {
  border-color: var(--color-sheet-color);
}

#period-sheet .type-selection .mdc-button:not([disabled]) {
  opacity: 0.25;
}

#period-sheet .mdc-button.work {
  background: var(--color-form-background-work);
  color: var(--color-dark-background-text);
}

#period-sheet .mdc-button.rest {
  background: var(--color-dark-background);
  color: var(--color-dark-background-text);
}

#period-sheet .type-selection {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

#period-sheet .type-selection .mdc-button {
  width: calc(50% - 2rem);
}

/* Input Styles */
#period-sheet .row {
  padding: 0.5rem 0;
}

#period-sheet .mdc-text-field--textarea {
  padding-top: 1rem;
}

#period-sheet .mdc-text-field--textarea .mdc-floating-label {
  top: 2rem;
  left: 1rem;
}

#period-sheet .mdc-text-field {
  background: var(--color-form-input-background);
  width: 100%;
}

.list-item-wrapper {
  position: relative;
  max-width: calc(100% - 61px);
  width: 100%;
}

.period-wrapper .period-controls {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  display: flex;
  justify-content: space-around;
  align-items: center;

  background: rgba(255, 255, 255, 0.75);
  cursor: default;
  opacity: 1;
}

.period-wrapper[is-only='true'][is-active='false']:not(:focus-within) .title:before {
  content: 'Click To Edit';
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.period-wrapper[is-active='false'] .period-controls:not(:focus-within) {
  opacity: 0;
  z-index: -1;
}

.period-wrapper .mdc-icon-button[is-hidden='true'] {
  visibility: hidden;
}

.period-wrapper[is-first='true'] .mdc-list-item {
  border-top-left-radius: var(--border-radius);
}

.period-wrapper[is-last='true'] .mdc-list-item {
  border-bottom-left-radius: var(--border-radius);
}

.period-wrapper[is-first='true'][is-last='true'] .mdc-list-item {
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
}

.period-wrapper .mdc-list-item[type='prepare'] {
  background: var(--color-form-background-prepare);
}

.period-wrapper .mdc-list-item[type='prepare'] .mdc-icon-button {
  visibility: hidden;
}

.period-wrapper .mdc-list-item[type='rest'] {
  background: var(--color-form-background-rest);
}

.period-wrapper .mdc-list-item[type='work'] {
  background: var(--color-form-background-work);
}

.period-wrapper .title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.period-wrapper .buttons {
  padding-left: 0.25rem;
  border: var(--button-border-width) solid var(--button-border-color);
  border-width: var(--button-border-width) var(--button-border-width) 0 0;
}

.period-wrapper[is-first='true'] .buttons {
  border-top-right-radius: var(--border-radius);
}

.period-wrapper[is-last='true'] .buttons {
  border-bottom-right-radius: var(--border-radius);
}

.period-wrapper[is-last='true'] .buttons {
  border-bottom-width: var(--button-border-width);
}

.period-wrapper img {
  max-width: 75px;
  max-height: 100%;
  margin: 0 1rem;
}

.period-wrapper .buttons .mdc-checkbox {
  margin: 0 0.5rem;
}

#check-all-wrapper .mdc-checkbox {
  margin: 0 9px;
}

#check-all-wrapper {
  display: flex !important;
  justify-content: flex-end !important;
}

#check-all-wrapper[can-multi-select='false'] {
  visibility: hidden;
}

.period-wrapper .add-button-wrapper {
  position: relative;
}

.period-wrapper .add-button-wrapper aside {
  position: absolute;
  top: 6px;
  left: calc(-200% - 0.5rem);
  background: var(--mdc-theme-secondary);
  border-radius: var(--border-radius);
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 12px;
  margin-left: -100%;
  white-space: nowrap;
}

.period-wrapper .add-button-wrapper aside {
  animation: shake 5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes shake {
  5%,
  35%,
  65%,
  95% {
    transform: translate3d(-1px, 0, 0);
  }

  10%,
  30%,
  40%,
  60%,
  70%,
  90% {
    transform: translate3d(2px, 0, 0);
  }

  15%,
  25%,
  45%,
  55%,
  75%,
  85% {
    transform: translate3d(-4px, 0, 0);
  }

  20%,
  50%,
  80% {
    transform: translate3d(4px, 0, 0);
  }
}

#multi-select-controls {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;

  display: flex;
  justify-content: space-around;

  background: var(--color-sheet-background);
  color: var(--color-sheet-color);
  padding: 0.5rem;
}

.confirm-button[is-confirming='true']:not([disabled]) {
  background-color: var(--mdc-theme-secondary) !important;
  color: var(--mdc-theme-secondary-text) !important;
}

.search-bar {
  background: var(--color-light-background);
  margin: 1rem;
  position: relative;
}

.search-bar .mdc-text-field {
  width: 100%;
}

.search-bar input {
  color: var(--color-light-background-text) !important;
}

.search-bar .mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label,
.search-bar .mdc-text-field-helper-text {
  color: var(--color-light-background-text);
}

.search-bar .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,
.search-bar .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,
.search-bar
  .mdc-text-field--outlined:not(.mdc-text-field--disabled)
  .mdc-notched-outline__trailing {
  border-color: var(--color-light-background-text) !important;
}

.search-bar .mdc-icon-button {
  position: absolute;
  top: 4px;
  right: 4px;
}

.search-bar .mdc-text-field--outlined .mdc-text-field__input {
  padding-right: 4rem;
}

.list {
  background: var(--color-light-background);
  width: 100%;
  overflow: hidden;
}

.list,
.list .mdc-list-item__meta {
  color: var(--color-light-background-text);
}

.list .mdc-list-item__secondary-text {
  text-align: left;
}

.timers-list {
  width: 100%;
  max-width: var(--dimensions-max-width);
}

.timers-list .list-item {
  display: flex;
  padding: 0.5rem;
  width: 100%;
}

.timers-list .list-item .time {
  text-align: center;
  width: 75px;
}

.timers-list .list-item .title {
  flex: 1;
  text-align: left;
  padding-left: 1rem;
  user-select: none !important;
}

.timers-list a {
  text-decoration: none;
}

.timers-list .interstitial {
  display: flex;
  align-items: center;
  color: var(--mdc-theme-primary);
  height: 1rem;
  padding: 1rem;
}

.timers-list .interstitial span {
  flex: 1;
  margin-top: -5px;
  text-align: center;
  margin-left: -24px;
}

.timers-list[has-local='true'][has-search='true'] .interstitial {
  border-top: 1rem solid var(--color-gray-dark);
}

#browse {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page h1 {
  font-size: 10vw;
  margin: 1rem 0 0;
}

.page h1,
.page h2 {
  text-align: center;
}

.page h2 {
  font-size: 5vw;
  margin: 1rem;
}

.page hr {
  width: 100%;
}

.page section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  width: 101vw;
  max-width: var(--dimensions-max-width);
}

.page p {
  width: calc(100vw - 2rem);
  max-width: var(--dimensions-max-width);
}

#dashboard {
  display: flex;
  justify-content: center;
  width: 100%;
}

#dashboard .mdc-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
}

#timer-edit {
  position: relative;
  overflow: hidden;
  user-select: none;
}

#timer-edit[is-owned='false'] form {
  opacity: 0.1;
  pointer-events: none;
}

#timer-edit[is-owned='false']:before {
  position: absolute;
  top: 33vh;
  left: 0;
  right: 0;

  content: 'Copying...';
  display: block;
  text-align: center;
  background: var(--mdc-theme-primary-dark);
  padding: 2rem;
  z-index: 1;
}

#timer-edit form {
  max-width: 500px;
  width: calc(100vw - 2rem);
}

#timer-edit .flex {
  flex: 1;
}

#timer-edit hr {
  margin: 2rem 0;
}

#timer-edit .buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: center;
}

#timer-edit .error {
  visibility: hidden;
  color: var(--color-form-error);
  background: var(--color-form-input-background);
  padding: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

#timer-edit .error[error] {
  visibility: visible;
}

#timer-edit .period-wrapper {
  display: flex;
}

#timer-edit .mdc-list-item {
  display: flex;
  position: relative;
  color: var(--color-form-list-color);
  padding: 1rem;
}

#timer-edit .time {
  margin-right: 1rem;
}
#timer-edit .buttons .mdc-icon-button {
  margin: 0 0.25rem;
}

#timer-edit .row.buttons {
  display: flex;
  flex-direction: row-reverse;
  margin-bottom: 5rem;
}

#timer-edit .row.buttons .mdc-button {
  min-width: 7rem;
  margin-bottom: 1rem;
}

#chromecast-button {
  width: 1.5rem;
  margin: 4px 1rem 0;
}

.canvas-wrapper {
  position: relative;
}

.canvas-overlay {
  display: flex;
  justify-content: center;
  align-items: center;

  position: absolute;
  text-transform: uppercase;
}

.canvas-overlay > div {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (orientation: portrait) {
  .canvas-overlay {
    font-size: 4vw;
  }
}

@media (orientation: landscape) {
  .canvas-overlay {
    font-size: 5vh;
  }
}

#timer-bars {
  max-width: 100vw;
  overflow: hidden;
}

#timer-bars > div {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50%;
}

@media (orientation: portrait) {
  #timer-bars {
    height: 20vh;
  }
}

@media (orientation: landscape) {
  #timer-bars {
    height: 20vh;
    max-width: calc(100vw - 56px);
  }
}

.cycles-list {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow-y: auto;
}

.cycles-list .cycle-list-item {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.cycles-list .cycle-list-item:not(:last-child) {
  margin-bottom: 4px;
}

.cycles-list .cycle-list-item .cycle-index {
  text-align: center;
  width: 10vw;
  max-width: 5rem;
  min-width: 2rem;
  padding: 0.5rem;
  color: var(--mdc-theme-primary-dark);
  font-size: 2rem;
  font-weight: bold;
}

.cycles-list .period-list {
  flex: 1;
  padding: 0;

  min-height: 4rem;
  display: block;
  display: flex;
  flex-direction: column;
}

.cycles-list .period-list .period-list-item {
  flex: 1;
  display: flex;
  justify-content: center;

  position: relative;

  align-items: center;
  padding: 0.5rem;
  font-size: 1rem;
}

.cycles-list .period-list .period-list-item .period-name {
  flex: 1;
  text-align: left;
  padding-left: 1rem;
}

.cycles-list .period-list .period-list-item .time {
  text-align: right;
  padding-right: 1rem;
}

.cycles-list .period-list .period-list-item img {
  position: absolute;
  left: -23.5px;
  /* max-height: 48px; */
  max-width: 48px !important;
  padding: 0 !important;
  clip-path: circle(14px at center);
  color: transparent;
}

#timer-actions {
  position: relative;
  padding: 2rem;
  width: 100%;
}

#timer-actions a {
  text-decoration: none;
}

#timer-actions .share-button {
  position: absolute;
  right: 19%;
}

#timer-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100vw;
  max-width: 30rem;
  padding-bottom: 5rem;

  --background-color: var(--color-dark-background);
  --mdc-theme-secondary: rgba(0, 0, 0, 0.9);
}

#timer-details h1 {
  font-size: 10vw;
  line-height: 5rem;
  margin: 0 0 2rem;
  white-space: nowrap;
}

@media (min-width: 720px) {
  #timer-details h1 {
    font-size: 5rem;
  }
}

#timer-details .timer-details-list {
  display: flex;
  justify-content: space-around;
  width: calc(100% - 2rem);
  padding: 1rem;
  margin: 0;
  background: var(--background-color);
}

#timer-details .timer-details-list li {
  list-style: none;
}

#timer-details .timer-details-list span:not(:last-of-type) {
  margin-right: 0.5rem;
}

#timer-details p {
  padding: 1rem;
  width: calc(100% - 2rem);
  margin: 0;
  background: var(--background-color);
}

#timer-details img {
  padding-top: 2rem;
  max-width: 100%;
}

#timer-details .mdc-fab.edit {
  position: relative;
  top: 28px;
  right: -30%;
  z-index: 1;
}

#timer-details .markdown {
  width: 100%;
}

#timer-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 0 0;
}

#timer-list .seconds-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  text-align: center;
  padding: 1rem 0;
  max-height: calc(100% - 6rem);
}

#timer-list .seconds-row img {
  max-width: 100%;
  max-height: 35vh;
}

#timer-list .seconds-row p {
  height: 18vh;
  overflow: hidden;
  overflow-y: auto;
  font-size: 1rem !important;
  padding: 0 1rem;
  margin: 0;
}

#timer-list .big-time {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

#timer-list .small-time:before {
  content: ' / ';
}

#timer-list aside {
  display: inline;
}

#timer-list #time-details {
  display: flex;
  justify-content: space-around;
  font-size: 10vw;
}

#timer-list .big-name {
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 0 1rem;
}

#timer-list #cycles-list {
  overflow: hidden;
}

@media (orientation: portrait) {
  #timer-list .big-time {
    font-size: 25vw;
  }

  #timer-list .big-name {
    font-size: 7vw;
  }

  #timer-list .small-time,
  #timer-list aside {
    font-size: 5vw;
  }

  #timer-list .seconds-row p {
    font-size: 5vw;
  }
}

@media (orientation: landscape) {
  #timer-list {
    max-width: calc(100vw - 56px);
  }

  #timer-list .big-time {
    font-size: 22vh;
  }

  #timer-list .big-name {
    font-size: 5vw;
    width: calc(100% - 4rem);
  }

  #timer-list .small-time,
  #timer-list aside {
    font-size: 5vh;
  }

  #timer-list .seconds-row p {
    font-size: 5vh;
  }
}

#timer-controls {
  display: flex;

  padding: 0.5rem 1rem 0rem;
  background: var(--color-gray-light);
}

#timer-controls [disabled] {
  visibility: hidden;
}

@media (orientation: portrait) {
  #timer-controls {
    justify-content: space-around;
    align-items: center;
  }
}

@media (orientation: landscape) {
  #timer-controls {
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
  }
}

#flash {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  animation: pulse 1s infinite;

  background: white;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

#timer-play {
  width: 100vw;
  user-select: none;
}

#timer-play #timer-details-container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

#timer-play .cycles-list .cycle-list-item:not(:last-child) {
  margin-bottom: 4px;
}

#empty-timer-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  text-align: center;
}

@media (orientation: portrait) {
  #timer-play {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 5rem);
  }
}

@media (orientation: landscape) {
  #timer-play {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;

    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: var(--color-gray-dark);
  }

  #timer-play #timer-details-container {
    max-width: calc(100vw - 82px);
    overflow: hidden;
  }
}

.shared #timer-play {
  position: fixed;
  top: 5rem;
  right: 0;
  bottom: 0;
  left: 0;
  /* height: 100vh; */
}


/*# sourceMappingURL=styles.1b97b57a.chunk.css.map*/