/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Jersey+10&family=Orbitron:wght@400..900&family=Pixelify+Sans:wght@400..700&family=Press+Start+2P&display=swap");

/* Light Mode Variables */
:root {
  --highlight1: #30ceec;
  --highlight2: #7acc00;
  --highlight3: #e50004;
  --highlight4: #8c4ffe;
  --highlight5: #f5a742;
  --bg: #fafafa; /* Light mode background */
  --text: #0a0a0b; /* Light mode text */
  --font-primary: "Press Start 2P", sans-serif;
  --font-secondary: "Orbitron", sans-serif;
}

/* General Font-Styles */

h1,
h2,
h3,
a,
button,
th,
.stat,
.footer {
  font-family: var(--font-primary);
}

p,
input,
select,
details,
summary,
checkbox,
label,
td,
textarea,
.toast,
.alert,
.badge,
.divider,
.radial-progress,
.recent-donations {
  font-family: var(--font-secondary);
  letter-spacing: 2px;
}
h1:not(.main-title) {
  font-size: 30px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 13px;
}

a,
.btn{
  font-size: 0.75rem;
}

.text-error,
.footer {
  font-size: 0.55rem;
}

select {
  font-size: 0.75rem;
}

.badge {
  height: auto;
  text-align: center;
}

/* text-color on light and dark theme */
.text-color {
  color: var(--bg);
  fill: var(--bg);
}
html[data-theme="light"] .text-color {
  color: var(--text);
  fill: var(--text);
}

/* text-color-white text-color-white for btns and badges*/
.text-color-light {
  color: var(--bg);
  fill: var(--bg);
}
.text-color-dark {
  color: var(--text);
  fill: var(--text);
}


/* General Font-Colors for Headers and Highlights */
.women {
  color: var(--highlight4);
  fill: var(--highlight4);
}

.project {
  color: var(--highlight2);
  fill: var(--highlight2);
}

.mentor {
  color: var(--highlight5);
  fill: var(--highlight5)
}

.milestone {
  color: var(--highlight1);
  fill: var(--highlight1);
}

/* Icons */
.inline-icon {
  height: 1.5rem;
}

/* Navbar */
.logo {
  background-image: url("https://res.cloudinary.com/dj2lk9daf/image/upload/v1742647701/ce-logo-dark-theme_dulmwg.png");
  width: auto;
  height: 60px;
  aspect-ratio: 4 / 1;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Logo in Light Theme */
html[data-theme="light"] .logo {
  background-image: url("https://res.cloudinary.com/dj2lk9daf/image/upload/v1742647700/ce-logo-light-theme_jcwtrv.png");
}

/* Cards & Buttons pixelated border effect */
.btn-outline,
.btn-outline--wrapper,
.btn-error,
.btn-error--wrapper,
.btn-retro,
.btn-retro--wrapper,
.card,
.card--wrapper {
    clip-path: polygon(0px calc(100% - 10px),
    5px calc(100% - 10px),
    5px calc(100% - 5px),
    10px calc(100% - 5px),
    10px 100%,
    calc(100% - 10px) 100%,
    calc(100% - 10px) calc(100% - 5px),
    calc(100% - 5px) calc(100% - 5px),
    calc(100% - 5px) calc(100% - 10px),
    100% calc(100% - 10px),
    100% 10px,
    calc(100% - 5px) 10px,
    calc(100% - 5px) 5px,
    calc(100% - 10px) 5px,
    calc(100% - 10px) 0px,
    10px 0px,
    10px 5px,
    5px 5px,
    5px 10px,
    0px 10px);
  position: relative;
}
.btn-outline,
.btn-error,
.btn-retro,
.card {
  border: 5px solid transparent;
}
.btn-outline--wrapper,
.btn-error--wrapper,
.btn-retro--wrapper,
.card--wrapper {
  width: fit-content;
  height: fit-content;
}
.btn-outline--wrapper .btn-outline,
.btn-error--wrapper .btn-error,
.btn-retro--wrapper .btn-retro,
.card--wrapper .card {
  display: block;
  clip-path: polygon(5px 10px,
    10px 10px,
    10px 5px,
    calc(100% - 10px) 5px,
    calc(100% - 10px) 10px,
    calc(100% - 5px) 10px,
    calc(100% - 5px) calc(100% - 10px),
    calc(100% - 10px) calc(100% - 10px),
    calc(100% - 10px) calc(100% - 5px),
    10px calc(100% - 5px),
    10px calc(100% - 10px),
    5px calc(100% - 10px));
}
.btn-outline::after,
.btn-outline--wrapper::after,
.btn-error::after,
.btn-error--wrapper::after,
.btn-retro::after,
.btn-retro--wrapper::after,
.card::after,
.card--wrapper::after {
  content: "";
  position: absolute;
  clip-path: polygon(0px calc(100% - 10px),
    5px calc(100% - 10px),
    5px calc(100% - 5px),
    10px calc(100% - 5px),
    10px 100%,
    calc(100% - 10px) 100%,
    calc(100% - 10px) calc(100% - 5px),
    calc(100% - 5px) calc(100% - 5px),
    calc(100% - 5px) calc(100% - 10px),
    100% calc(100% - 10px),
    100% 10px,
    calc(100% - 5px) 10px,
    calc(100% - 5px) 5px,
    calc(100% - 10px) 5px,
    calc(100% - 10px) 0px,
    10px 0px,
    10px 5px,
    5px 5px,
    5px 10px,
    0px 10px,
    0px 50%,
    5px 50%,
    5px 10px,
    10px 10px,
    10px 5px,
    calc(100% - 10px) 5px,
    calc(100% - 10px) 10px,
    calc(100% - 5px) 10px,
    calc(100% - 5px) calc(100% - 10px),
    calc(100% - 10px) calc(100% - 10px),
    calc(100% - 10px) calc(100% - 5px),
    10px calc(100% - 5px),
    10px calc(100% - 10px),
    5px calc(100% - 10px),
    5px 50%,
    0px 50%);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--highlight4);
  display: block;
  pointer-events: none;
}
.btn-outline::after,
.btn-error::after,
.btn-retro::after,
.card::after {
  margin: -5px;
}

.card-project::after {
  background: var(--highlight2) !important;
}
.card-mentor::after {
  background: var(--highlight5) !important;
}
.card-milestone::after {
  background: var(--highlight1) !important;
}

.btn.btn-error::after {
  background: var(--highlight3) !important;
}

.btn.btn-outline::after {
  background: var(--bg);
}

html[data-theme="light"] .btn.btn-outline::after {
  background: var(--text);
}

.error-container {
  text-align: center;
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.error-container h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.error-actions {
  margin-top: 30px;
}

.error-actions .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.error-actions .btn:hover {
  background-color: #0056b3;
}
