@import "variables";
@import "mixins";

body {
  font-size: var(--ftm_p_font_size_setting, 16px);
  font-family: $font-default;
}

address,
blockquote,
body,
dd,
dl,
dt,
fieldset,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
html,
iframe,
legend,
li,
ol,
p,
pre,
textarea,
ul {
  border: 0;
  font-size: 100%;
  font-style: inherit;
  font-weight: inherit;
  margin: 0;
  outline: 0;
  padding: 0;
  vertical-align: baseline;
}

a {
  text-decoration: none;
}

ol,
ul {
  margin: 0 0 1.5em 3em;
}

table,
td,
th {
  border: 1px solid #dddddd;
}

td,
th {
  padding: 8px;
  border-width: 0 1px 1px 0;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  border-width: 1px 0 0 1px;
  margin: 0 0 1.5em;
  width: 100%;
}

.site_content_wrapper {
  max-width: var(--blog_content_width, 1124px);
  width: 100%;
  margin: auto;
  padding: 0px 10px;
  img {
    max-width: 100%;
  }
}

.content_panel {
  img {
    max-width: 100%;
  }
}

.ftm_archive_content_wrapper,
.ftm_blog_content_wrapper,
.ftm_page_content_wrapper,
.ftm_single_content_wrapper {
  width: 100%;
  margin: auto;
  nav {
    &.rank-math-breadcrumb {
      padding-top: 10px;
      > p {
        padding: 0px;
        line-height: 12px;
        font-size: 14px;
      }
    }
  }
}

.ftm_page_content_wrapper {
  max-width: var(--pages_content_width, 1124px);
}

.ftm_blog_content_wrapper {
  max-width: var(--blog_content_width, 1124px);
}

.ftm_archive_content_wrapper {
  max-width: var(--archives_content_width, 1124px);
}

.ftm_single_content_wrapper {
  max-width: var(--pages_content_width, 1124px);
}

.ftm_blog_content_wrapper,
.ftm_single_content_wrapper,
.ftm_archive_content_wrapper {
  display: flex;
  flex-direction: column;

  &.has_sidebar {
    display: flex;
    > .content_panel {
      width: 100%;
      max-width: 100%;
      padding: 0px;
    }
    > .sidebar_panel {
      width: 100%;
      max-width: 100%;
      padding: 0px;

      .widget {
        list-style: none;

        &::marker {
          display: none;
        }
      }
    }

    @include md {
      flex-direction: row;

      > .content_panel {
        width: 100%;
        max-width: 66.666667%;
        padding: 0 30px 0 0;
      }
      > .sidebar_panel {
        width: 100%;
        max-width: 33.333333%;
        padding: 0 0 0 1rem;

        .widget {
          &::marker {
            display: none;
          }
        }
      }
    }
  }
}

p {
  font-family: var(--ftm_p_font, $font-default);
  line-height: 26px;
  margin-bottom: 10px;
  /*color: var(--ftm_p_color, $black);*/
  /*text-align: justify;*/
  /*@include xs {
    font-size: var(--ftm_p_font_size_setting, 16px);
    line-height: 22px;
  }
  @include md {
    font-size: var(--ftm_p_font_size_setting, 16px);
    line-height: 26px;
  }*/
  &.affiliate--disclosure {
    border-top: 1px double;
    border-bottom: 1px double;
    padding: 10px;
    border-color: #006ba6;
    font-size: 15px;
    font-style: italic;
    margin-top: 10px;
  }
}

h1 {
  width: 100%;
  max-width: 1770px;
  margin: 40px auto 10px auto;
  font-family: var(--ftm_h1_font, $font-default);
  font-size: var(--ftm_h1_font_size_setting, 32px);
  color: var(--ftm_h1_color, $black);
  font-weight: bold;
  position: relative;
  text-align: center;
  display: table;
  line-height: 24px;

  @include xs {
    font-size: 28px;
  }
  @include sm {
    font-size: var(--ftm_h1_font_size_setting, 24px);
  }
  @include md {
    font-size: var(--ftm_h1_font_size_setting, 32px);
    text-align: left;
  }
}

h2 {
  width: 100%;
  max-width: 1770px;
  margin: 15px auto;
  font-family: var(--ftm_h2_font, $font-default);
  font-size: var(--ftm_h2_font_size_setting, 24px);
  color: var(--ftm_h2_color, $black);
  font-weight: bold;
  text-align: left;
  overflow: hidden;
  position: relative;
  display: table;

  @include xxs {
    font-size: 28px;
  }
  @include md {
    font-size: var(--ftm_h2_font_size_setting, 24px);
  }
}

h3 {
  width: 100%;
  max-width: 1770px;
  margin: 15px auto;
  font-family: var(--ftm_h3_font, $font-default);
  font-size: var(--ftm_h3_font_size_setting, 18px);
  color: var(--ftm_h3_color, $black);
  font-weight: bold;
  text-align: left;
  overflow: hidden;
  position: relative;
  display: table;

  @include xxs {
    font-size: 28px;
  }
  @include md {
    font-size: var(--ftm_h3_font_size_setting, 18px);
  }
}

h4 {
  width: 100%;
  max-width: 1770px;
  margin: 15px auto;
  font-family: var(--ftm_h4_font, $font-default);
  font-size: var(--ftm_h4_font_size_setting, 18px);
  color: var(--ftm_h4_color, $black);
  font-weight: bold;
  text-align: left;
  overflow: hidden;
  position: relative;
  display: table;

  @include xxs {
    font-size: 16px;
  }
  @include md {
    font-size: var(--ftm_h4_font_size_setting, 18px);
  }
}

h5 {
  width: 100%;
  max-width: 1770px;
  margin: 10px auto;
  font-family: var(--ftm_h5_font, $font-default);
  font-size: var(--ftm_h5_font_size_setting, 15px);
  color: var(--ftm_h5_color, $black);
  font-weight: bold;
  text-align: left;
  overflow: hidden;
  position: relative;
  display: table;

  @include xxs {
    font-size: 13px;
  }
  @include md {
    font-size: var(--ftm_h5_font_size_setting, 15px);
  }
}

h6 {
  width: 100%;
  max-width: 1770px;
  margin: 10px auto;
  font-family: var(--ftm_h6_font, $font-default);
  font-size: var(--ftm_h6_font_size_setting, 13px);
  color: var(--ftm_h6_color, $black);
  font-weight: bold;
  text-align: left;
  overflow: hidden;
  position: relative;
  display: table;

  @include xxs {
    font-size: 12px;
  }
  @include md {
    font-size: var(--ftm_h5_font_size_setting, 13px);
  }
}
