/* General Reset */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif !important;
    overflow-y: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}


/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #222;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    z-index: 1000;
}


/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #222;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    z-index: 1000;
}

/* Main Content */
.main-content {
    margin-top: 70px; /* Space for the topbar */
    margin-bottom: 50px; /* Space for the footer */
    height: calc(100vh - 120px); /* Adjust for topbar and footer heights */
    display: flex;
}

/* Scrollable Content */
.scroll-frame {
    overflow-y: auto;
    width: 100%;
    height: 100%;
    padding: 10px;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    gap: 20px;
}

/* Featured Articles */
.featured-articles {
    width: 25% !important;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
}

/* All Articles */
.all-articles {
    width: 75% !important;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
}

/* Article Boxes */
.article-box {
    border: 1px solid #100;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.article-box h3 {
    margin: 0;
    font-size: 1.2em;
}

.article-box .author {
    font-size: 0.9em;
    color: #666;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 50px;
    right: 0px;
    width: 150px;
    background-color: #f1f1f1;
    transition: right 0.3s;
}

.side-menu:hover {
    right: 0;
}

.logo {
    display: inline-block; /* Ensures proper spacing for the image link */
    text-decoration: none; /* Remove underline for the link */
}

.logo img {
    height: 50px; /* Adjust the logo size as needed */
    width: auto; /* Keep aspect ratio */
    vertical-align: middle; /* Aligns the image properly */
}
.home-button {
    display: none;
}

/* LINKS */

a:link, a:visited {
  color: #654321;
  text-decoration: none;
}

a:hover, a:active {
  text-decoration: underline;
  color: green;
}

.topbar a:link, .topbar a:visited, .topbar a:hover, .topbar a:active {
  color: white;
  text-decoration: none;
}


[data-bs-theme="light"] #plansza_animacji {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    z-index: -1; /* Sends it behind all other elements */
    background-color: #fcfcfc;'/*white; /* Background color */
    pointer-events: none; /* Ensures it's not interactive */
    transition: background-color 0.5s ease, color 0.5s ease;
}

[data-bs-theme="dark"] #plansza_animacji {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    z-index: -1; /* Sends it behind all other elements */
    background-color: #111;/*white; /* Background color */
    pointer-events: none; /* Ensures it's not interactive */
    transition: background-color 0.5s ease, color 0.5s ease;
}

button {
    background-color: white;
    color: #654321;
    border: 1px solid #654321;
    padding: 7px 15px;
    border-radius: 5px;
    margin-top: .25rem;
}

button:hover {
    background-color: green;
    color: white;
    border: 1px solid green;
}

.topbar button {
    background-color: #654321;
    color: white;
    border: none;
    padding: 7px 15px;
    border-radius: 5px;
}

.topbar button:hover {
    background-color: green;
}



.topbar input {
    background-color: white;
    color: black;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
}

/*.project {
    width: 90% !important;
    height: 300px !important;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
}*/

.project {
    width: 90%;
    height: 300px;
    background-color: #ffffff; /* cleaner white */
    background-size: cover; /* make it cover the whole div */
    background-position: center; /* center the image */
    background-repeat: no-repeat;
    padding: 20px; /* more breathing room */
    border-radius: 6px; /* rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* subtle shadow */
    border: none;
    /*border: 2px solid #ddd;*/
    display: flex; /* flexible layout */
    flex-direction: column;
    gap: 10px; /* spacing between children */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* smooth hover efffect */
    cursor: pointer;
    justify-content: center;
    align-items: center;   
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.thingbox {
    width: 90% !important;
    height: 300px !important;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
}

.maingrid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 5%;
}

.minicolors-theme-bootstrap .minicolors-swatch {
  width: 36px;
  height: 36px;
}

.minicolors-theme-bootstrap .minicolors-swatch > .minicolors-sprite {
  border-radius: 0;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

span.minicolors-swatch-color {
  cursor: pointer;
}


fieldset {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}


.form-label {
  margin-bottom: .5rem;
}

.col-form-label {
  padding-top: calc(.6rem + var(--border-width));
  padding-bottom: calc(.6rem + var(--border-width));
  font-size: inherit;
  margin-bottom: 0;
  line-height: 1.5;
}

.col-form-label-lg {
  padding-top: calc(.5rem + var(--border-width));
  padding-bottom: calc(.5rem + var(--border-width));
  font-size: 1.25rem;
}

.col-form-label-sm {
  padding-top: calc(.25rem + var(--border-width));
  padding-bottom: calc(.25rem + var(--border-width));
  font-size: .875rem;
}

.form-text {
  color: var(--secondary-color);
  margin-top: .25rem;
  font-size: .875em;
}

.form-control {
  color: var(--body-color);
  appearance: none;
  background-color: var(--body-bg);
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  background-clip: padding-box;
  width: 500px;
  padding: .6rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  display: block;
}

.custom-select {
    position: relative;
    display: inline-block;
    width: 250px;
  }

  select {
    width: 500px;
    padding: 10px 15px;
    border-radius: 2px;
    border: 2px solid #ced4da;
    background-color: #fff;
    font-size: 16px;
    color: #333;
    appearance: none; /* remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  select:hover {
    border-color: #101010;
    box-shadow: 0 0 10px rgba(72, 239, 128, 0.3);
  }

  .custom-select::after {
    content: "▼";
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #101010;
    font-size: 12px;
  }


.choices {
  color: var(--body-color);
  appearance: none;
  background-color: var(--body-bg);
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  background-clip: padding-box;
  width: 500px;
  padding: .6rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  display: block;
}


dl {
  max-width: 500px;
  margin: 20px;
  
  font-family: Arial, sans-serif;
}

dt {
  font-weight: bold;
  color: #333;
  margin-top: 10px;
  padding-left: 0;
}

dd {
  margin: 2px 0 10px 20px;
  color: #555;
  padding-left: 10px;
  border-left: 2px solid #888;
}

.hrspace {
  border: none;
  height: 1px;
  background: transparent;
  margin: 1em 0; /* keeps spacing */
}

.akengage-comment-item {
  background-color: #f8f8f8;
  border: 1px solid #ced4da;
  border-radius: 2px;
  min-width: 500px;
  max-width: 90%;
  padding: 10px;
}

.akengage-comment-body {
  background-color: #f8f8f8;
  border: 1px solid #ced4da;
  border-radius: 2px;
  width: 95%;
  padding: 10px;
}

e {
    display: none !important;
}

html[data-bs-theme="dark"] {
  filter: invert(1) hue-rotate(180deg);
}

html[data-bs-theme="dark"] img,
html[data-bs-theme="dark"] video,
html[data-bs-theme="dark"] picture,
html[data-bs-theme="dark"] canvas,
html[data-bs-theme="dark"] svg,
html[data-bs-theme="dark"] .topbar,
html[data-bs-theme="dark"] .footer,
html[data-bs-theme="dark"] .logo,
html[data-bs-theme="dark"] .project
/*html[data-bs-theme="dark"] #colorusername,
html[data-bs-theme="dark"] .cuserclass*/ {
  filter: invert(1) hue-rotate(180deg);
  /*transition: filter 0.5s ease;*/
}

.switch {
    --w: 52px;          /* total width */
    --h: 28px;          /* total height */
    --pad: 3px;         /* inner padding */
    --knob: calc(var(--h) - var(--pad) * 2);
    --track-off: #999;
    --track-on: #444;
    --focus: 0 0 0 3px rgba(33, 150, 243, .35);
  
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font: 14px/1.2 system-ui, sans-serif;
    cursor: pointer;
    user-select: none;
}

.switch input {
      position: absolute;
      opacity: 0;
      inset: 0;
      width: 100%;
      height: 100%;
      margin: 0;
      cursor: pointer;
}

    /* Track */
.switch .slider {
      position: relative;
      width: var(--w);
      height: var(--h);
      background: var(--track-off);
      border-radius: var(--h);
      transition: background .25s ease;
      box-sizing: border-box;
}

    /* Knob: rounded square, rotated */
.switch .slider::before {
      content: "";
      position: absolute;
      left: var(--pad);
      top: var(--pad);
      width: var(--knob);
      height: var(--knob);
      background: #fff;
      border-radius: 6px; /* rounded corners */
      box-shadow: 0 1px 2px rgba(0,0,0,.25);
      transform: rotate(45deg); /* start rotated */
      transition: transform .25s ease, background .25s ease;
}

    /* Checked (ON) styles */
.switch input:checked + .slider {
      background: var(--track-on);
}
.switch input:checked + .slider::before {
      transform: translateX(calc(var(--w) - var(--knob) - var(--pad) * 2)) rotate(135deg);
}

    /* Focus ring for keyboard users */
.switch input:focus-visible + .slider {
      box-shadow: var(--focus);
      outline: none;
}

#darkmodespan {
  font-size: 1.2em;
}

.invisiblea {
  display: none;
}

.projectname {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 5px;
  width:80%;
  text-align: center;
}

/*---------------------------------------------------------------------------------*/
#fraktale {
  background-image: url('/templates/rtemplate/projects/fraktale/fraktal-03.png')
}
#schoolsearch {
  background-image: url('/templates/rtemplate/projects/schoolsearch/thumbnail.png')
}
#trojkat {
  background-image: url('/templates/rtemplate/projects/trojkat/thumbnail.png')
}
#chat {
  background-image: url('/templates/rtemplate/projects/chat/chat.png')
}
#pingpong3d {
  background-image: url('/templates/rtemplate/projects/pingpong3d/pingpong_image.png')
}
/*---------------------------------------------------------------------------------*/