/*
Theme Name: Tis So Sweet
Author: Mike
Description: Responsive theme with header, footer, and sidebar.
Version: 1.0
*/

body {
  margin: 0;
  font-family: sans-serif;
}

header, footer {
  background: #fafaf7;
  color: #016f60;
  padding: 1em;
  text-align: center;
}

.wrapper {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}

.sidebar-left, .content {
  padding: 1em;
  box-sizing: border-box;
}

.sidebar-left {
  overflow-wrap: break-word;
}
.sidebar-left img {
  max-width: 100%;
  height: auto;
}

/* Desktop layout */
@media (min-width: 768px) {
  .wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .sidebar-left {
    flex: 0 0 25%; /* don’t grow or shrink, fixed 20% width */
    min-height: 100%;
    height: auto;
    top: 0;
    box-sizing: border-box;
  }

  .content {
    flex: 1 1 75%; /* allow content to fill remaining space */
    box-sizing: border-box;
  }
}

/* Mobile layout */
@media (max-width: 767px) {
  .wrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .content {
    order: -1;
    width: 100%;
  }

  .sidebar-left {
    order: 2;
    width: 100%;
  }

}
  
 /* Widget Styling */
.widget {
  margin-bottom: 1.5em;
  padding: 1em;
  background: #fafaf7;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.widget h2, .widget-title {
  font-size: 1.1em;
  margin-bottom: 0.5em;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3em;
}

.widget ul {
  list-style: none;
  padding-left: 0;
}

.widget ul li {
  padding: 0.3em 0;
  border-bottom: 1px dotted #ccc;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget a {
  text-decoration: none;
  color: #0073aa;
}

.widget a:hover {
  text-decoration: underline;
  color: #005177;
}

/* Block Styling */
/* Paragraphs */
.wp-block-paragraph {
  margin-bottom: 1.5em;
  line-height: 1.6;
  color: #333;
}

/* Headings */
.wp-block-heading {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: bold;
  color: #222;
}

/* Images */
.wp-block-image {
  margin: 1.5em 0;
  text-align: center;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Quotes */
.wp-block-quote {
  margin: 2em 0;
  padding-left: 1em;
  border-left: 4px solid #ccc;
  font-style: italic;
  color: #555;
}

.wp-block-quote cite {
  display: block;
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #888;
}

/* Lists */
.wp-block-list {
  margin: 1em 0;
  padding-left: 1.2em;
}

.wp-block-list li {
  margin-bottom: 0.5em;
}

/* Buttons */
.wp-block-button {
  margin: 1.5em 0;
}

.wp-block-button__link {
  background-color: #0073aa;
  color: #fff;
  padding: 0.6em 1.2em;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

.wp-block-button__link:hover {
  background-color: #005177;
}
