* {
  margin: 0;
  padding: 0;box-sizing: border-box;
}
html {
    touch-action: manipulation; /* Prevents double-tap zoom */
    -ms-touch-action: manipulation; /* For older IE */
}
body {
    background-color: #0e1327;
    color: #e0e0e0;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

.settings-page {
    max-width: 600px;
    margin: auto;
}

.slider {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.toggle-button {
    background-color: #1a1e2c;
    color: #e0e0e0;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    flex: 1;
    margin: 0 5px;
    transition: background-color 0.3s;
}

.toggle-button:hover {
    background-color: #2a2e3c;
}

.section {
    display: none; /* Initially hide all sections */
    background-color: #1a1e2c;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.header {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.information-form, .fund-form {
    margin-top: 10px;
}

.field, .custom-field {
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #2a2e3c;
    color: #e0e0e0;
}

button {
    background-color: #8885fb;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    width: 10em;
}

.email-cover {
    color: #f0f0f0;
    margin-bottom: 1em;
}
input[type=file] {
  display: none;
}

label[for="idUpload"] {
    height: 10vh;
    border: 1px dashed;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1em;
}
button:hover {
    opacity: .9;
}

/* Preloader styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0e1327; /* Match the background color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it is on top of other content */
}

.preloader::after {
    content: '';
    width: 60px; /* Size of the circle */
    height: 60px; /* Size of the circle */
    border-radius: 50%;
    border: 6px solid transparent;
    border-top-color: orange; /* Start with orange */
    animation: spin 1s linear infinite, changeColor 1.5s linear infinite;
}

/* Spin animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Color change animation */
@keyframes changeColor {
    0% { border-top-color: orange; }
    20% { border-top-color: green; }
    40% { border-top-color: dodgerblue; }
    60% { border-top-color: red; }
    80% { border-top-color: white; }
    100% { border-top-color: orange; }
}

@media (max-width: 48em) {
  .toggle-button {
    min-width: 12em;
  }
  .slider {
    overflow: scroll;
  }
  div#certification-primary p {
    color: #acf1ac;
    font-size: .9em;
}
}