:root {
  --mainColor: #fff8e1; /* Light Yellow */
  --secondaryColor: #ffffff;

  --borderColor: #f5e6c4; /* Light Orange/Yellow */

  --mainText: black;
  --secondaryText: #4b5156;

  --themeDotBorder: #24292e;
  --previewBg: #f5e6c4; /* Light Orange/Yellow */
  --previewShadow: #f0ead6;

  --buttonColor: #f0ad4e; /* Orange */
}

html,
body {
  padding: 0;
  margin: 0;
}

body * {
  transition: 0.3s;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
  color: var(--mainText);
  font-family: "Antic Slab", serif;
}

p,
li,
span,
label,
input,
textarea {
  color: var(--secondaryText);
  font-family: "Catamaran", sans-serif;
}

a {
  text-decoration: none;
  color: var(--buttonColor);
}

ul {
  list-style: none;
}

h1 {
  font-size: 56px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 28px;
}

h4 {
  font-size: 24px;
}

h5 {
  font-size: 20px;
}

h6 {
  font-size: 16px;
}

.s1 {
  background-color: var(--mainColor);
  border-bottom: 1px solid var(--borderColor);
  overflow: auto;
}

.s2 {
  background-color: var(--secondaryColor);
  border-bottom: 1px solid var(--borderColor);
  overflow: auto;
}

.main-container {
  width: 1200px;
  margin: 0 auto;
}

.greeting-wrapper {
  display: grid;

  text-align: center;
  align-content: center;
  min-height: 8em;
}

.intro-wrapper {
  background-color: var(--secondaryColor);
  border: 1px solid var(--borderColor);
  border-radius: 5px 5px 5px 5px;

  -webkit-box-shadow: 10px 10px 22px -8px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 10px 10px 22px -8px rgba(0, 0, 0, 0.75);
  box-shadow: 10px 10px 22px -8px rgba(0, 0, 0, 0.75);

  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 3em 30em;
  grid-template-areas:
    "nav-wrapper nav-wrapper"
    "left-column right-column";
  margin: 2rem 0 2rem 0;
}

.nav-wrapper {
  grid-area: nav-wrapper;
  border-bottom: 1px solid var(--borderColor);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--mainColor);
  border-radius: 5px 5px 0 0;
}

#navigation a {
  color: var(--mainText);
}

#navigation {
  display: flex;
  flex-direction: row;
}

#navigation li {
  padding-left: 15px;
  padding-right: 15px;
  margin: 0;
}

.dots-wrapper {
  display: flex;
  padding: 10px;
}

#dot-1 {
  background-color: #fc6058;
}

#dot-2 {
  background-color: #fec02f;
}

#dot-3 {
  background-color: green;
}

.browser-dot {
  background-color: black;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  margin: 5px;

  -webkit-box-shadow: 15px 15px 12px -10px rgba(69, 50, 69, 1);
  -moz-box-shadow: 15px 15px 12px -10px rgba(69, 50, 69, 1);
  box-shadow: 15px 15px 12px -10px rgba(69, 50, 69, 1);
}

.left-column {
  grid-area: left-column;
  display: grid;
  align-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

#profile_pic {
  display: block;
  border-radius: 10rem;
  margin: 0 auto;
  height: 200px;
  width: 200px;
  object-fit: cover;
  border: 2px solid var(--borderColor);
}

#theme-options-wrapper {
  display: flex;
  justify-content: center;
}

.theme-dot {
  height: 30px;
  width: 30px;
  background-color: black;
  border-radius: 50%;

  margin: 5px;
  border: 2px solid var(--themeDotBorder);

  -webkit-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);

  cursor: pointer;
}

.theme-dot:hover {
  border-width: 5px;
}

#light-mode {
  background-color: #fff;
}

#blue-mode {
  background-color: #192734;
}

#green-mode {
  background-color: #78866b;
}

#purple-mode {
  background-color: #7e4c74;
}

#setting-notes {
  font-size: 12px;
  font-style: italic;
  text-align: center;
}

.right-column {
  grid-area: right-column;
  display: grid;
  align-content: center;

  padding-top: 20px;
  padding-bottom: 20px;
}

#preview-shadow {
  background-color: var(--previewShadow);
  width: 300px;
  height: 180px;
  padding-left: 30px;
  padding-top: 30px;
  top: -100px;
}

#preview {
  width: 300px;
  border: 1.5px solid var(--buttonColor);
  background-color: var(--previewBg);
  padding: 15px;
  position: relative;
}

#preview > h3 {
  margin-top: 1rem;
  padding-top: none;
}

.corner {
  width: 7px;
  height: 7px;
  border-radius: 50%; /* make it circle */
  border: 1.5px solid var(--buttonColor);
  background-color: #fff;
  position: absolute;
}

#corner-tl {
  top: -5px;
  left: -5px;
}

#corner-tr {
  top: -5px;
  right: -5px;
}

#corner-bl {
  bottom: -5px;
  left: -5px;
}

#corner-br {
  bottom: -5px;
  right: -5px;
}

.about-wrapper {
  display: grid;
  gap: 100px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  padding-top: 50px;
  padding-bottom: 50px;
}

.skills {
  display: flex;
  justify-content: center;
  background-color: var(--previewShadow);
  transition: all 0.4s ease-in-out 0s;
  outline: none;
  text-transform: capitalize;
  margin: 10px;
}

.skills ul {
  margin-left: 10px;
  padding-left: 40px;
  list-style-type: none;
}

.skills:hover {
  color: var(--buttonColor);
  text-decoration: none;
}

.social-links {
  display: grid;
  align-content: center;
  text-align: center;
}

.success-message {
  color: green;
  font-weight: bold;
}

#social-img {
  width: 100%;
  padding: 5px;
}

.post-wrapper {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, 320px);
  justify-content: center;
  padding-bottom: 50px;
}

.post {
  border: 1px solid var(--borderColor);

  -webkit-box-shadow: 15px 15px 12px -10px rgba(69, 50, 69, 1);
  -moz-box-shadow: 15px 15px 12px -10px rgba(69, 50, 69, 1);
  box-shadow: 15px 15px 12px -10px rgba(69, 50, 69, 1);
}

.thumbnail {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-preview {
  background-color: white;
  padding: 15px;
}

.post-title {
  color: black;
  padding-top: 10px;
  margin: 0%;
  justify-content: center;
}

.post-intro {
  color: #4b5156;
  font-size: 15px;
}

.post-project {
  background-color: white;
  padding: 1rem 1rem 0rem 1rem;
  margin-bottom: 0;
  object-fit: cover;
}

.live-code {
  background-color: white;

  display: flex;
  position: relative;
  justify-content: space-around;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0;
}

.live-code a {
  color: var(--buttonColor);
}

.footer-wrapper {
  background-color: var(--secondaryColor);
  border: 1px solid var(--borderColor);
  border-radius: 5px 5px 5px 5px;

  -webkit-box-shadow: 10px 10px 22px -8px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 10px 10px 22px -8px rgba(0, 0, 0, 0.75);
  box-shadow: 10px 10px 22px -8px rgba(0, 0, 0, 0.75);
  margin: 2rem;
}

#contact-wrapper {
  min-height: 10vh;
  min-width: 10vh;
  align-items: center;
  display: flex;
  margin: 2rem;
  flex-wrap: wrap;
}

.follow-me {
  flex: 1 1 25rem;
  margin: 0 0rem 0 0rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-me {
  flex: 1 1 25rem;
  display: flex;
  flex-direction: column;
}

.contact-me h3 {
  display: flex;
  align-items: center;
  justify-content: center;
}

#contact-form {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--borderColor);
  border-radius: 5px;
  background-color: var(--mainColor);
}

#contact-form label {
  line-height: 1.8em;
  padding-left: 15px;
}

#contact-from textarea {
  min-height: 2rem;
  font-size: 1rem;
}

.input-field {
  background-color: var(--secondaryColor);
  border-radius: 5px;
  border: 1px solid var(--borderColor);
  font-size: 1rem;
  margin: 0px 5px 5px 5px;
}

#submit-btn {
  box-sizing: border-box;
  background-color: var(--buttonColor);
  text-decoration: none;
  background-color: transparent;
  transition: all 0.4s ease-in-out 0s;
  outline: none;
  text-transform: capitalize;
  position: relative;
  z-index: 1;
  padding: 0px 15px;
  letter-spacing: 1px;
  border-radius: 1px;
  overflow: hidden;
  display: inline-block;
  border: 2px solid var(--buttonColor);
  padding: 5px;
}

#submit-btn:hover {
  color: var(--buttonColor);
  text-decoration: none;
}

.footer-icon {
  font-size: 1.5rem;
  color: var(--mainText);
  justify-content: space-around;
  margin: 1rem;
}

.bmc {
  margin-top: 2rem;
  color: var(--buttonColor);
}

.copyright {
  background-color: var(--borderColor);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Uses-machine style */
.affiliate-intro {
  margin-bottom: 3rem;
}

.spec-list {
  margin: 1.5rem 2rem;
}

/* --- CTA Section --- */
.cta-wrapper {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--buttonColor);
    border-radius: 8px;
    margin-top: 30px;
}

.cta-wrapper h2 {
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--buttonColor);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cta-button:hover {
    background-color: #f5e6c4;
    color: var(--buttonColor);
}

@media screen and (max-width: 1200px) {
  .main-container {
    width: 95%;
  }
}

/* adjust the view for 800px less windows --> 1 grid */
@media screen and (max-width: 800px) {
  .intro-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: 3em 30em;
    grid-template-areas:
      "nav-wrapper"
      "left-column"
      "right-column";
  }

  .right-column {
    justify-content: center;
    position: relative;
    top: -50px;
  }
}