html, body {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1em;
    color: #555;
    background-image: url("../img/background.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    padding: 140px 20px 80px 20px;
    text-align: center;
    margin: 0;
}

logoimg {
    margin-top: 20px;
    margin-bottom: 20px;
    position: fixed;
    left: 20px;
    top: 0px;
    z-index: 9999;
}

hr {
  height: 2px;
  background: #ccc;
  border: none;
  margin-top: 20px;
}

body.admin #main {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.admin #form {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* 📱 Desktop-view */
  .table-responsive table {
    display: block;
    border-collapse: collapse;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    text-align: left;
    padding: 10px;
    margin-bottom: 20px;
  }

  .table-responsive tbody {
    border-bottom: 1px solid #ccc;
  }

  .table-responsive th {
    padding: 10px;
  }
  
  .table-responsive tr {
    border-bottom: 1px solid #ccc;
  }

  .table-responsive td {
    border: none;
    padding: 10px;
  }

  .table-responsive select,
  .table-responsive input[type="text"],
  .table-responsive button {
    max-width: 100%;
    margin-top: 20px;
    margin-bottom: 0px;
  }


/* 📱 Mobile Card-view */
@media (max-width: 1600px) {
  .table-responsive table {
    display: block;
    border-collapse: collapse;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    text-align: left;
    padding: 10px;
    margin-bottom: 20px;
  }
    
  .table-responsive tbody,
  .table-responsive tr,
  .table-responsive td {
    display: block;
    border: none;
    background: #fff;
  }

  .table-responsive th {
  }

  .table-responsive thead {
    display: none;
  }

  .table-responsive tr {
    background: #fff;
    border-radius: 5px;
    margin-bottom: 10px;
  }

  .table-responsive td {
    display: block;
    justify-content: space-between;
    align-items: flex;
    padding: 10px;
    white-space: normal;
    word-break: break-word;
    background: #fff;
  }

  .table-responsive tr td:last-child {
    border-bottom: none;
  }

  .table-responsive td::before {
    content: attr(data-label);
    flex-basis: 50%;
    font-weight: bold;
    padding-right: 10px;
  }

  .table-responsive td * {
    max-width: 100%;
  }

  .table-responsive form {
    width: 100%;
  }

  .table-responsive select,
  .table-responsive input[type="text"],
  .table-responsive button {
    width: 100%;
  }
}

#main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#form {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px #aaa;
    max-width: 100%;
    box-sizing: border-box;
}

#selectedFile {
    display: none;
}

#selectedFile.shown {
    display: block;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px #aaa;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
    color: #555;
}

@media (min-width: 1060px) {
    #main {
        flex-direction: row;
        align-items: flex-start;
    }
    #form {
        flex: 0 0 500px;
    }
    #selectedFile.shown {
        flex: 1;
        min-width: 500px;
        max-width: 1060px;
    }
}

#uploadResult {
    margin-top: 40px;
}

input::placeholder {
    color: #555;
    opacity: 1;
}

input[type="file"], input[type="email"], input[type="text"] {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 1em;
}

select {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.8);
    color: #555;
    cursor: pointer;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    margin-bottom: 20px;
    font-size: 1em;
}

h2 {
    margin-top: 30px;
    margin-bottom: 20px;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 15px 0px 15px 0px;
    z-index: 9999;
}

#dropzone {
    border: 2px dashed #aaa;
    border-radius: 5px;
    padding: 40px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.8);
    color: #555;
    margin-top: 20px;
    cursor: pointer;
    box-sizing: border-box;
}

#dropzone.dragover {
    background: #e6f3ff;
    border-color: #2196f3;
    color: #000;
}

#selectedFile ul {
    list-style: none;
    margin: 0;
    padding-left: 20px;
}

#selectedFile li {
    margin: 5px 0;
    font-family: monospace;
    font-style: italic;
}

progress {
    accent-color: #2196f3;
}

#languageFlags {
    max-width: 500px;
    margin: 0 auto 20px auto;
    text-align: center;
}

#languageFlags img {
    width: 32px;
    height: 21px;
    cursor: pointer;
    margin: 0 10px;
    border: 2px solid transparent;
    border-radius: 4px;
    vertical-align: middle;
    transition: border-color 0.3s ease;
}

.selected {
    opacity: 1 !important;
    font-weight: bold;
}

button {
    padding: 10px 20px;
    width: 100%;
    font-size: 1em;
    cursor: pointer;
    border: none;
    background-color: #2196f3;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #1976d2;
}

a {
    color: #2196f3;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: #1976d2;
}
