:root {
	--grey: rgb(90, 90, 90);
	/* Columbia Blues: https://visualidentity.columbia.edu/content/colors-1 */
	--blue1: rgb(2,33,105);
	--blue2: rgb(0,51,160);
	--blue3: rgb(0,114,206);
	--blue4: rgb(108,172,228);
	--pink1: #F9564F;
  --columbiaBlue: #4f90f9;
 }

html, p{
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--grey);
}

body {
    margin: 0;
    padding: 0;
}
p{
    margin: 0.2em;
}

ol, ul {
    list-style: none;
}

ul {
    list-style-position: inside;
    list-style-type: none;
}

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

i {
    font-style: italic;
}

h1 {
    font-weight: 500;
    color: var(--blue1);
    padding-left: 25px;
}

b {
    font-weight: 500;
}

strong {
    font-weight: 600;
}

footer {
  text-align: center;
  padding: 20px;
  position: relative;
}


/**************************************************/

#languages {
    font-weight: 500
}

#profile {
    padding: 90px 30px 10px 30px;
    border-bottom: 2px solid #ddd;
    display: flex;
    align-items: stretch;
}

#profile-pic {
    margin-right: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#profile img {
    width: 400px;
    margin-bottom: 18px;
}

#profile-intro {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#profile-name {
    font-size: 3em;
    line-height: 1em;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--blue1);
    text-align: center;
}


#profile-email {
    margin-bottom: 5px;
    color: var(--blue1);
    text-align: center;
}
#profile-location {
    color: var(--blue1);
}

#profile p {
    margin-bottom: 20px;
}

.custom-video {
  border: 3px solid var(--blue1) !important;
  border-radius: 5px;
}

.divider {
    width: 100%;
    border-bottom: 2px solid #ddd;
}

.ec-thumb {
  width: 10em;
  height: 7em;
  float: left;
  padding-left: 25px;
  padding-right: 50px;
  padding-bottom: 25px;
}

.research-thumb {
    width: 20em;
    height: 20em;
    float: left;
    margin-top: 0px;
    padding-left: 25px;
    padding-right: 30px;
    margin-bottom: 25px;
}

.research-thumb img {
    width: 100%;
}

.research-proj-title {
    color: var(--blue1);
    font-weight: 400;
}

.research-thumb video {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border: 2px solid black;
}

.tech-stack {
    font-weight: 500;
    margin-bottom: 10px;
}
.spaced-link {
    margin-right: 10px;
    margin-left: 10px;
}

.spaced-link:first-child {
    margin-left: 0;
}

.spaced-link:last-child {
    margin-right: 0;
}

.badge {
  width: 40px;
  height: 15px;
  display: inline-block;
  float: left;
  border-radius: 2px;
  margin-left: 0px;
  margin-top: 5px;
  margin-right: 5px;
  margin-bottom: 0px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  #profile {
    padding: 30px 20px 10px 20px;
    flex-direction: column;
    align-items: center;
  }

  #profile-pic {
    margin-right: 0;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #profile img {
    width: 250px;
    max-width: 100%;
  }

  #profile-intro {
    width: 100%;
    text-align: center;
  }

  #profile-name {
    font-size: 2.2em;
  }

  h1 {
    padding-left: 20px;
    font-size: 1.8em;
  }

  .research-thumb {
    width: 100%;
    height: auto;
    float: none;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 20px;
    text-align: center;
  }

  .research-thumb video {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border: 2px solid black;
  }

  .research-thumb img {
    width: 100%;
    max-width: 200px;
    height: auto;
  }

  .ec-thumb {
    width: 100%;
    height: auto;
    float: none;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 20px;
    text-align: center;
  }

  .ec-thumb img {
    width: 120px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  #profile {
    padding: 20px 15px 10px 15px;
  }

  #profile img {
    width: 200px;
  }

  #profile-name {
    font-size: 1.8em;
  }

  h1 {
    padding-left: 15px;
    font-size: 1.5em;
  }

  .research-thumb {
    padding-left: 15px;
    padding-right: 15px;
  }

  .ec-thumb {
    padding-left: 15px;
    padding-right: 15px;
  }

  .spaced-link {
    margin-right: 5px;
    margin-left: 5px;
    font-size: 0.9em;
  }
}


/* Additional mobile styles for project titles */
@media (max-width: 768px) {
  .research-proj-title {
    display: block;
    clear: both;
    margin-top: 10px;
    margin-bottom: 5px;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }

  .tech-stack {
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 10px;
  }

  #research > div {
    margin-bottom: 25px;
    overflow: hidden;
  }

  /* Center extracurricular activities content on mobile */
  .ec-thumb + .research-proj-title {
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 10px;
  }

  .ec-thumb + .research-proj-title + p {
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .research-proj-title {
    padding-left: 15px;
    padding-right: 15px;
  }

  .tech-stack {
    padding-left: 15px;
    padding-right: 15px;
  }

  .ec-thumb + .research-proj-title {
    padding-left: 15px;
    padding-right: 15px;
  }

  .ec-thumb + .research-proj-title + p {
    padding-left: 15px;
    padding-right: 15px;
  }
}
