@import "_reset.css";

@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,500&display=swap');

body {
    font-size: 2vmin;
    width: fit;
    font-family: 'Roboto Flex', sans-serif !important;
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

video {
    display: block;
    width: 100%;
    height: auto;
}

.header {
    background-color: white;
    display: flex;
    justify-content: space-between;
    position: fixed;
    z-index: 1;
    width: 100%;
    padding: 1em;
    top: 0;
    left: 0;
    right: 0;
}

.header a {
    font-family: 'Roboto Flex', sans-serif !important;
    color: black;
    text-decoration: none;
    transition: color 500ms ease;
    margin: 0.1em;
}

.content {
    display: flex;
    align-items: flex-end;
    height: 100vh;
    margin-top: 10vmin;
}

.content svg {
    display: block;
    margin: 0 auto;
    padding-bottom: 0 auto;
    width: auto;
    height: auto;
}

.svg-link {
    cursor: pointer;
}

.project {
    margin-bottom: 5em;
}

.project-link {
    position: relative;
}

.project video {
    display: block;
    margin: auto;
    width: 80%;
    display: flex;

}

.slides {
    display: flex;
    align-items: center;
    height: 100vh;
    overflow-x: auto;
    grid-gap: 4em;
    padding: 1em;
    overflow-y: hidden;
}

.text {
    padding-top: 2em;
    text-align: center;
    width: 60vmin;
    height: fit-content;
}

.text (max-width: 300px) {
    color: yellow;
}

.text a {
  text-decoration: none;
  font-family: 'Roboto flex';
}

.posters,
.typeface,
.illustrations,
.other {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    padding-top: 3em;
}

.image img {
    width: 60vmin;
}

.video video {
    width: 60vmin;
}

.text p {
    width: 60vmin;
}

.show-typeface .typeface {
    display: block;
    position: fixed
}

.show-posters .posters {
    display: block;
}

.show-illustrations .illustrations {
    display: block;
}

.show-other .other {
    display: block;
}

p {
    font: normal bold 1.5em Roboto Flex;
    font-family: 'Roboto Flex', sans-serif !important;
    font-weight: bold;
    text-align: justify;
    width:40vmin;
    text-decoration: none;
    color: black;
}

/* I was trying to create text color responsive to background, 
but couldn't figure it out properly, so came up with invertive cursour */

#cursor  {
    background-color: black;
    border-radius: 10vmin;
    
    height: 20vmin;
    width: 20vmin;
    
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    
    filter: invert(1);
    mix-blend-mode: difference;
  }

  .close {
    position: fixed;
    top: 10vmin;
    right: 50%;
    display: flex;
    font-size: 30px;
    font-weight: 300;
    color: black;
  }

  p {
    background: transparent;
}

@media (max-width: 500px) {

      p {
            background: white;
       }

}