:root {
  --grid-gutter: .5rem;
}

@font-face {
  font-family: 'Audiowide';
  src: url('../fonts/Audiowide-Regular.ttf');
}

body {
  font: 1.5em Audiowide;
  background: linear-gradient(0.5turn, #0d458dff, #1277e4ff, #0d458dff);
  background-attachment: fixed;
  color: #ffffff;

  padding-left: .5em;
  padding-right: .5em;
  padding-top: .5em;
  padding-bottom: 7em;
}

table {
  font: Audiowide;
  font-family: var(--font-family-sans);
}

a {
  color: #00B7FF;
}

a.button {
  color: #ffffff;
}

header {
  margin-bottom: 2em;
}

section {
  margin-bottom: 2em;
}

@media screen and (min-width: 800px) {
  .container {
    margin: auto;
    width: 50%;
  }
}

/**
 * Mostly for td cells because the align attrib is deprecated
 */
.right-align {
  text-align: right;
}

/**
 * Promo/freezer codes are too long
 */
#code-row td {
  word-break: break-all;
}

/**
 * Splash logo
 */
.hero {
  display: flex;
  flex-direction: row;
}

.logo {
  flex: 1;
  flex-direction: row;
}

/**
 * login
 */
@media screen and (min-width: 1200px) {
  #login {
    margin: auto;
    width: 75%;
  }
}

/**
 * Alert boxes
 */
.alert {
  padding: 0.75rem 1.25rem;
  margin: 2rem 0 1rem 0;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

/* Revisit this */
.hide {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 4s, opacity 4s linear;
}

/**
 * Bundlr
 */
#bundlr-balance img {
  margin-top: 2em;
  width: 1.25em;
}

/**
 * Footer navs
 */
footer#bottom-menu nav.nav {
  flex-direction: unset;
}

/**
 * Number inputs
 */
input[type="number"] {
  text-align: right;
}

/**
 * Campaign
 */
#editable-field-control img {
  width: 2em;
  height: auto;
  margin-left: 2em;
}

/**
 * deep-link
 */
.deep-link {
  width: 100%;
  text-align: center;
}

.deep-link form {
  font-size: 1em;
  text-align: center;
}

.deep-link form header {
  margin: 0;
  padding: 0;
  font-size: 1em;
  text-align: center;
}

.deep-link img {
  width: 30%;
  padding: 1em;
  border-radius: 1em;
  box-shadow: .25em .25em rgb(0,0,0,0.2);
  background-color: #5293ff;
  cursor: pointer;
}

/**
 * File input
 *
 * 2021-2-18 https://dev.to/ibn_abubakre/styling-file-inputs-like-a-boss-mhm
 */
#audio-upload-input,
#uploads-input {
  opacity: 0;
  width: 0.1px;
  height: 0.1px;
  position: absolute;
}

#delete-upload-form {
  margin: auto;
  text-align: center;
}

/**
 * Drop zone input (further to above)
 *
 * 2023-1-9 https://codepen.io/dcode-software/pen/xxwpLQo
 */
.drop-zone {
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
  font-size: 1em;
  margin: auto;
  width: 100%;
  padding: 2em;
  margin-bottom: 1em;
  color: #cccccc;
  border: 4px dashed var(--color-lightGrey);
  border-radius: 10px;
}

.drop-zone--over {
  border-style: solid;
}

.drop-zone-prompt {
  display: inline;
}

@media screen and (min-width: 800px) {
  .drop-zone {
    font-size: 2em;
  }
}


/**
 * Photos
 */
.photo {
  position: relative;
}

.photo #upload-source {
  text-align: center;
}

/**
 * Thumbnail layouts
 */
.row {
  flex-flow: row nowrap;
}

@media screen and (max-width: 599px) {
  .col-4 {
    max-width: none;
  }
}

/**
 * Progress/confirmation, screen disable
 */
#flash-freeze-confirmation,
#decryption-progress-wrapper,
#progress-wrapper {
  position: fixed;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1em;
  padding-top: 2em;
  padding-left: .25em;
  z-index: 100;
}

@media screen and (min-width: 800px) {
  #flash-freeze-confirmation,
  #decryption-progress-wrapper,
  #progress-wrapper {
    font-size: 2em;
  }
}

/**
 * Flash freeze confirmation
 */
#flash-freeze-confirmation {
  background: linear-gradient(0.5turn, #0d458dff, #1277e4ff, #0d458dff);
  overflow-y: scroll;
}

#flash-freeze-confirmation form {
  font-family: 'sans-serif';
  margin: auto;
  width: 90%;
}

#flash-freeze-confirmation button {
  font: 1.5em Audiowide;
}

#flash-freeze-confirmation button img {
  width: 24px;
}

#full-terms-and-conditions summary {
  margin-bottom: 2rem;
}

.big-warning {
  font-weight: bold;
}

@media screen and (min-width: 800px) {
  #flash-freeze-confirmation form {
    width: 50%;
    font-size: 1.5rem;
  }
}

/**
 * Download original overlay
 */
.download-original {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  width: 1em;
}

/**
 * Delete photo overlay
 */
.delete-photo {
  position: absolute;
  top: 0.5em;
  left: 0.5em;
  width: 1em;
}

/**
 * Next slide overlay
 */
.next-slide {
  position: absolute;
  bottom: 1rem;
  right: 3rem;
  width: 3rem;
}

/**
 * Previous slide overlay
 */
.prev-slide {
  position: absolute;
  bottom: 1rem;
  right: 6rem;
  width: 3rem;
}

/**
 * Exit slideshow overlay
 */
.exit-slideshow {
  position: absolute;
  top: 1rem;
  left: 3rem;
  width: 3rem;
}

/**
 * Fullscreen overlay
 */
.close-full-screen,
.open-full-screen {
  position: absolute;
  bottom: 1rem;
  left: 3rem;
  width: 3rem;
}

/**
 * 2023-11-24 https://stackoverflow.com/a/24197376/1356582
 *
 * Flex album thumbs
 */
#photo-roll {
  display: flex;
  flex-wrap: wrap;
}
#photo-roll > .photo {
  flex-grow: 1;
  width: 33%;
  padding-left: .1em;
  padding-right: .1em;
}

/**
 * slides
 */
.slide {
  position: fixed;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 1);
  color: white;
  font-size: 1em;
  margin-top: auto;
  margin-bottom: auto;
  z-index: 100;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}


/**
 * QR sharing
 */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/**
 * Freezer form
 */
.freeze-album-form button img {
  width: 1em;
}
