/* Reset */
html,body,h1,h2,h3,h4,h5,h6,p,ul,li,a,span,blockquote{margin:0px;padding:0px;text-decoration:none;}
html,body{height:100%;width:100%;text-align:left;}
li{list-style:none;}
/* Basic Styles */
section,blockquote,.clear{clear:both;}

.left{float:left;}
.right{float:right;}

.clear{clear:both;}

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

html body button {
  -webkit-appearance: none;	
}

.bold {
  font-weight:bold;	
}

.center {
  text-align:center;	
}

body {
  font-size: calc(14px + 0.4vw);
  text-align:center;
  font-family:"Inter";
  background:#121418;
  color:#FFFFFF;
}

img {
  max-width:100%;
  height:auto !important;
}

.body {
  width: 90%;
  padding-left: 1vw;
  padding-right: 1vw;
  margin: 0 auto;
}

#head {
  border-bottom: 1px solid #23262E;
  padding-top: 4vw;
  padding-bottom: 4vw;
}

#head h1 {
  font-size: calc(1rem + 0.2vw);
  line-height: 1.4;
  font-weight: normal;
  max-width: 90%;
  margin: 0 auto;
}

#daniel {
  width: calc(100px + 2vw);
  height: auto;
  margin-bottom: 2vw;
}

#publications {
  padding-top: 4vw;
  padding-bottom: 3vw;
}

#publications h4 {
  font-size: calc(1.2rem + 0.3vw);
  font-weight: 800;
  margin-bottom: 0.5em;
}

#publications h2 {
  color: #989CA3;
  font-weight: normal;
  font-size: calc(0.9rem + 0.2vw);
  margin-bottom: 1.5em;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* Publication list with flexbox */
#pub_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2vw;
  padding-top: 2vw;
  width: 100%;
}

#pub_list li {
  flex: 0 0 auto;
  width: calc(25% - 2vw);
  min-width: 220px;
  margin-bottom: 3vw;
  transition: transform 0.3s ease;
}

#pub_list li:hover {
  transform: translateY(-5px);
}

#pub_list li img {
  width: 100%;
  height: auto;
  margin-bottom: 1vw;
  display: block;
  border-radius: 6px;
}

#pub_list span.button {
  font-size: calc(1rem + 0.3vw);
  font-weight: 900;
  border: 2px solid white;
  border-radius: 50px;
  width: 100%;
  min-height: 85px;
  padding: 0.8em 1em;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#pub_list span.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #fff;
  transition: left 0.3s ease;
  z-index: -1;
}

#pub_list a:hover span.button::before {
  left: 0;
}

#pub_list a:hover span.button {
  color: #121418;
}

#foot {
  border-top: 1px solid #23262E;
  padding-top: 4vw;
  padding-bottom: 4vw;
}

#foot p {
  color: #C7C7C7;
  margin-bottom: 0;
  font-size: calc(0.9rem + 0.1vw);
}

#foot .love {	
  color: transparent;
  text-shadow: 0 0 0 #C7C7C7;
}

/* Media Queries */
@media(max-width: 1400px) {
  #pub_list li {
    width: calc(33.333% - 2vw);
  }
}

@media(max-width: 1024px) {
  #pub_list li {
    width: calc(50% - 2vw);
  }
}

@media(max-width: 768px) {
  #head h1 br {
    display: none;
  }
  
  #head, #foot {
    padding-left: 3vw;
    padding-right: 3vw;
  }
  
  .body {
    width: 95%;
    padding-left: 0;
    padding-right: 0;
  }
  
  #pub_list {
    gap: 3vw;
  }
  
  #pub_list li {
    min-width: 200px;
    margin-bottom: 5vw;
  }
  
  #pub_list span.button {
    font-size: calc(1.4rem + 0.3vw);
    padding: 0.7em 0.8em;
  }
}

@media(max-width: 576px) {
  #pub_list li {
    width: calc(100% - 2vw);
    max-width: 340px;
  }
  
  #publications h2 {
    max-width: 95%;
  }
  
  #head {
    padding-top: 8vw;
    padding-bottom: 8vw;
  }
  
  #foot {
    padding-top: 8vw;
    padding-bottom: 8vw;
  }
  
  #publications {
    padding-top: 8vw;
  }
  
  #pub_list span.button {
    font-size: calc(1.3rem + 0.3vw);
    padding: 0.7em 0.6em;
  }
}

@media(max-width: 375px) {
  body {
    font-size: 14px;
  }
  
  #pub_list span.button {
    font-size: calc(1.1rem + 0.3vw);
    padding: 0.7em 0.5em;
  }
  
  #daniel {
    width: 100px;
  }
}