/* =========================
   FONT SCALING SYSTEM
========================= */

html.a11y-font-1 { font-size: 112%; }
html.a11y-font-2 { font-size: 125%; }
html.a11y-font-3 { font-size: 140%; }

/* smooth scaling */
html {
  font-size: 100%;
}

/* =========================
   GLOBAL TYPOGRAPHY FIX
   (για να μεγαλώνουν ΟΛΑ)
========================= */

body {
  font-size: 1rem;
}

nav button {
  font-size: 1rem;
}

.card-content h3 {
  font-size: 1.25rem;
}

.card-content p {
  font-size: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p, li {
  font-size: 1rem;
  line-height: 1.6;
}

/* =========================
   SPACING MODE
========================= */

body.a11y-spacing p,
body.a11y-spacing li {
  line-height: 1.9;
}

/* =========================
   CONTRAST MODE
========================= */

body.a11y-contrast {
  background: #000 !important;
  color: #fff !important;
}

body.a11y-contrast header,
body.a11y-contrast footer,
body.a11y-contrast nav,
body.a11y-contrast section,
body.a11y-contrast .card {
  background: #111 !important;
  color: #fff !important;
  border-color: #fff !important;
}

body.a11y-contrast a {
  color: yellow !important;
}

body.a11y-contrast *:focus {
  outline: 2px solid yellow !important;
}

/* =========================
   BUTTON
========================= */

#a11y-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1a73e8;
  color: white;
  font-size: 22px;
  z-index: 999999;
  border: none;
  cursor: pointer;
}

#a11y-panel {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 220px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 999999;
  border-radius: 10px;
}

/* panel layout */
#a11y-panel {
  font-family: Arial, sans-serif;
}

.a11y-group {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.a11y-title {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #444;
}

/* buttons */
#a11y-panel button {
  width: 100%;
  text-align: left;
  padding: 10px;
  margin: 5px 0;
  border: none;
  border-radius: 6px;
  background: #f3f3f3;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

#a11y-panel button:hover {
  background: #e6e6e6;
}

/* reset button special */
.a11y-reset {
  background: #1a73e8 !important;
  color: white;
}

.a11y-reset:hover {
  background: #1558b0 !important;
}