/*
Theme Name: retro
Description: A retro-style WordPress theme.
Author: sabaxow
Author URI: https://sabaxow.ru
Version: 1.0.0
*/

/* Default Light Theme */
body {
  font-family: "Lucida Console", Monaco, monospace !important;
  font-size: 13px;
  background-color: #e0e0e0; /* Slightly lighter gray */
  color: #333; /* Darker gray for better contrast */
  line-height: 1.3em;
  text-align: justify;
  margin: 0;
}

#container {
  max-width: 1200px;
  margin: 20px auto;
  border: 2px solid #a0a0a0; /* Slightly darker gray border */
  background-color: #f8f8f8; /* Off-white background */
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2); /* Lighter shadow */
  padding: 0;
  overflow: hidden;
  width: 90%;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

#sidebar {
  background-color: #f0f0f0; /* Very light gray */
  padding: 10px;
  border-right: 1px dashed #c0c0c0; /* Light gray dashed border */
  float: left;
  width: 20%;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

#sidebar ul {
  list-style-type: square;
  padding: 10px 0 0 20px;
}

#sidebar li {
  margin-bottom: 5px;
}

#sidebar a, #breadcrumbs a {
  text-decoration: none;
  color: #800080; /* Purple color for links */
  transition: color 0.3s ease;
}

#sidebar a:hover, #breadcrumbs a:hover {
  color: #400080; /* Darker purple hover */
  text-decoration: underline;
}

#content {
  padding: 0;
  float: left;
  width: 80%;
}

.content-wrapper {
  padding: 20px;
  background-color: #f8f8f8; /* Add background color for light theme */
  transition: background-color 0.3s ease; /* Transition added here for light theme */
}

h1 {
  font-size: 1.5em;
  margin-bottom: 20px !important;
  text-decoration: underline;
  color: #444; /* Dark Grey for headings */
}

h2 {
  text-decoration: underline;
  margin-bottom: 20px !important;
  color: #444; /* Dark Grey for headings */
}

p {
  line-height: 1.4em;
}

select {
  height: 30px;
}
.test {
  margin-bottom: 10px;
}

#footer {
  padding: 10px;
  text-align: center;
  background-color: #f0f0f0;
  border-top: 2px solid #a0a0a0;
  clear: both;
  margin-top: 20px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}


/* Dark Theme Styles */
body.dark-theme {
  background-color: #222; /* Darker background */
  color: #ddd; /* Lighter text */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-theme #container {
  background-color: #333;
  border-color: #666; /* Darker border */
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark-theme #sidebar {
  background-color: #333;
  border-color: #666;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark-theme #sidebar a, .dark-theme #breadcrumbs a {
  color: #cc66ff; /* Light purple links for dark theme */
    transition: color 0.3s ease;
}

.dark-theme #sidebar a:hover, .dark-theme #breadcrumbs a:hover, .dark-theme a:hover {
  color: #b066ff; /* Changed dark theme hover */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.dark-theme #footer {
  background-color: #333;
  border-color: #666;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark-theme h1, .dark-theme h2 {
  color: #eee; /* Very light grey */
    transition: color 0.3s ease;
}

.dark-theme .content-wrapper {
    background-color: #333;
        transition: background-color 0.3s ease;

}

.dark-theme input, .dark-theme textarea, .dark-theme select {
  background-color: #333;
  transition: background-color 0.3s ease;
  color: #ddd;
}

/* Form Group */
.form-group {
  margin-bottom: 10px;
}

/* Media Query for Large Screens */
@media (min-width: 1200px) {
  #container {
    width: 95%;
  }
}

.pixel-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 22px;
    color: #800080; /* Purple pixel text to match link */
    letter-spacing: -2px;
    padding: 10px;
    display: block;
}

#logo-link {
   text-decoration: none;
   display: block;
   margin-bottom: 20px;
   width: fit-content;
}

#logo-link:hover .pixel-text {
    text-decoration: none;
    color: #333;
    background-color: #f0f0f0;
 }
 
 .dark-theme #logo-link:hover .pixel-text {
    color: #ddd;
    background-color: #333;
 }

 /* Breadcrumbs */
.breadcrumbs {
  padding: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed #c0c0c0;
}

.breadcrumbs p {
  margin: 0;
}

#breadcrumbs a:hover{
    text-decoration: underline;
}

#sidebar .sidebar-widgets {
  margin-left: 10px;
}

.category-post {
  margin-bottom: 15px;
}
 
 @media (max-width: 1248px) {
    #sidebar {
      float: none;
      width: 100%;
      border-right: none;
      text-align: center;
      border-bottom: 1px dashed #c0c0c0;
    }
    #breadcrumbs {
      margin-left: 10px;
    }
  
    #sidebar ul {
      display: flex;
      justify-content: center;
      padding: 10px 0;
      list-style: none;
    }
  
    #sidebar li {
      margin: 0 10px;
    }
  
    #content {
      float: none;
      width: 100%;
    }
  
    #logo-link {
      display: block;
      margin: 20px auto;
      text-align: center;
    }
  
    #container {
      flex-direction: column;
    }

    #sidebar .sidebar-widgets {
      display: none;
    }
  
  }
