/*
Theme Name: CBS Custom Theme
Author: C.B.Snow/ChatGPT
Version: 1.0
*/

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #ccc;
  font-family: sans-serif;
}

/* Layout wrapper */
.page-wrapper {
  display: flex;
#  border-left: 30px solid #fff;
#  border-right: 30px solid #fff;
  border: 30px solid #fff;
  padding: 5px 0;
  background-color: white;
  max-width: 900px;
  margin: 5px auto;
  min-height: calc(100vh - 10px);
}

/* Sidebar */
.sidebar {
  width: 165px;
  background-color: #444;
  color: white;
  padding-top: 60px;
  z-index: 1;
  border: 4px solid black;
}

/* Sidebar menu */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu a {
  display: block;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
}

.sidebar-menu a:hover {
  background-color: #666;
}

.sidebar-menu .current-menu-item > a,
.sidebar-menu .current_page_item > a {
  color: red;
  font-weight: bold;
}

/* Right content column */
.right-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
  border-left: 10px solid #fff;
}

/* Logo area */
.logo-wrapper {
  text-align: center;
  background-color: white;
  padding: 0px 0;
}

.logo-img {
  height: 130px;
  width: auto;
  max-width: 100%;
}

/* Hide hamburger by default */
.menu-toggle {
  display: none !important;
}

/* Main content */
.main {
  flex: 1;
  padding: 0;
  overflow: visible;
}

/* Optional inner container for max width content */
.content-inner {
  max-width: 750px;
  margin: 0 auto;
  width: 100%;
}

/* Footer */
.site-footer {
  padding: 15px 20px;
  background-color: #ffffff;
  border-top: 1px solid #ccc;
  color: #c0c0c0;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-footer a {
  color: #c0c0c0;
  text-decoration: none;
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 140%; /* make it tall enough for all but about.html */

  height: 0;
  overflow: hidden;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive layout and dropdown */
@media screen and (max-width: 768px) {
  .page-wrapper {
    flex-direction: column;
    padding: 0;
    margin: 0;
    border: none;
  }

  .sidebar {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: #444;
    z-index: 9999;
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }

  .sidebar.active {
    transform: translateY(0);
  }

  .menu-toggle {
    display: block !important;
    background-color: #444;
    color: white;
    font-size: 24px;
    padding: 10px;
    border: none;
    width: 100%;
    text-align: left;
    z-index: 10000;
    position: relative;
  }

  .main {
    margin-left: 0;
  }
}

