:root {
  --background-color: #f4effa;
  --title-color: #9b72cf;
  --showcase-color: white;
  --showcase-header-color: black;
  --showcase-sub-color: #a5a5a5;
  --showcase-blurb-color: grey;
  --git-button-color: #c8b1e4;
}

[data-theme="dark"] {
  --background-color: #312e40;
  --title-color: white;
  --showcase-color: #46425c;
  --showcase-header-color: white;
  --showcase-sub-color: rgba(255, 255, 255, 0.76);
  --showcase-blurb-color: rgba(255, 255, 255, 0.555);
  --git-button-color: #3d3447;
}

html {
  padding: 0;
  margin: 0;
}

body {
  background-color: var(--background-color);
  width: auto;
  margin: 0 auto;
  padding: 0;
}

.page-title{
  text-align: center;
}

.page-title > h1 {
  line-height: 1.8;
  font-size: 50px;
  color: var(--title-color);
  display: inline-block;
  font-family: Spartan;
  margin: 125px 0 0;
}

.page-title > p {
  line-height: 1.8;
  color: var(--title-color);
  font-family: Allerta;
  margin: 20px 2% 10px 2%;
}

.theme-switch-wrapper {
  align-items: center;
}

.theme-switch {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
}

.theme-switch input {
  display:none;
}

.slider {
  background-color: #b59ad1;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}

.slider:before {
  background-color: white;
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 26px;
}

input:checked + .slider {
  background-color: #43374d;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.showcase-grid {
  display: grid;
  grid-auto-rows: 2fr;
  grid-template-columns: repeat(2, 1fr);
  margin: 20;
  padding: 1% 5% 1% 5%;
}

@media only screen and (max-width: 768px) {
  .showcase-grid {
    display: grid;
    grid-auto-rows: 2fr;
    grid-template-columns: 1fr;
    margin: 20;
    padding: 1% 5% 1% 5%;
  }
}

.showcase-item-main{
  text-align: center;
  background-color: var(--showcase-color);
  color: var(--showcase-header-color);
  font-family: Roboto;
  border-radius: 20px;
  font-size: 20px;
  margin: 5%;
  padding: 1% 5% 2% 5%;
}

.showcase-item-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.showcase-item-main > p {
  font-family: Mono Sans;
  color: var(--showcase-blurb-color);
}

.showcase-item-main > p2 {
  font-family: Mono Sans;
  color: var(--showcase-sub-color);
}

.showcase-item-main > h1 {
  font-size: 40px;
}

.personal-title {
  font-size: 50px;
  color: var(--title-color);
  text-align: center;
  font-family: Spartan;
}

.showcase-item {
  text-align: center;display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--showcase-color);
  color: var(--showcase-header-color);
  font-family: Roboto;
  border-radius: 20px;
  font-size: 20px;
  margin: 2%;
  padding: 5%;
}

.showcase-item > p {
  font-family: Mono Sans;
  color: var(--showcase-blurb-color);
}

.showcase-item > p2 {
  font-family: Mono Sans;
  color: var(--showcase-sub-color);
}

.button {
  text-decoration: none;
  text-align: center;
  background-color: var(--git-button-color);
  color: white;
  border-radius: 50px;
  padding: 20px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  font-size: 16px;
  margin: 4px 2px;
}

.button svg {
  height: 18px;
  width: 18px;
  margin-right: 10px;
  fill: currentColor;
}

.button:focus,
.button:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  transition: transform 120ms ease, filter 120ms ease;
}

.showcase-item:hover,
.showcase-item-main:hover {
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.showcase-item, .showcase-item-main {
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.tech-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  background: rgba(190, 144, 255, 0.14);
  color: var(--showcase-sub-color);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.card-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  flex-wrap: wrap; /* allow wrapping on small screens */
}

@media only screen and (max-width: 420px) {
  .button {
    width: 80%;
  }
  .card-actions {
    gap: 6px;
  }
}

.showcase-item .button,
.showcase-item-main .button {
  margin-top: auto;
  align-self: center; 
}

footer {
  background-color: #242424;
  color: white;  
  text-align: center;
  font-family: Open Sans;
  margin: 0;
}


.site-source-cta {
  text-align: center;
  margin: 0 5% 30px 5%;
  padding: 16px;
  background-color: var(--showcase-color);
  border-radius: 12px;
  color: var(--showcase-header-color);
}
.site-source-cta p {
  margin: 0 0 12px 0;
  color: var(--showcase-sub-color);
}

img {
  width: 50px;
  margin: 1% 0 1% 0;
  vertical-align: center;
}

