/*Variables*/
:root {
  --main-color: #13053f;
  --secondary-color: rgb(166, 140, 217);
  --accent-color: rgb(59, 59, 79);
  --button-color: rgb(139, 137, 137);
  --text-color: white;
  --secondary-text-color: black;
}

.small {
    font-size: 11px;
}

.italics {
    font-style: italic;
}

.nogap {
    line-height: 1;
}

.centered {
  text-align: center;
}

.indented {
  text-indent: 30px;
}

/*Resets*/
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  padding: 0;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

input, button, textarea, select {
    font: inherit;
}

/*Body Styling*/
body {
  background-color: var(--main-color);
  color: var(--text-color);
  font-size: 18px;
  line-height: 1.5;
}

/*Header Styling*/

.header {
    display: flex;
    justify-content: space-evenly;
    border: 3px solid var(--secondary-color);
    align-items: center;
    margin: 5px 5px;
    background-color: var(--accent-color);
}

.title {
  justify-self: center;
  align-self: center;
  font-size: 3rem;
}

.navlinks {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    position: relative;
}

.navlinks li {
    list-style: none;
}

.pagenav {
  margin-top: 10px;
  margin-left: 5px;
  margin-right: 5px;
  padding: 10px 0;
  display: flex;
  flex-direction: row;
  align-items: center;  
  justify-content: center;
  gap: 20px;
  border: 3px solid var(--secondary-color);
  background-color: var(--accent-color);
  position: sticky;
  top: 0;
}

.ryanimg {
  width: 150px;
  height: 150px;
  border: 2px solid var(--secondary-color);
  margin: 5px;
}

.toggle-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 31px;
    height: 21px;
}

.toggle-button .bar {
    background-color: white;
    height: 3px;
    width: 100%;
    border-radius: 10px;
}

/*Social Media/Icon/footer Styling*/
.footerdiv {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: 
    "personal socialnav"
    "disclaimers disclaimers";
  border: 3px solid var(--secondary-color);
  padding-top: 15px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  gap: 5px;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  margin: 5px 5px;
}

.socialnav {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
}

.socialIcons {
    width: 15px;
    fill: white;
}

.disclaimer {
  grid-area: disclaimers;
}

.personal {
  grid-area: personal;
  display: flex;
  gap: 10px;
}


/*link styling*/

a:link {
    color: white;
}

a:visited {
  color: var(--secondary-color)
}

a:hover {
    color: var(--button-color);
}

/* Cookie Styling */
.cookieBanner {
  position: fixed; bottom: 0;
  border: 2px solid var(--accent-color);
  background-color: white;
  color: black;
  display: none;
}

.cookieBanner * {
  margin: 0 auto;
  padding: 10px;
}

.cookieBanner > button {
  margin-left: 10px;
  margin-bottom: 10px;
 
}

.cookieBanner > button:hover {
  background-color: var(--accent-color);
}

.cookiePreferences {
  border: 2px solid var(--accent-color);
  background-color: white;
  color: black;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.cookiePreferences, .cookiePreferences *, .cookieBanner, .cookieBanner * {
  font-family: Georgia;
}

.cookiePreferences  > button {
  margin-left: 10px;
  margin-bottom: 10px;
}

.cookiePreferences * {
  margin: 0 auto;
  padding: 10px;
}

.cookiePreferences {
  display: none;
}

.cookiePreferences > button:hover {
  background-color: var(--accent-color);
}

.prefRow {
    display: flex;
    align-items: center;
    gap: 10px;
}

/*Services Page Styling*/
h3.centered{
  margin-top: 20px;
  margin-bottom: 20px;
}

.description {
  width: 80%;
  margin: 0 auto;
}

.description p, .business-bullets{
  margin-bottom: 20px;
}

.business-bullets li {
  padding-bottom: 5px;
}

.gap {
  margin-top: 10px;
  margin-bottom: 10px;
}

.disclaimers {
  margin-top: 10px;
  margin-bottom: 10px;
}

/*Contact Us Styling*/
.formsubmittedbanner {
  background-color: var(--accent-color);
  border: 10px solid var(--secondary-text-color);
  border-radius: 10px;;
  text-align: center;
  width: 400px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 4px 8px 16px rgba(166, 140, 217, 0.8);
  display: none;
}

.formsubmittedbanner.active {
  display: block;
}

.formsubmittedbanner h4, .formsubmittedbanner h3  {
  padding-bottom:  5px;
}

.formsubmittedbanner h3 {
  padding-top: 5px;
}

.closebtn {
  margin-bottom: 5px;
  padding: 5px;
  width: 75px;
}

label {
  margin: 0.5rem auto;
  display: block;
}

fieldset {
  border: none;
  border-bottom: 3px solid var(--main-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 20px;
}

fieldset:last-of-type {
  border-bottom: none;
}

legend {
  margin: 10px auto;  
  padding: 0;
  text-align: center;
  width: 100%;
}

input:active, textarea:active {
  background-color: var(--accent-color);
}

input:focus::placeholder, textarea:focus::placeholder {
  color: transparent;
}

input, textarea {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid var(--text-color);
  background-color: var(--secondary-color);
  border-radius: 10px;
}

 input::placeholder, textarea::placeholder {
  color: var(--text-color);
  padding-left: 10px;
}

form {
  width: 60vw;
  max-width: 500px;
  min-width: 300px;
  margin: 0 auto;
}

.checkboxfield {
  margin: 15px;
}

.checkboxfield input[type="checkbox"] {
  order: -1;
  margin-right: 8px;
  width: auto;
}

.btn {
  width: 125px;
  height: 30px;
  padding: 0;
  display: block;
  margin: 30px auto;
  background-color: var(--button-color);
  color: var(--text-color);
  border-radius: 20px;
}

.btn:hover {
  translate: transform(0.03s ease-in);
  background-color: var(--accent-color);
}

/*Portfolio Styling*/
.wireframe, .peakprosample, .fullbuildsample {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  width: 100%;
}

.wireframe a {
  display: block;
  max-width: 100%;
}

.wireframesample, .peakpro, .fullbuild {
  max-width: 100%;
  height: auto;
}

.wireframe > h2, .peakprosample > h2, .fullbuild > h2 {
  margin-bottom: 20px;
}

.wireframe > p, .peakprosample > p, .fullbuildsample > p {
  margin: 20px;
}

.scoresfbc {
  margin-top: 20px;
  width: 80%; 
}

.linkbutton {
  border: 2px solid var(--secondary-color);
  padding-top: 2px;
  padding-left: 7px;
  padding-right: 7px;
  background-color: var(--accent-color);
  border-radius: 10px;
  margin: 20px auto;
}

.whatwebuild {
  margin-top: 25px;
}

.note {
  margin: 5px auto;
  width: 80%;
  text-align: center;
}

/*Homepage Styling*/
.cta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: center;
  text-align: center;
}

.ctabackground {
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ctaone, .ctatwo, .ctathree {
  border: 3px solid var(--secondary-color);
  background-color: var(--accent-color);
  padding: 10px;
  margin: 5px;
}

.ctaone, .ctatwo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ctap {
  text-align: left;
  margin-top: 20px;
  margin-left: 5px;
  margin-right: 5px;
  line-height: 1.75;
  width: 80%;
  justify-self: center;
}

.ctaonehero, .ctatwohero {
  border: 3px solid var(--secondary-color);
  border-radius: 10px;
  margin-top: 5px;
  max-width: 300px;
  align-self: center;
  justify-self: center;
}

.ctathree {
  border: 3px solid var(--secondary-color);
  background-color: var(--accent-color);
  padding: 10px;
  align-self: center;
  display: flex;
  flex-direction: column;

}

.ctabutton, .ctabutton1, .ctabutton2, .ctabutton3 {
  padding: 5px;
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 4px 8px 16px rgba(166, 140, 217, 0.3);
}

.ctabutton1, .ctabutton2, .ctabutton3 {
  margin: 30px;
  padding: 8px;
}

.ctabutton:hover, .ctabutton1:hover, .ctabutton2:hover, .ctabutton3:hover {
  background-color: var(--button-color);
}

/*Blog Home Styling*/
.articleCards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 10px;
}

.articleone, .articletwo, .articlethree, .articlefour, .articlefive, .articlesix {
  border: 5px solid var(--secondary-color);
  height: 200px;
  width: 200px;
  padding: 10px;
  margin-top: 30px;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 30px;
  font-weight: 1000;
  font-size: 20px;
  text-align: center;
}

.articlefour, .articlefive, .articlesix {
  margin-bottom: 70px;
}

.nounderline {
  text-decoration: none;
}

/*Post  Styling*/

.sources {
  margin: 0 auto;
  font-size: 10px;
  font-style: italic;
}

.italics {
  font-style: italic;
}

.blogposts {
  max-width: 80%;
  margin: 0 auto;
}

article {
  line-height: 1.75;
}

article p {
  margin-bottom: 10px;
}

article li {
  margin-bottom: 10px;
}
.notmono, .notmono * {
  font-family: Georgia;
}

.legaldocs {
  margin: 20px 10px;
  line-height: 3;
}

table {
  border: 2px solid var(--accent-color);
  font-size: medium
}

td, th {
  border-left: 2px solid var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

td:first-child, th:first-child {
  border-left: none;
}

tr:last-child td {
  border-bottom: none;
}

.tablegap {
  margin-bottom: 10px;
}

/*Media Queries*/

@media (max-width: 800px) {
    .toggle-button {
        display: flex;
    }

    .header {
        justify-content: center;
    }

    .navlinks {
      display: none;
      width: 100%;
    }
    
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navlinks ul {
        width: 100%;
        flex-direction: column;
    }

    .navlinks li {
        text-align: center;

    }

    .navlinks li a {
        padding: 0.5rem 1rem;
    }

    .navlinks.active {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: center;
    }

    .title.active {
      display: none;
    }

    .ryanimg.active {
      display: none;
    }

    .pagenav {
      gap: 10px;
      padding: 10px;
    
    }

    .ryanimg {
      display: none;
    }

   /* .peakpro, .wireframesample, .fullbuild {
      width: 400px;
      height: 600px;
    } */
}

@media (min-width: 800px) and (max-width: 836px) {
    /* tablet adjustments here */
    .title {
      text-align: center;
    }

    .pagenav {
      gap: 10px;
      padding: 10px;
    }

    .navlinks.active {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 580px) {
  .navlinks {
    flex-wrap: wrap;
    padding-right: 5px;
  }
  .pagenav {
    flex-wrap: wrap;
  }
}

@media (max-width: 390px) {
  .title {
    font-size: 2rem;
  }
}

@media (max-width: 720px) {
  .cta {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

}

@media (max-width: 490px) {
  .footerdiv {
    grid-template-columns: 1fr;
    grid-template-areas:
      "personal"
      "socialnav"
      "disclaimers";
    justify-items: center;
  }

  .disclaimer {
    text-align: center;
  }

  .personal {
    text-align: center;
  }
}