
/* ==========================================================================
   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 {
  background: #efebe9;
  /* font-family: Arial, sans-serif; */
  font-family: "Suisse Int'l", Roboto, Helvetica, Arial, sans-serif, sans-serif !important;
  margin: 0;
  line-height: 1.5;
}

#content {
  padding: 2em;
}

h1 a {
  display: block;
  /* background: url(logo-jirafeau.svg) no-repeat; */
  background: url(logo.png) no-repeat;
  background-size: 100% 100%;
  text-indent: -9999px;
  width: 160px;
  height: 160px;
  margin: 1em auto;
  position: relative;
  left: 0.4em;
}

h2 {
  text-align: center;
  color: #484b79ff;
}

fieldset {
  border: 0;
  padding: 1.5em;
  margin: 0 auto;
  border-radius: 8px;
  /* width: 10em; */
  border: 4px dashed #455264ff;
  /* height: 50vh; */
  /* min-height: 15em; */
  min-height: 50vh;
  min-width: 15em;
  position: relative;
  background: #FFF;
}

legend {
  padding: 2em 1em;
  /* background: #efebe9; */
  color: #FFF;
  font-size: .9em;
  display: block;
  min-width: 8em;
  text-align: center;
  border-radius: 4px;
}

table a {
  color: #000;
}

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

input[type="submit"] {
  background: #455264ff;
  border: 0;
  padding: 0.4em 2.2em;
  font-size: 1.1em;
  color: #FFF;
  border-bottom: 5px solid #085B69;
  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;
  position: relative;
  background: #085B69;
  border-bottom: 5px solid #455264ff;
  margin-bottom: 10px;
}

.inner {
  margin-top: 3em;
}

#upload fieldset {
  background: url(upload.svg) 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;
}

#upload fieldset:hover {
  border-color: #231e36ff;
}

#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;
  }
  #upload.file-selected fieldset {
    background-image: none;
    background: rgba(255, 255, 255, 0.75);
  }


/* ==========================================================================
   2 = Copyright
   ========================================================================== */

#copyright {
  text-align: center;
  /* font-size: 0.8em; */
  font-size: .9em;
  color: #c1cbdfff;
  /* margin: 8em auto; */
  display: block;
  position: fixed;
  width: 100%;
  bottom: 10px;
}

#copyright a {
  color: #485979ff;
  text-decoration: none;
}

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

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

#options {
  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: #485879ff;
  /* padding-left: 3em; */
  padding: 1em 3em;
  border-radius: 8px;
  background: rgba(255, 255, 255);
  margin-bottom: 5em;
}

#upload_finished > p:nth-child(1) {
  color: #455264ff;
  font-weight: bold;
}

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

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

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

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

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

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

#upload_link_email {
  margin-left: 10px;
}

#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: #455264ff;
  /* font-family: Arial, sans-serif; */
  font-family: "Suisse Int'l", Roboto, Helvetica, Arial, sans-serif, sans-serif !important;
  background: none;
  margin: auto;
  display: block;
}

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

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

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;
}

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

#install fieldset,
#install + fieldset {
  width: auto;
  max-width: 50em;
  border: 4px dashed #455264ff;
}

#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: #a4aebcff;
}

#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;
  border: 4px dashed #455264ff;
}

#admin table,
#admin + fieldset table {
  width: 100%;
  border-collapse: collapse;
  border-bottom: 2px solid #757575ff;
}

#admin td,
#admin + fieldset td {
  padding: 0.5em 1em;
  border: 2px solid #FFF;
  border-bottom: 0;
}

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

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

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

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

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

#admin .info { width: 19em; }

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

#admin + fieldset table {
  font-size: 0.9em;
  /* background: white; */
}

#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;
}



/* ==========================================================================
   9 = MDS Changes
   ========================================================================== */
body {
  animation: bgslide 30s infinite;
/*  background-size: cover;
  background-position: center; */
  min-height: 100vh;
  width: 100vw;
/*  background-image: url('monimage.jpg'); */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;  
}
@keyframes bgslide {
  0% {background-image: url('img1.jpg');}
  33% {background-image: url('img2.jpg');}
  66% {background-image: url('img3.jpg');}
  100% {background-image: url('img1.jpg');}
}

fieldset {
  /* background: rgba(255, 255, 255, 0.5); */
  background: #FFF;
  margin-top: 1.5em;
}
legend {
  font-size: 1.2em;
  color: #455264ff;
  background: #FFF;
  padding: 0.5em 1em;
}
#upload legend {
/*  background: none; */
  margin-top: 0em;
  font-size: .9em;
}

#upload.file-selected fieldset {
  max-width: 40em;
  background: #fff;
}

.button, .input {
  border-radius: 4px;
}
#options input[type="submit"], #options input, #options select {
  border-radius: 8px;
}
#admin  {
  margin-bottom: 10em;
}
@media (max-width: 950px) {
  p {
    margin-block-start: 0em;
    margin-block-end: 0em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
  }
  #content {
      padding: 1em;
  }
  legend {
    padding: 0.5em 1em;
    font-size: .9em;
  }
  fieldset {
    margin: 0;
    width: auto;
    padding: .5em;
  }
  #copyright {
    font-size: .75em;
    width: 80%;
    bottom: 10px;
  }

  #upload_finished, #upload.file-selected fieldset {
    margin: 0;
    width: auto;
    padding-left: 0.5em;
  }
  #option_table {
    width: auto;
  }

  #upload_finished, #uploading, .message, .info, .error {
      margin-bottom: 5em;
  }
  #upload_finished_download_page, #upload_finished_preview, #upload_direct_download, #upload_delete, #upload_validity {
    padding-top: 1em;
  }

/* Styles pour la fonctionnalité QR Code */

.qr-section {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    /* border-left: 4px solid #485879ff; */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.qr-section h3 {
    color: #485879ff;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.qr-section p {
    margin-bottom: 15px;
    color: #6c757d;
}

.qr-button, 
.button.qr-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #485879ff 0%, #7a8499ff 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin: 5px;
}

.qr-button:hover,
.button.qr-button:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.qr-button .icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Styles pour la page de visualisation QR */
.qr-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin: 20px 0;
}

.qr-container h3 {
    color: #495057;
    margin-bottom: 20px;
}

.qr-image {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    display: inline-block;
}

.qr-image img {
    border: 2px solid #dee2e6;
    border-radius: 4px;
    background: white;
    padding: 10px;
}

.size-selector {
    margin: 20px 0;
}

.size-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.size-selector select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 120px;
}

.file-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #2196f3;
}

.file-info h3 {
    color: #1976d2;
    margin-top: 0;
    margin-bottom: 15px;
}

.file-info p {
    margin: 8px 0;
    color: #424242;
}

.buttons {
    margin: 30px 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 8px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Responsive */
@media (max-width: 768px) {
    .qr-container {
        padding: 20px 15px;
    }
    
    .buttons {
        text-align: center;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }
    
    .qr-image img {
        max-width: 100%;
        height: auto;
    }

    h1 a {
      width: 100px;
      height: 100px;
    }


}

/* Animation pour l'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qr-section {
    /* animation: fadeInUp 0.5s ease-out; */
}

}