/* =========================================
   THEME VARIABLES
========================================= */
:root {
  --bg-color: #f9f9f9;
  --text-color: #111;
  --panel-bg: #ffffff;
  --toggle-bg: #e0e0e0;
  --toggle-selected: #ff7964;
  --border-color: #ccc;
  --accent-color: #ff7964;
  --radius-xl: 50px;
  --radius-md: 10px;
  --font-main: "Roboto Flex", sans-serif;
}


  :root {
    --bg-color: #121212;
    --text-color: #eee;
    --panel-bg: #1e1e1e;
    --toggle-bg: #333;
    --border-color: #666;
    /* --toggle-selected remains unchanged */
  }
}

/* =========================================
   GLOBAL STYLES
========================================= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main), sans-serif;
  margin: 0;
  padding: 2rem;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}


.roboto-flex {
  font-family: var(--font-main);
  font-weight: 300;
  font-optical-sizing: auto;
}

/* =========================================
   HEADER & LOGO
========================================= */
/* Default: horizontal layout (wide screens) */
.header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-color);
}

/* Logo defaults */
.logo {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* === Mobile Portrait Layout === */
@media (max-width: 600px) and (orientation: portrait) {
  .header-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .header-image {
    order: 1;
    margin-bottom: 0.5rem;
  }

  /* "Sol" and "Rah" on the same row */
  .side-label {
    order: 2;
    display: inline-block;
    font-size: 2rem;
  }

  /* Manually group them using text-align and word-spacing */
  .header-row::after {
    content: "Sol  Rah"; /* Use em-spaces or normal spaces */
    order: 2;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
  }

  /* Hide original "Sol" and "Rah" labels in portrait */
  .side-label {
    display: none;
  }
}




/* =========================================
   TOGGLE BUTTONS
========================================= */
input[type="radio"] {
  display: none;
}

.toggle-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.toggle-label {
  padding: 0.75rem 1.5rem;
  background-color: var(--toggle-bg);
  border: 2px solid var(--accent-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: bold;
  color: var(--text-color);
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.toggle-label:hover {
  transform: translateY(-2px);
}

/* Active toggle label */
#optionA:checked ~ .toggle-container label[for="optionA"],
#optionB:checked ~ .toggle-container label[for="optionB"],
#optionC:checked ~ .toggle-container label[for="optionC"] {
  background-color: var(--toggle-selected);
  color: #fff;
}

/* =========================================
   CONTENT PANELS
========================================= */
.content > div {
  display: none;
  background-color: var(--panel-bg);
  padding: 2rem;
  border: 2px solid var(--accent-color);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

#optionA:checked ~ .content .a-content,
#optionB:checked ~ .content .b-content,
#optionC:checked ~ .content .c-content {
  display: block;
}

.content > div + div {
  margin-top: 2rem;
}

/* =========================================
   INFO BOX
========================================= */
.info-box {
  background-image: repeating-linear-gradient(
  90deg,
  rgba(255, 255, 255, 0.05),
  rgba(255, 255, 255, 0.05) 1px,
  transparent 1px,
  transparent 80px);

  display: flex;
  align-items: center;
  background-color: var(--panel-bg);
  padding: 1rem;
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.info-image {
  width: 500px;
  height: 500px;
  border-radius: 10%;
  object-fit: cover;
  flex-shrink: 0;
}

.info-title {
  width: 100%;
  text-align: center;
  font-weight: bold;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.info-text {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  padding-bottom: 3rem;
}

.info-text ul,
.info-text ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.info-text li {
  margin-bottom: 0.5rem;
}

.info-text ol {
  list-style-position: inside;
}

.info-text {
  text-align: center;      /* Center text & image if needed */
}

/* Contact content overrides */
.c-content .info-box {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.c-content .info-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.c-content .info-text ul {
  list-style: none;
  padding: 0;
}

.c-content .info-text ul li {
  margin-bottom: 0.75rem;
}

.c-content .info-text a {
  color: var(--accent-color);
  text-decoration: none;
}

.c-content .info-text a:hover {
  text-decoration: underline;
}

/* =========================================
   LINKS & EMAIL
========================================= */
a,
a:visited {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.custom-link {
  color: var(--accent-color);
  text-decoration: none;
}

.custom-link:hover {
  text-decoration: underline;
}

.e-mail {
  display: block;
  text-align: center;
  margin: 0 auto;
}

.e-mail:before {
  content: attr(data-website) "\0040" attr(data-user);
  unicode-bidi: bidi-override;
  direction: rtl;
}

/* =========================================
   TOOLTIPS
========================================= */
/* Popover styling */
.popover__wrapper {
  display: inline; /* Stay inline */
  position: relative;
}

/* Hide the checkbox toggle */
.tooltip-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  z-index: -1;
}

/* When checked, expand checkbox to cover viewport */
.tooltip-toggle:checked {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  pointer-events: auto;
  z-index: 99999;
}

/* Label styled as tooltip trigger */
.tooltip-label {
  border-bottom: 1px dotted currentColor;
  cursor: help;
  user-select: none;
  display: inline;
}

/* Tooltip content with original colors */
.tooltip-text {
  position: absolute;
  white-space: normal;
  background-color: #333;
  color: #fff;
  padding: 0.5rem 1rem;
  width: max-content;
  max-width: 220px;
  text-align: center;
  font-size: 0.9rem;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.26);
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  z-index: 10;
}

/* Tooltip arrow with original colors */
.tooltip-text::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  border-width: 5px;
  border-color: #333 transparent transparent transparent; /* original arrow color */
}

/* Show tooltip when checkbox is checked */
.tooltip-toggle:checked + .tooltip-label + .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================
   SCROLL-UP LINK
========================================= */
.scroll-up {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-up:hover {
  text-decoration: underline;
}

.centered-text {
  text-align: center;
}

/* =========================================
   TABLES
========================================= */
.horizontal-divider-table {
  border-collapse: collapse;
  width: 100%;
}

.horizontal-divider-table th,
.horizontal-divider-table td {
  padding: 0.5em;
  text-align: left;
  border: none;
}

.horizontal-divider-table thead tr {
  border-bottom: 2px solid #999;
}

.horizontal-divider-table tbody tr {
  border-bottom: 1px solid #ccc;
}

/* =========================================
   RESPONSIVE DESIGN : BUTTONS
========================================= */

/* Base styles: horizontal toggle labels */
.toggle-container {
  display: flex;
  gap: 1rem;
  justify-content: center; /* or start, as you want */
}

/* Toggle labels as inline-block by default */
.toggle-label {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  user-select: none;
}

/* On mobile: stack vertically and stretch labels */
@media (max-width: 500px) {
  .toggle-container,
  .info-box {
    flex-direction: column;
    align-items: stretch; /* important for labels to fill width */
    text-align: center;
  }

  .toggle-label {
    width: 100%;  /* fill container width */
    margin: 0.25rem 0; /* vertical spacing */
    box-sizing: border-box;
  }

  .info-image {
    width: 300px;
    height: 300px;
  }
}

/* Existing base styles for .responsive-image */
.responsive-image {
  width: 100%;
  display: block;
  height: auto;
  margin: 0 auto;
  padding: 0 10px; /* This is the issue for your goal */
  box-sizing: border-box;
}

/* Updated media query for smartphones */
@media (max-width: 600px) {
  .info-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .info-image {
    order: 2;
    width: 100%;
    height: auto;
    max-width: 100%; /* Override 90vw to allow full width of info-box */
  }

  .responsive-image {
    width: 100%; /* Full width of info-box */
    height: auto; /* Proportional height */
    margin: 10 10px; /* 10px margin on left and right, 0 on top/bottom */
    padding: 0; /* Remove padding to allow image content to reach closer to edges */
    box-sizing: border-box; /* Ensure margins don’t affect width calculation */
  }
}



@media (min-width: 401px) {
  .responsive-image {
    width: 30%;              /* Shrink image width to 80% of container */
    max-width: 600px;        /* Optional: limit absolute max width */
    margin: 0 auto;          /* Center horizontally */
    display: block;          /* Ensure margin: auto works */
    border-radius: 8px;      /* Optional: soft edges */
  }

  .info-text {
    text-align: center;      /* Center text & image if needed */
  }
}




/* =========================================
   BACKGROUND : REPEAT PATTERN (BOX)
========================================= */

.chequered-bg {
  position: relative;
  width: 100vw;
  height: 100vh; /* or your container height */
  background-color: white;

  background-image:
    url('img/solRah.svg');

  background-repeat: repeat, repeat;

  /* Increase tile size to include space */
  background-size: 150px 150px, 150px 150px;

  /* Offset second layer by half tile */
  background-position: 0 0,
                       75px 75px;

  opacity: 0.4;
}



/* =========================================
   BACKGROUND : REPEAT PATTERN (EASTER EGG)
========================================= */

/* Base logo appearance */
.logo-toggle .logo {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* Optional scaling effect */
.logo-toggle .logo:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Toggle background pattern using :checked */
body {
  margin: 0;
  min-height: 100vh;
  background-color: black;
  transition: background 0.4s ease;
}

#bg-toggle:checked ~ .site-wrapper {
  background-image: repeating-linear-gradient(
    to right,
    #111 0,
    #111 2px,
    transparent 2px,
    transparent 10px
  );
}


/* Ensure .site-wrapper takes up the full viewport */
.site-wrapper {
  min-height: 100vh;
  transition: background 0.4s ease;
}

.page-container {
  background-color: black;
  transition: background-color 0.3s ease;
}

/* When checkbox is checked, change background */
#bg-toggle:checked ~ .page-container {
  background-color: white; /* Or whatever alternate background you want */
}


/* If the logo is inside a wrapper, adjust selectors accordingly */
