/* version: 30 03 2025  */

/* === GOOGLE FONTS === */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap");

/* === VARIABLES === */
:root {
  --primary-font: "Poppins", sans-serif;
  --normal-weight: normal;
  --normal-style: normal;
  --title-font: 'Archivo Black", sans-serif';
  --primary-color: #b7b7b7;
  --accent-color: #0a97b0;
  --hover-color: #537188;
  --disabled-color: #dd88cf;
  --bg-color: #000000;
}

/* === CSS RESET === */
*,
*::before,
*::after,
body {
  outline: none;
  border: none;
  text-decoration: none;
  list-style: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === STYLES === */
body {
  background-color: var(--bg-color);
  background: linear-gradient(rgba(20, 20, 20, 0.55), rgba(0, 0, 0, 0.95)),
    url("./bg__1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--primary-color);
  font-family: var(--primary-font);
  font-weight: var(--normal-weight);
  font-style: var(--normal-style);
  text-align: justify;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px 0;
}

h1#mainTitle {
  font-family: var(--title-font);
  text-align: center;
  margin-bottom: 5px;
  font-size: 3rem;
  color: var(--accent-color);
}

/* popup */
/* Title container */
.title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  font-weight: bold;
}

/* Warning icon styling */
.warning-icon {
  width: 18px;
  height: 18px;
  margin-left: 6px;
  cursor: pointer;
  vertical-align: super;
}

/* Overlay (hidden by default) */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px); /* WebKit (Safari) support */
  z-index: 1000;
}

/* Popup box */
.popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-color);
  color: var(--primary-color);
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.popup #disclaimerText {
  font-family: var(--primary-font);
  color: var(--primary-color);
}

/* Close button modal */
button.close-btn {
  background: var(--disabled-color);
  color: white;
  border: var(--disabled-color) 2px solid;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 10px;
  margin-top: 10px;
}

h2#subTitle {
  font-family: var(--title-font);
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
}
section#toolInfo {
  margin-bottom: 20px;
}
.container {
  max-width: 90%;
  width: 600px;
}
a {
  color: var(--primary-color);
  font-family: var(--primary-color);
}
label {
  font-weight: bold;
  color: var(--primary-color);
  display: block;
  width: 100%;
  margin: 10px 0;
}
#semicase {
  font-weight: normal;
  font-style: italic;
  color: var(--primary-color);
}
input,
button {
  font-family: var(--primary-font);
  padding: 12px;
  font-size: 1rem;
  width: 100%;
  background-color: var(--bg-color);
  border-radius: 10px;
}
input {
  margin-bottom: 10px;
  border: var(--accent-color) 2px solid;
}
input::placeholder {
  color: var(--primary-color);
  opacity: 0.6;
  font-style: italic;
}
input:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 0px;
  color: var(--primary-color);
}
button {
  font-weight: bold;
  border: var(--accent-color) 2px solid;
  background-color: var(--accent-color);
  cursor: pointer;
  color: var(--primary-color);
  border-radius: 10px;
}
input:not(:focus) {
  font-family: var(--primary-font);
  font-weight: var(--normal-weight);
  font-style: var(--normal-style);
  color: var(--primary-color);
}
button:hover {
  background-color: var(--hover-color);
  border: var(--hover-color) 2px solid;
}
button:disabled {
  background-color: var(--bg-color);
  color: var(--disabled-color);
  cursor: not-allowed;
  border: var(--disabled-color) 2px solid;
  border-radius: 10px;
}
#progress {
  text-align: center;
  margin-top: 20px;
  font-size: 1rem;
  color: var(--primary-color);
  font-family: var(--primary-font);
  font-weight: bold;
}
#progress[role="status"] {
  outline: none;
}
#progressBar {
  width: 100%;
  height: 3.5px;
  background-color: #444;
  border-radius: 5px;
  margin-top: 10px;
}
#progressBar div {
  height: 100%;
  background-color: var(--accent-color);
  width: 0;
  border-radius: 5px;
}
#CustomMenu {
  position: absolute;
  background-color: var(--bg-color);
  border: 1px solid var(--disabled-color);
  padding: 5px;
  z-index: 1000;
  font-family: var(--primary-font);
  font-weight: bold;
  color: var(--disabled-color);
  font-size: 0.8rem;
}

/* === STYLING FILE SELECT === */
.file-select-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.custom-file-select {
  width: auto;
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--primary-font);
  font-size: 1rem;
  border-radius: 10px;
}
.custom-file-select:hover {
  background-color: var(--hover-color);
}
.selected-file-name {
  margin-left: 15px;
  font-family: var(--primary-font);
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: bold;
}
input[type="file"] {
  display: none; /* Hide the native input */
}
#CustomMenu {
  font-family: var(--primary-font);
  color: var(--accent-color);
  position: absolute;
  background-color: var(--bg-color);
  border: 2px solid var(--accent-color);
  padding: 5px 10px;
  z-index: 1000;
}

/* === FOOTER === */
footer {
  text-align: center;
  margin-block: 20px;
  font-size: small;
  opacity: 0.65;
}
footer span#year {
  color: var(--primary-color);
  font-weight: bold;
}
footer p#prohibition {
  color: var(--disabled-color);
  font-weight: bold;
}
#email-favicon img {
  width: 16px;
  height: 16pxl;
  margin-left: 2px;
  vertical-align: middle;
}

/* === MEDIA QUERIES === */
@media (max-width: 768px) {
  .container {
    width: 90%;
  }
  h1 {
    font-size: 2rem;
  }
  input,
  button {
    font-size: 1rem;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  input,
  button {
    font-size: 0.9rem;
    padding: 8px;
  }
}
