body,
html {
  font-family: "Host Grotesk", sans-serif !important;
  font-optical-sizing: auto;
  font-style: normal;
  margin: 0;
  background-color: #f2f0ef;
  position: relative;
}

body {
  transition: background-color .5s ease, color .5s ease;
}

body.light-theme {
  background-color: #f2f0ef;
  color: black;
}

body.light-theme .story {
  color: black;
}

body.dark-theme {
  background-color: #181817;
  color: white;
}

body.dark-theme .story {
  background-color: #181817;
  color: white;
}

body.dark-theme .collapsible {
  transition: background-color 0.5s ease, color 0.5s ease;
  background-color: #f2f0ef;
  color: black;
}

body.dark-theme .collapsible:hover {
  background-color: #797877;
}

body.dark-theme a {
  color: #78c0ff;
}
body.dark-theme .history,
body.dark-theme .education,
body.dark-theme .projects {
  background-color: #3b3b3b;
}

h5,
p {
  margin-top: 0;
}

.theme-toggle {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1000;
}

.theme-toggle img {
  width: 100%;
  height: 100%;
}

.mode {
  width: 120px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px;
}

.sun, .moon {
  width: 20px;
  height: 20px;
  margin: 0 5px;
}

.switch {
  position: relative;
  width: 40px;
  height: 20px;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: black;
  -webkit-transition: 0.6s;
  transition: 0.6s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: #f2f0ef;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 50%;
}

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

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

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

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

.profile-image {
  position: relative;
  display: flex;
  flex-basis: 100%;
  flex: 1;
  align-items: center;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.accordianimage {
  text-align: center;
}

.deteng,
.chrome,
.keylogger,
.atomicredteam,
.laptop {
  width: calc(75% - 36px);
  max-height: 100%;
  height: auto !important;
  display: inline-block;
}

.intro {
  position: center;
  text-align: center;
  margin-top: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.row {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  width: 100%;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
  padding-top: 10px;
}

.col {
  padding-right: 50px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 45%;
}

.contact {
  width: 100%;
  background: #797877;
  padding: 40px;
  box-sizing: border-box;
  color: white;
  margin-top: 5%;
}

.linkedin,
.github,
.medium {
  width: 30px;
  height: 30px;
}

.links {
  text-decoration: none;
}

.collapsible {
  background-color: #181817;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 90%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  font-family: "Host Grotesk", sans-serif !important;
  font-optical-sizing: auto;
  font-style: normal;
}

.active,
.collapsible:hover {
  background-color: #797877;
}

.collapsible:after {
  content: "\002B";
  color: white;
  float: right;
}

.story {
  max-height: 0;
  width: calc(75% - 36px);
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding-top 0.4s ease-out;
  padding: 0 18px;
}

.active + .story {
  padding-top: 10px;
}

.active:after {
  content: "\2212";
}

.time {
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: center;
}

.biodata {
  max-width: 850px;
}

.content {
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: center;
  width: 100%;
}

.right {
  text-align: right;
}

.date {
  float: left;
  text-align: right;
  width: 50%;
  margin: 0px;
}

.company{
  margin: 0px;
}

.role {
  float: left;
  width: 50%;
  margin: 0px;
}

.experience {
  margin: 0 auto;
  text-align: center;
  margin: 0px;
}

.history, .education {
  max-width: 90%; 
  width: 100%;
  margin: 0 auto; 
  background-color: #e4e4e4;
  padding: 30px;
  box-sizing: border-box;
} 


@media screen and (max-width: 768px) {
  .history, .education {
    max-width: 95%;
    padding: 20px;
  }
}

/*--------------RESUME--------------*/


.resume {
  height: max-content;
  box-sizing: content-box;
  width: 80vw;
  max-width: 750px;
  margin: auto;
  z-index: 2;
  overflow-y: auto;
}

.canvas {
  position: absolute;
  z-index: 1;
}

.rows {
  font-style: italic;
}

ul {
  margin-top: 0;
  list-style-type: disc;
}

/*--------------PROJECTS--------------*/

.projects {
  height: max-content;
  box-sizing: content-box;
  width: 80vw;
  max-width: 750px;
  margin: auto;
  z-index: 2;
  overflow-y: auto;
  padding: 30px;
  background-color: #e4e4e4;
}

.superduper {
  padding: 50px;
  padding-top: 10px;
  display: block; 
  margin: 0 auto; 
  width: 40vw; 
  max-width: 400px; 
  height: auto; 
}

.projectimg {
  display: block; 
  margin: 0 auto; 
  width: 40vw; 
  max-width: 400px; 
  height: auto; 
}

@media screen and (max-width: 768px) {
  .superduper, .projectimg {
    width: 60vw; 
    max-width: 300px; 
  }
}