@font-face {
    font-family: 'eurocine';
    src: url('../fonts/eurocine-regular-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'quicksand';
    src: url('../fonts/Quicksand-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'quicksand';
    src: url('../fonts/Quicksand-Medium.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  font-family: quicksand;
  color: #000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

h2 {
    font-family: "eurocine";
}

.abstract-hidden.abstract-text {
    display: none;
}

.list-item-main {
    display: flex;
    position: relative;
    justify-content: space-between;
    margin-top: 16px;
}

.list-item-main:first-of-type {
    margin-top: 0px;
}

.list-item-description {
    display: flex;
    flex-direction: column;
}

.paper-venue {
    font-size: larger;
    text-align: right;
    padding-left: 30px;
    order: 2;
}

.no-p-margin p {
    margin: 0px;
}

.paper-buttons {
    display: flex; 
    align-items: baseline;
}

.paper-venue-name {
    display: inline-block;
}

.paper-venue-year {
    color: gray;
}

.paper-authors {
    color: gray;
}

.paper-button {
    display: inline-block;
    border-width: 1pt;
    border-style: solid;
    border-color: gray;
    border-radius: 2pt;
    padding: 2pt;
    margin-right: 4pt;
    color: gray;
    cursor: pointer;
    text-decoration: none;
}

.paper-button:hover {
    border-color: red;
    color: red;
}

.item-title {
    font-weight: bold;
    font-size: larger;
}

.paper-list {
    display: flex;
    flex-direction: column;
}

.topics > ul {
    list-style-type: none;
    padding-left: 0;
    font-weight: bold;
}

.topics ul {
    list-style-type: none;
}

.topics li {
    padding-top: 10px;
}

.topics li:first-of-type {
    padding-top: 0px;
}

.subtopics span {
    font-weight: normal;
    color: gray;
    display: inline-block;
    margin-left: 5px;
}

.subtopics span:first-of-type {
    margin-left: 0px;
}

.subtopics span.sep::before {
    content: "\000B7";
}

.paper-list li {
    padding-bottom: 1em;
}

.story-block {
    display: flex;
}

.story-margin {
    width: 0px;
    display: inline-flex;
    flex-direction: row-reverse;
    text-align: center;
}

.photo > img {
    margin-right: 10px;
}

#contacts {
    height: 0px;
}

#my-photo {
    width: 200px;
    height: 200px;
    border-radius: 10px;
}

img.contact {
    width: 20px;
    height: 20px;
    margin-top: 5px;
    margin-right: 5px;
}

#dblp-icon {
    width: 15px;
    object-fit: cover;
}

#google-icon {
    width: 13px;
    object-fit: cover;
}

.story {
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
}

.story > div {
    display: flex;
    align-items: flex-end;
    padding-bottom: 16px;
    flex: 1;
}

main {
    grid-column: 2;
    grid-row: 2;
}

header {
  /* border-bottom: 0.2rem solid #000; */
  font-size: 3rem;
  grid-column: 2;
  grid-row: 1;
}

footer {
    grid-column: 1 / 3;
    grid-row: 3;
}

h2 {
    margin-top: 32px;
}

h2:first-of-type {
    margin-top: 0px;
}

nav {
  text-align: right;
}

nav a {
  font-size: 1.8rem;
  font-weight: bold;
  color: black;
  text-decoration: none;
  text-transform: uppercase;
}

footer {
  margin-top: 3rem;
  padding: 1.2rem 0;
  /*border-top: 0.2rem solid #000;*/
  font-size: 1.2rem;
  color: #555;
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 2rem;
}

article .header {
  font-size: 1.4rem;
  font-style: italic;
  color: #555;
}

.logo {
  font-weight: bold;
  font-family: 'eurocine';
}

.logo > .position {
  font-size: 1.5rem;
  margin-top: 5px;
}

a {
  color: #000;
  text-decoration: underline dotted;
}

.logo a {
  text-decoration: none;
}

a:hover {
  color: rgb(255,0,0);
  text-decoration: none;
}

a:active {
  color: rgb(255,100,0);
  text-decoration: none;
}

@media (max-width: 319px) {
  body {
    width: 90%;
    margin: 0;
    padding: 0 5%;
  }
  header {
    margin: 4.2rem 0;
  }
  nav {
    margin: 0 auto 3rem;
    text-align: center;
  }
  footer {
    text-align: center;
  }
  .logo {
    text-align: center;
    margin: 1rem auto 3rem;
  }
  .logo a {
    font-size: 2.4rem;
  }
  nav a {
    display: block;
    line-height: 1.6;
  }
}

@media (max-width: 1200px) {
    .story-block {
        flex-direction: column;
    }
    .story-margin {
        width: auto;
        flex-direction: row;
    }
    #contacts {
        height: auto;
    }
    .photo {
        width: auto;
    }
    .photo > img {
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 800px) {
    .story-margin {
        flex-direction: column;
    }
}

@media (min-width: 320px) {
  body {
    width: 90%;
    margin: 0;
    padding: 0 5%;
  }
  header {
    margin: 4.2rem 0;
  }
  nav {
    margin: 0 auto 3rem;
    text-align: center;
  }
  footer {
    text-align: center;
  }
  .logo {
    text-align: center;
    margin: 1rem auto 3rem;
  }
  nav a {
    display: inline;
    margin: 0 0.6rem;
  }
}

@media (min-width: 800px) {
  body {
    margin: 0 auto;
    padding: 0;
  }

  .paper-venue-name {
      white-space: nowrap;
  }

  main {
    width: 80rem;
  }
  header {
    margin: 0 0 1rem;
    padding: 1rem 0;
  }
  nav {
    margin: 0;
    text-align: right;
  }
  nav a {
    margin: 0 0 0 1.2rem;
    display: inline;
  }
  footer {
    text-align: right;
  }
  .logo {
    margin: 0;
    font-size: 3rem;
    text-align: left;
  }
}


