html {
    font-family: 'Varela Round', 'Segoe UI', sans-serif;
    font-weight: normal;
}


:root {
  --text: #000;
  --background: #c2fbff;
  --link: #da0083;
  --card-title-background: #ffe3f0;
  --box-shadow: 5px 5px black;
  --font: 'Varela Round';
  --font-weight: 600;
  --font-size-h2: 1.8em;
}

[data-theme="dark"] {
  --text: #000;
  --background: #fafafa;
  --box-shadow: 5px 5px 12px #ddd;
  --card-title-background: #fff;
  --font: 'Montserrat';
  --font-weight: 600;
  --font-size-h2: 1.6em;
}

body {
  color: var(--text);
  background-color: var(--background);
}

h1 {
  margin:  0px;
  font-size: 2.3em;
  font-family: var(--font);
  font-weight: var(--font-weight);
}

h2 {
  font-size: var(--font-size-h2);
  font-family: var(--font);
}

p {
  font-size: 1.1em;
}

ul {
  list-style: none;
  overflow: hidden;
  margin: 12px;
  padding: 0px;
}

li {
  float: left;
  margin-left: 8px;
  margin-right: 8px;
}

a {
  text-decoration: none;
  color: var(--link) ;
}

.flex-container {
	display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.column {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
  max-width: 30rem;
}


.break {
  flex-basis: 100%;
  height: 0;
}


.card {
  padding: 12px;
  margin: 12px;
  max-width: 25rem;
  background-color: white;
  border-radius: 5px;
  box-shadow:  var(--box-shadow);
  transition: .5s;
  align-self: flex-start;
  flex-direction: row;
  justify-content: center;

}
.card-title {
  background-color: var(--card-title-background);
}

.card-caption {
  max-width: 30rem;
}

.card-caption p {
  margin: 0px;
}

.portfolio-item {
  background-color: white;
  max-width: 26.5rem;
  height: 10rem;
  border-radius: 5px;
  box-shadow:  var(--box-shadow);
  transition: .5s;
  margin: 12px;
}

.portfolio-item a {
  color: black;
}
.portfolio-item img {
  float: left;
  height: 100%;
  width: 10rem;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  object-fit: cover;
}

.portfolio-item h2 {
  margin-left: 165px;
  width: 16rem;
}

.portfolio-item p {
  margin-left: 170px;
  color: #555
}

.portfolio-item:hover {
  transform: scale(1.03);
  cursor: pointer;
}

.portfolio-card {
  background-color: white;
  max-width: 25.4rem;
  margin: 12px;
  height: 3rem;
  box-shadow: var(--box-shadow);
  border-radius: 5px;
  padding-left: 20px;
  padding-top: 5px;

}

.portfolio-card h2 {
  font-family: var(--font);
  margin: 0px;
  margin-top: 5px;
}

.bubbles p {
  display: inline-block;
  font-size: .9em;
  background-color: #ffaada;
  padding: 8px;
  border-radius: 16px;
  margin-right: 4px;
  margin-top: 0px;
}

.card-twitter {
  max-width: 35rem;
}
.title {
  font-family: 'PT Serif';
  margin-left: 12px;
}

#social {
position: sticky;
position: -webkit-sticky;
top: 12px;
}

.card:hover {
  transform: scale(1.03);
}

.fa-facebook-square {
  color: black;
}

.fa-twitter-square {
  color: black;
}

.fa-envelope-square {
  color: black;
}

.fa-linkedin {
  color: black;
}

.theme-switch-wrapper {
  display: flex;
  align-items: center;

}

.theme-switch {
  display: inline-block;
  height: 25px;
  position: relative;
  width: 49px;
}

.theme-switch input {
  display:none;
}

.slider {
  background-color: var(--link);
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;

}

.slider:before {
  bottom: 4px;
  content: "";
  height: 17px;
  width: 17px;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 15px 15px;
  left: 4px;
  position: absolute;
  transition: .3s;

}

input:checked + .slider {
  background-color: #ddd;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 34px;

}

.slider.round:before {
  border-radius: 50%;

}



@media only screen and (max-width: 1500px) {

    #social {
      position: static;
    }

}

@media only screen and (min-width: 1400px) {

  #social {
    position: fixed;
    right: 0px;
  }
}


@media only screen and (max-width: 600px) {


  .portfolio-item {
    width: 21.5rem;
    background-color: transparent;

  }
  .portfolio-item img {
    width: 100%;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
  }

  .top-priority {
    object-position: top;

  }

  .portfolio-item h2 {
    display: none;
  }

  .portfolio-item p {
    display: none;
  }

  .card {
    width: 20rem;
  }

}
