
/* ==========================================================================
   Summary

   1 = Basic Style
   2 = Copyright
   3 = Options
   4 = Upload
   5 = Terms of service
   6 = Install
   7 = Admin
   8 = Download page

   ========================================================================== */

/* ==========================================================================
   1 = Basic Style
   ========================================================================== */

body {
  color: #fff;
  background: #212121;
  font-family: "Open Sans", Arial, sans-serif;
  margin: 0;
  line-height: 1.5;
}

#content {
  padding: 2em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

h1 a {
  display: block;
  background-size: 100% 100%;
  text-indent: -9999px;
  /*width: 194px; */
  height: 185px;
  margin: 0 auto;
  position: relative;
  /*left: 0.4em;*/
  margin-bottom: 50px;
}
h1 {
  margin: 0;
}
h2 {
  text-align: center;
  color: #fff;
}

fieldset {
  border: 0;
  padding: 1.5em;
  margin: 0 auto;
  border-radius: 0px;
  width: 20em;
  min-width: 23em;
  position: relative;
  background: rgb(0,0,0);
  background: linear-gradient(214deg, rgba(0,0,0,0.6782913849133403) 0%, rgba(247,247,247,1) 0%, rgba(215,215,215,1) 31%, rgba(215,215,215,1) 69%, rgba(226,226,226,1) 100%, rgba(0,0,0,0.7091037098433124) 100%); 
  text-align: center;
  color: black;
}

fieldset::before {
  content: "";
  position: absolute;
  inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0; */
  pointer-events: none;
  /* Create four backgrounds, one for each side */
  background-image:
    /* Top border */
    repeating-linear-gradient(90deg, #fff, #fff 10px, transparent 10px, transparent 20px),
    /* Bottom border */
    repeating-linear-gradient(90deg, #fff, #fff 10px, transparent 10px, transparent 20px),
    /* Left border */
    repeating-linear-gradient(0deg, #fff, #fff 10px, transparent 10px, transparent 20px),
    /* Right border */
    repeating-linear-gradient(0deg, #fff, #fff 10px, transparent 10px, transparent 20px);
  background-size:
    100% 2px,    /* top border: full width, 2px tall */
    100% 2px,    /* bottom border */
    2px 100%,    /* left border: 2px wide, full height */
    2px 100%;    /* right border */
  background-repeat: no-repeat;
  background-position:
    top left,    /* top border */
    bottom left, /* bottom border */
    top left,    /* left border */
    top right;   /* right border */
  animation: dashMove 1s linear infinite;
}

/* Adjust these values to match the dash pattern length (here 20px) */
@keyframes dashMove {
  from {
    background-position:
      0 0,      /* top border */
      0 100%,   /* bottom border */
      0 0,      /* left border */
      100% 0;   /* right border */
  }
  to {
    background-position:
      20px 0,    /* move top border left */
      20px 100%, /* move bottom border left */
      0 20px,    /* move left border up */
      100% 20px; /* move right border up */
  }
}
legend {
  padding: 0.5em 1em;
  background: #212121;
  color: #e5e5e5;
  font-size: 1.2em;
  display: none;
  min-width: 8em;
  text-align: center;
}

table a {
  color: #fff;
}

table a:hover,
table a:focus {
  text-decoration: none;
}

input[type="submit"] {
  background: #555;
  border: 0;
  padding: 0.4em 2.2em;
  font-size: 1.1em;
  color: #FFF;
  cursor: pointer;
  margin: 10px;
}

select,
input[type="text"],
input[type="password"] {
  border: 1;
  padding: 5px 5px;
  font-size: 1em;
}

select { width: 100%; }

input[type="submit"]:hover,
input[type="submit"]:focus {
  border: 0;
  color: #555;
  position: relative;
  background: #FFF;
}

.inner {
  margin-top: 3em;
}

#upload fieldset {
  background: url(upload.png) no-repeat center;
  -webkit-transition: all 0.5s ease;
     -moz-transition: all 0.5s ease;
      -ms-transition: all 0.5s ease;
       -o-transition: all 0.5s ease;
          transition: all 0.5s ease;
          background-color: #0000008f;
}

#upload fieldset:hover {
  border-color: #e5e5e5;
}

#upload > form {
  text-align: center;
}

#upload p {
  margin: 0;
}

#file_select {
  position: relative;
  width: 100%;
  height: 16em;
  cursor: pointer;
  opacity: 0;
}
  #upload.file-selected #file_select {
    opacity: 1;
    height: 2em;
    color: white;
  }
  #upload.file-selected fieldset {
    background-image: none;
  }

  input#admin_password {
    width: 100%;
    padding: 0;
}
/* ==========================================================================
   2 = Copyright
   ========================================================================== */

#copyright {
  text-align: center;
  font-size: 1em;
}

#copyright a {
  text-decoration: none;
  color: white;
  mix-blend-mode: difference;
  text-shadow: 1px 1px 4px black;
}

#copyright a:hover,
#copyright a:focus {
  text-decoration: none;
}

/* ==========================================================================
   3 = Options
   ========================================================================== */

#options {
  color: #fff;
  position: relative;
  z-index: 10;
  width: 100%;
  height: 90%;
}

#options tr { height: 2.7em; }

#option_table tr:first-child {
  width: 100%;
  height: 100%;
}

#option_table td:first-child {
}

#options input[type="submit"] {
  position: relative;
  margin: 1em auto;
}

/* ==========================================================================
   4 = Upload
   ========================================================================== */

#upload_finished,
#uploading,
.message,
.info,
.error {
  text-align: center;
  color: #fff;
  padding: 3em;
  background-color: #0000008f;
}

#upload_finished > p:nth-child(1) {
  color:rgb(36, 238, 194);
  font-weight: bold;
}

#upload_finished div p:nth-child(1) {
  font-weight: bold;
}

#upload_finished a {
  text-decoration: none;
  color: #fff;
}

#uploading a {
  font-weight: bold;
  text-decoration: none;
  color: #fff;
}

#uploaded_percentage {
  font-size: 2em;
  font-weight: bold;
}

#upload_finished a:hover,
#uploading a:hover,
#upload_finished a:focus,
#uploading a:focus {
  text-decoration: none;
}

.message,
.error {
  color: #d55548;
  font-style: italic;
  font-weight: bold;
}

#upload_link_email {
  margin-left: 10px;
  display:none;
}
#upload_link {
  display:none;
}
#upload_link_button {
  background: url(clipboard.png) no-repeat center;
  background-size: 50px;
  width: 60px;
  height: 60px;
  backdrop-filter: none;
  --border-width: 0;
}
#upload_link_button:hover {
  background: url(clipboard.png) no-repeat center;
  background-size: 55px;
  width: 65px;
  height: 65px;
  --border-width: 0;
  box-shadow: none;
}
#upload_image_email {
  padding-left: 20px;
  padding-bottom: 15px;
  background: url(email.png) no-repeat;
}

/* ==========================================================================
   5 = Terms of service
   ========================================================================== */

textarea[readonly="readonly"] {
  border: 0;
  color: #fff;
  font-family: Arial, sans-serif;
  background: none;
  margin: auto;
  display: block;
}

textarea[readonly="readonly"] + p,
textarea[readonly="readonly"] + p + p {
  text-align: center;
  color: #fff;
}

textarea[readonly="readonly"] + p a,
textarea[readonly="readonly"] + p + p a {
  font-weight: bold;
  text-decoration: none;
  color: #fff;
}

textarea[readonly="readonly"] + p a:hover,
textarea[readonly="readonly"] + p + p a:hover,
textarea[readonly="readonly"] + p a:focus,
textarea[readonly="readonly"] + p + p a:focus {
  text-decoration: underline;
}
/* ============ 
CUSTOM MONSIEUR K 
  ============== */
  #logoUP {
  width: 200px;        /* Set a fixed width */
  height: 100px;       /* Set a fixed height */
  background: url('logo-mrk.svg') no-repeat center center;
  background-size: contain; /* Adjust as needed: contain or cover */
  position: absolute;
  right: 35px;
  top: 29px;
}

  /* Full-screen hero video */
  #hero {
    position: relative;
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    top: 0;
    z-index: -1;
  }
    #hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100.5%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
  }
  .hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    z-index: 5;
  }
  .hero-logo {
    position: relative;
    display: inline-block;
    width: 100%;
  }
  .hero-logo img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    cursor: initial;
  }
  /* Create two pseudo-elements that show tinted copies of the logo */
.hero-logo::before,
.hero-logo::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/* Use the SVG as the background image */
	background-image: url("img/logo.svg");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	/* Start hidden */
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	/* Place these layers above the original image */
	z-index: 3;
	/* Use a blend mode so that only edges or non‐pure white areas show tint */
	mix-blend-mode: screen;
}


/* Defs */
@property --angle-1 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -75deg;
}

@property --angle-2 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -45deg;
}

:root {
  --global--size: clamp(2rem, 4vw, 5rem);
  --anim--hover-time: 400ms;
  --anim--hover-ease: cubic-bezier(0.25, 1, 0.5, 1);
}


/* ========== BUTTON ========== */

/* Button Wrap Container */
.button-wrap {
  position: relative;
  z-index: 2;
  border-radius: 0;
  background: transparent;
  pointer-events: none;
  transition: all 600ms var(--anim--hover-ease);
}

/* Button Shadow Container */
.button-shadow {
  --shadow-cuttoff-fix: 2em;
  position: absolute;
  width: calc(100% + var(--shadow-cuttoff-fix));
  height: calc(100% + var(--shadow-cuttoff-fix));
  top: calc(0% - var(--shadow-cuttoff-fix) / 2);
  left: calc(0% - var(--shadow-cuttoff-fix) / 2);
  filter: blur(clamp(2px, 0.125em, 12px));
  -webkit-filter: blur(clamp(2px, 0.125em, 12px));
  -moz-filter: blur(clamp(2px, 0.125em, 12px));
  -ms-filter: blur(clamp(2px, 0.125em, 12px));
  overflow: visible;
  pointer-events: none;
}

/* Shadow */
.button-shadow::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
  width: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
  height: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
  top: calc(var(--shadow-cuttoff-fix) - 0.5em);
  left: calc(var(--shadow-cuttoff-fix) - 0.875em);
  padding: 0.125em;
  box-sizing: border-box;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: all var(--anim--hover-time) var(--anim--hover-ease);
  overflow: visible;
  opacity: 1;
}

/* ========== BUTTON BASE STYLES ========== */

button {
  /* Basic Styling */
  --border-width: clamp(1px, 0.0625em, 4px);
  all: unset;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  pointer-events: auto;
  z-index: 3;
  background: linear-gradient(
    -75deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 0;
  backdrop-filter: blur(clamp(1px, 0.125em, 4px));
  -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
  -moz-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
  -ms-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
  transition: all 600ms var(--anim--hover-ease);
  margin-top: 18px;
}

button:hover {
  transform: scale(0.975);
  backdrop-filter: blur(0.01em);
  -webkit-backdrop-filter: blur(0.01em);
  -moz-backdrop-filter: blur(0.01em);
  -ms-backdrop-filter: blur(0.01em);
  box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
    0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
    0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.5),
    0 0 0 0 rgba(255, 255, 255, 1);
}

/* Button Text */
button span {
  position: relative;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
 /* letter-spacing: -0.05em;*/
  font-weight: 500;
  font-size: 1em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0em 0.25em 0.05em rgba(0, 0, 0, 0.1);
  transition: all var(--anim--hover-time) var(--anim--hover-ease);
  padding-inline: 1.5em;
  padding-block: 0.875em;
}

button:hover span {
  /*text-shadow: 0.025em 0.025em 0.025em rgba(0, 0, 0, 0.12);*/
}

/* Text */
button span::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  width: calc(100% - var(--border-width)); /* Prevent overlapping border */
  height: calc(100% - var(--border-width));
  top: calc(0% + var(--border-width) / 2);
  left: calc(0% + var(--border-width) / 2);
  box-sizing: border-box;
  border-radius: 0;
  overflow: clip;
  background: linear-gradient(
    var(--angle-2),
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 40% 50%,
    rgba(255, 255, 255, 0) 55%
  );
  z-index: 3;
  mix-blend-mode: screen;
  pointer-events: none;
  background-size: 200% 200%;
  background-position: 0% 50%;
  background-repeat: no-repeat;
  transition: background-position calc(var(--anim--hover-time) * 1.25)
      var(--anim--hover-ease),
    --angle-2 calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease);
}

button:hover span::after {
  background-position: 25% 50%;
}

button:active span::after {
  background-position: 50% 15%;
  --angle-2: -15deg;
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
  button span::after,
  button:active span::after {
    --angle-2: -45deg;
  }
}

/* ========== BUTTON OUTLINE ========== */

/* Outline */
button::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 0;
  width: calc(100% + var(--border-width));
  height: calc(100% + var(--border-width));
  top: calc(0% - var(--border-width) / 2);
  left: calc(0% - var(--border-width) / 2);
  padding: var(--border-width);
  box-sizing: border-box;
  background: conic-gradient(
      from var(--angle-1) at 50% 50%,
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0) 5% 40%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0) 60% 95%,
      rgba(0, 0, 0, 0.5)
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: all var(--anim--hover-time) var(--anim--hover-ease),
    --angle-1 500ms ease;
  box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(255, 255, 255, 0.5);
}

button:hover::after {
  --angle-1: -125deg;
}

button:active::after {
  --angle-1: -75deg;
}

@media (hover: none) and (pointer: coarse) {
  button::after,
  button:hover::after,
  button:active::after {
    --angle-1: -75deg;
  }
}

/* Shadow Hover */
.button-wrap:has(button:hover) .button-shadow {
  filter: blur(clamp(2px, 0.0625em, 6px));
  -webkit-filter: blur(clamp(2px, 0.0625em, 6px));
  -moz-filter: blur(clamp(2px, 0.0625em, 6px));
  -ms-filter: blur(clamp(2px, 0.0625em, 6px));
  transition: filter var(--anim--hover-time) var(--anim--hover-ease);
}

.button-wrap:has(button:hover) .button-shadow::after {
  top: calc(var(--shadow-cuttoff-fix) - 0.875em);
  opacity: 1;
}

/* Rotation */
.button-wrap:has(button:active) {
  transform: rotate3d(1, 0, 0, 25deg);
}

.button-wrap:has(button:active) button {
  box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
    0 0.125em 0.125em -0.125em rgba(0, 0, 0, 0.2),
    0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2),
    0 0.225em 0.05em 0 rgba(0, 0, 0, 0.05),
    0 0.25em 0 0 rgba(255, 255, 255, 0.75),
    inset 0 0.25em 0.05em 0 rgba(0, 0, 0, 0.15);
}

.button-wrap:has(button:active) .button-shadow {
  filter: blur(clamp(2px, 0.125em, 12px));
  -webkit-filter: blur(clamp(2px, 0.125em, 12px));
  -moz-filter: blur(clamp(2px, 0.125em, 12px));
  -ms-filter: blur(clamp(2px, 0.125em, 12px));
}

.button-wrap:has(button:active) .button-shadow::after {
  top: calc(var(--shadow-cuttoff-fix) - 0.5em);
  opacity: 0.75;
}

.button-wrap:has(button:active) span {
  text-shadow: 0.025em 0.25em 0.05em rgba(0, 0, 0, 0.12);
}


/* ==========================================================================
   6 = Install
   ========================================================================== */

#install fieldset,
#install + fieldset {
  width: auto;
  max-width: 50em;
  border: 2px dashed #bcaaa4;
}

#install table,
#install + fieldset table {
  width: 100%;
  border-collapse: collapse;
}

#install td,
#install + fieldset td {
  padding: 0.5em 1em;
  border-bottom: 0;
}

#install td:empty {
  width: 13.1em;
}

#install table form:nth-child(odd),
#install + fieldset tr:nth-child(odd) {
  background: #b1b1b1;
}

#install fieldset > form {
  margin-top: 2em;
  text-align: center;
}

#install form {
  display: table;
  width: 100%;
}

#install td:last-child { text-align: left; }

#install .info { width: 19em; }

#install input[type="submit"] {
  min-width: 10.5em;
}

#install + fieldset table {
  font-size: 0.9em;
}

#install + fieldset td:first-child input[type="submit"] {
  background: none;
  padding: 0;
  color: #000;
  font-weight: bold;
  border-bottom: 0;
}

#install + fieldset td:first-child input[type="submit"]:hover,
#install + fieldset td:first-child input[type="submit"]:focus {
  text-decoration: underline;
}

/* ==========================================================================
   7 = Admin
   ========================================================================== */

#admin fieldset,
#admin + fieldset {
  width: auto;
  /*max-width: 60em;*/
  background: #cececef7;
}
.listing {
  font-size: 12px;
  max-height: 33em;
  overflow: auto;
}
.listing table a {
  color: black;
  text-decoration: none;
}
.listing fieldset::before {
  background: none;
}
.listing td {
  padding-bottom: 10px;
}
#admin fieldset::before {
  background: none;
}
#admin table,
#admin + fieldset table {
  width: 100%;
  border-collapse: collapse;
  border-bottom: none;
}

#admin td,
#admin + fieldset td {
  /*padding: 0.5em 1em;*/
  border-bottom: 0;
}

#admin td:empty {
  width: 13.1em;
}

#admin table form:nth-child(odd),
#admin + fieldset tr:nth-child(odd) {
  /*background: #b1b1b1;*/
}

#admin fieldset > form {
  margin-top: 1em;
  text-align: center;
}

#admin form {
  display: table;
  width: 100%;
  text-align: center;
}

#admin td:last-child { text-align: center; }

#admin .info { width: 19em; }

#admin input[type="submit"] {
  min-width: 10.5em;
}
#admin button {
  --border-width: 0;
  padding-right: 10px;
}
#admin + fieldset table {
  font-size: 0.9em;
}

#admin + fieldset td:first-child input[type="submit"] {
  background: none;
  padding: 0;
  color: #000;
  font-weight: bold;
  border-bottom: 0;
}

#admin + fieldset td:first-child input[type="submit"]:hover,
#admin + fieldset td:first-child input[type="submit"]:focus {
  text-decoration: underline;
}

/* ==========================================================================
   8 = Download page
   ========================================================================== */

#self_destruct {
  font-weight: bold;
  color: red;
  background-image: url('pixel_bomb.png');
  background-size: 40px 40px;
  background-repeat: no-repeat;
  padding-left: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
}
