html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background-image: url("../assets/downpourost.jpg");
  background-attachment: fixed;
  object-fit: contain;
}

/* Layout structure */
.body {
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrapper {
  flex: 1 0 auto;
}

/* Main container */
.container {
  width: 960px;
  min-height: 800px;
  margin: 0 auto;
  display: flex;
  background-color: #fff;
  border: 2px solid #000;
}

/* Header */
.header {
  width: 960px;
  margin: 0 auto;
  align-self: center;
  padding: 1rem 0;
  text-align: center;
  background-color: #fff;
  border-bottom: 1px solid #000;
  overflow: hidden;
}

.header img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.full-header {
  width: 100%;
  height: 75px;
  background-color: #686868;
  color: white;
  display: flex;
  justify-content: left;
  align-items: center;
  text-align: center;
  font-size: 2rem;
  margin-top: 1rem;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
}

.full-header-small {
  width: 100%;
  height: auto;
  background-color: #686868;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1rem;
  margin-top: 1rem;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
}

/* Sidebars */
.sidebar-left,
.sidebar-right {
  width: 200px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.sidebar-left {
  background-color: #d0d0ff;
  border-right: 2px solid #000;
}

.sidebar-right {
  background-color: #ffd0d0;
  border-left: 2px solid #000;
}

/* Sidebar box */
.sidebar-box {
  text-align: left;
  border: 2px solid #000;
  border-radius: 2px;
  background-color: #d0d0ff;
  padding: 0.5rem;
  margin: 0.5rem;
  box-shadow: 2px 2px 0 #888;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  width: 960px;
  margin: 0 auto;
  align-self: center;
  padding: 1rem 0;
  text-align: center;
  background-color: #fff;
  border-top: 1px solid #000;
  overflow: hidden;
  flex-shrink: 0;
}

/* Content */
.contentbox {
  width: 560px;
  flex: 0 0 560px;
  background-color: #f9f9f9;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.content {
  padding: 2rem;
}

.content video,
.content iframe,
.content img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

/* Mobile layout */
@media (max-width: 480px) {
  html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  }

  .container {
    flex-direction: column;
    width: 100%;
  }

   body {
    font-size: 15px;
  }

  .sidebar-left,
  .sidebar-right,
  .contentbox {
    width: 100%;
    border: none;
    padding: 1rem;
  }

  .contentbox {
    order: 1;
  }

  .sidebar-left {
    order: 2;
    border-top: 2px solid #000;
  }

  .sidebar-right {
    order: 3;
    border-top: 2px solid #000;
  }

  .header,
  .footer {
    width: 100%;
  }

  .container
  .header
  .footer {
    max-width: 100%;
    width:100%;
    box-sizing: border-box;
  }
  
  .sidebar-box {
  margin-bottom: 1rem;
  background-color: #f0f0ff; /* softer for mobile */
  }
}

/* Default hidden on mobile */
.sidebar {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  height: 100%;
  background: var(--bg-color);
}

/* Show when active */
.sidebar.active {
  transform: translateX(0);
}

/* Only do this for narrow screens */
@media (min-width: 768px) {
  .sidebar {
    transform: none;
    position: relative;
  }
}
