@font-face {
font-family: 'UniversElse';
src: url('./assets/fonts/FluxischElse-Light.woff') format('woff');
font-weight: 400;
font-style: lighter;
}

:root {
    --black: #000000;
    --red:#E0302F;
    --beige:#EEEFE7;
}
* {
  padding: 0px;
  margin: 0;
  overflow-x: hidden;

}

body {
  font-family: UniversElse;
  color: var(--black);
  scroll-behavior: smooth; 
  font-size: 1rem;

}
body::-webkit-scrollbar {
    display: none;
}

p {
  padding: 0;
  margin: 0;
  color: var(--black);
}
a {
  text-decoration: none;
  color: var(--black);

}

header {
  display: none;
}
/* footer {
  position: fixed;
  bottom: 20px;
  width: -webkit-fill-available;
} */
#arrow1 {
  position: absolute;
  width: 20px;
  z-index: 666;
}
#parttest{
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 1fr);
  width: 100vw;
  height: 100vh;
}
#one, #two, #three {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#screen1, #screen2, #screen3 {
  color: var(--black);
  text-align: center;
  font-size: 2rem;
  line-height: 50px;
}
#screen2{
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}
.screen2button {
  font-size: 2rem;
  cursor: pointer;
  }

.screen2button:hover {
  text-decoration: underline;
  }

.filter-box {
  position: fixed;
  z-index: 0;
  background-color: lightgrey;
  filter: contrast(6);
  height: 100vh;
}

/* Works css */

.portfolio-window {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    box-sizing: border-box;
}

.portfolio {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 600px;
    font-size: 16px;
    line-height: 23px;
}

#title {
    padding-bottom: 4vh;
}

#projects {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* a project is open: Home is fixed at the top and the closed projects are
   fixed at the bottom, both transparent. The open project scrolls across the
   whole viewport and slides behind them.
   --bottom-h (height of the bottom list + its offset) is set from works.html */
.portfolio-window.is-open {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

.is-open .portfolio > a {
    position: fixed;
    top: 12px;
    left: calc(50% - 300px);
    width: 600px;
    z-index: 2;
}

.is-open #projects {
    position: fixed;
    bottom: 12px;
    left: calc(50% - 300px);
    width: 600px;
    overflow: visible;
    z-index: 1;
}

.is-open .projectCards:has(.ui-accordion-header-active) {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    padding: 197px calc(50% - 300px) calc(var(--bottom-h, 0px) + 129px);
    overflow-y: auto;
    scrollbar-width: none;
}

/* keep the closed projects above the scrolling one so they stay clickable */
.is-open .projectCards:not(:has(.ui-accordion-header-active)) {
    position: relative;
    z-index: 1;
}

.is-open .projectCards:has(.ui-accordion-header-active)::-webkit-scrollbar {
    display: none;
}

/* override jQuery UI accordion styles */
#projects.ui-accordion .ui-accordion-header {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    font-family: UniversElse;
    font-size: inherit;
    font-weight: normal;
    color: var(--black);
}

#projects.ui-accordion .ui-accordion-content {
    border: none;
    padding: 10px 0 12px;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

#projects.ui-widget-content {
    border: none;
    background: none;
}

.projectCards {
    cursor: pointer;
}

.projectsTitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    white-space: nowrap;
}

.projectsTitle:hover {
    font-style: italic;
}

.projectsMeta {
    display: flex;
    gap: 60px;
    justify-content: flex-end;
    width: 295.5px;
}

.ui-accordion-header-icon {
    display: none;
}

.year {
    text-align: right;
}


/* Info */

.contact-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contact {
    height: 25vh;
    width: 35vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.detailscontact{
    display: flex;
    flex-direction: column;
}

#email, #ig, #cv{
    display: flex;
    justify-content: space-between;
}

#scroll {
    text-align: center;
}
.projectsContent {
  width: 100%;
  box-sizing: border-box;
  height: fit-content !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.projectsImg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* first media spans the full width, the rest sit two per row */
.projectsImg > :first-child {
  grid-column: 1 / -1;
}

.projectsContent img,
.projectsContent video {
  width: 100%;
  height: auto;
  display: block;
}





/* mobile */

.mobile {
    display: none;
}
@media only screen and (max-width: 1024px) {
    * {
  overflow: hidden;
}
    header {
  display: block;
  display: flex;
  justify-content: center;
}
    .body {
        display: none;
    }
    .mobile {
        display: block;
        font-size: 3rem;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    #scroll {
        display: none;
    }
    .contact {
        grid-template-columns: none;
        display: flex;
        justify-content: space-between;
    }
}