/* ===== style.css ===== */

/* Root Variables */
:root {
  --bg-light: #fffdf5;
  --bg-dark: #121212;
  --text-light: #333;
  --text-dark: #fff;
  --primary-color: #000000;
  --primary-hover: #0056b3;
  --success-color: #28a745;
  --danger-color: #99dc35;
  --warning-color: #c3bebc;
  --border-color: #ccc;
  --sidebar-bg: #1f1f1f;
  --card-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Body & Typography */
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-light);
  color: var(--text-light);
  margin: 0;
  transition: background 0.4s, color 0.4s;
  line-height: 1.6;
}

body.dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

/* Main Container */
.main-wrapper {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: var(--bg-light);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

body.dark .main-wrapper {
  background: var(--bg-dark);
  border: 1px solid #333;
}

h2 {
  color: var(--primary-color);
}

body.dark h2 {
  color: var(--text-dark);
}

/* Inputs & Buttons */
input, button {
  padding: 12px 16px;
  margin: 10px 0;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.25);
}

body.dark input {
  background-color: #333;
  color: var(--text-dark);
  border-color: #555;
}

button {
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover,
button:focus {
  background-color: var(--primary-hover);
  outline: none;
}

button:active {
  transform: scale(0.98);
}

/* Cards for Result */
.card {
  padding: 40px;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  font-weight: bold;
  font-size: 1.5em;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
  margin-bottom: 15px;
  animation: fadeIn 0.6s forwards;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card.chest {
  background-image: url('https://raw.githubusercontent.com/hari-zetsu/imagehost/1f5434e44eafcf36a646138eba50aa774ee3fb82/chestpiece.png');
}

.card.leg {
  background-image: url('https://raw.githubusercontent.com/hari-zetsu/imagehost/1f5434e44eafcf36a646138eba50aa774ee3fb82/legpiece.png');
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sidebar */
#menuToggle {
  all: unset;
  position: absolute;
  top: -5px;
  left: auto;
  z-index: auto;
  font-size: 1.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
}

#sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  background-color: var(--sidebar-bg);
  color: white;
  padding: 20px;
  transition: left 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  z-index: 101;
  overflow-y: auto;
}

#sidebar.open {
  left: 0;
  opacity: 1;
}

#sidebar h4 {
  color: white;
  margin-bottom: 20px;
}

#sidebar a {
  display: block;
  margin: 15px 0;
  color: white;
  text-decoration: none;
}

#sidebar a:hover {
  color: #bc0b0b;
}

@media (max-width: 576px) {
  .main-wrapper {
    margin: auto;
    padding: 15px;
  }

  .card {
    padding: 30px;
    font-size: 1.2em;
  }

  * {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}


}