* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.3rem;
}

h1 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 28px;
  color: rgb(25, 25, 25);
}

h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3rem;
    color: rgb(25, 25, 25);
    text-decoration: none;
    /* text-transform: uppercase; */
}

p {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.3rem;
    margin-bottom: 0.5rem;
    margin-top: 0rem;
}

.brand-name {
  letter-spacing: 0.2em;
    line-height: 1.8rem;
}

.brand-name a {
    font-family: 'Roboto Condensed', sans-serif;
  font-size: 28px;
  color: rgb(25, 25, 25);
    text-decoration: none;
}


/* Style the side navigation */
.sidenav {
    height: 100%;
    width: 230px;
    position: fixed !important;
    top: 3vw;
    left: 5vw;
    z-index: 1;
    background-color: #ffffff;
    overflow: auto;
}

.sidenav-links {
  display: flex;
  flex-direction: column;
}

/* Side navigation */
.sidenav-links a {
  color: rgb(25, 25, 25);
  font-weight: 400;
  padding: 16px;
  text-decoration: none;
  display: block;
}

/* Change color on hover */
.sidenav a:hover {
  color: rgb(47, 113, 90);
}

/*social media links in the side nav */
.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
}

.sidenav-links .social-links a {
  display: inline-flex;
  padding: 0;
}

.social-links a img {
  width: 18px;
  height: 18px;
}

/* Style the content */
.content {
    margin-left: calc(230px + 8vw);
    margin-right: 10vw;
    padding: 3vw;
}

.content .headshot {
    width: 40%;
    max-width: 400px;
    height: auto;
    padding-right: 3vw;
    padding-bottom: 3vw;
    float:left;
}

/* Portfolio cards */
.card {
    margin-bottom: 20px;
    padding: 20px 0px 20px 20px;
}

.card h2 {
    margin: 0;
}

.card a {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgb(25, 25, 25);
    text-decoration: none;
    /* text-transform: uppercase; */
}

.card img {
    width: 100%;
    height: auto;
    border-style: solid;
    border-width: 1px;
    border-color: #30303043;
    border-radius: 5px;
}


.case-study {
    padding: 10px 30px 30px 30px;
    border-style: solid;
    border-width: 1px;
    border-color: #30303043;
}

.case-study img {
    width: 100%;
    height: auto;
    border-style: solid;
    border-width: 1px;
    border-color: #30303043;
    border-radius: 5px;
}

.back-button {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgb(25, 25, 25);
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* button to contact me */
.button {
  line-height: 1;
  text-decoration: none;
  position: fixed !important;
  bottom: 3vw;
  left: 3vw;
  z-index: 10;
  display: inline-flex;
  border: none;
  cursor: pointer;
  align-items: center;
  gap: 0.75rem;
  background-color: #d1d1d1;
  color: #000000;
  border-radius: 10rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 0.6rem 1.2rem;
  padding-left: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.3s;
}

.button__icon-wrapper {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  position: relative;
  color: rgb(25, 25, 25);
  background-color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.button:hover {
  background-color: #c3decc;
}

.button:hover .button__icon-wrapper {
  color: rgb(33, 33, 33);
}

.button__icon-svg--copy {
  position: absolute;
  transform: translate(-150%, 150%);
}

.button:hover .button__icon-svg:first-child {
  transition: transform 0.3s ease-in-out;
  transform: translate(150%, -150%);
}

.button:hover .button__icon-svg--copy {
  transition: transform 0.3s ease-in-out 0.1s;
  transform: translate(0);
}

@media screen and (max-width: 800px) {
    .sidenav {
        width: 100%;
        height: 160px;
        text-align: center;
        position: relative;
        top: 0;
        left: 0;
        padding: 0;
        /* border-bottom: #30303043 1px solid; */
        box-shadow: 0px 2px 5px #00000070;
    }

    .sidenav-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .sidenav-links a{
        padding-top: 0;
        padding-bottom: 0;
        margin: 0;
    }

    .social-links {
        gap: 30px;
        padding-top: 2px;
    }
    .content {
        margin-left: 0;
        margin-right: 0;
        margin-top: 170px;
    }

    .card {
        padding: 0px 10px 0px 10px;
    }

    .card img {
        width: 100%;
        height: auto;
        margin: 0;
        border-style: solid;
        border-width: 1px;
        border-color: #30303043;
        border-radius: 5px;
    }
    .case-study {
        padding: 10px 20px 20px 20px;
        border-style: solid;
        border-width: 1px;
        border-color: #30303043;
    }
}
@media screen and (max-width: 400px) {
    p {
        height: 200px;
    }

    .content {
        margin-top: 200px;
    }
}
