* {
    margin: 0;
    padding: 0;
    font-family: 'Source Code Pro', monospace;
    color: dimgrey;

    -webkit-overflow-scrolling: touch !important;
}

body {
    /* height: 100%;
    width: 100vw;
    pointer-events: auto !important; */
    pointer-events: auto !important;
}

#title {
    position: fixed;
    z-index: 1;
    width: 140px;
    color: dimgrey;
    padding: 5px 0px 5px 5px;
    border: 1px solid dimgrey;
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    pointer-events: none;
}

nav {
    position: fixed;
    z-index: 2;
    width: 100vw;
    height: 100%;
    left: 0;
    padding-right: 10px;
    padding-bottom: 10px;
    transition: all 0.5s;
    background-color: rgba(255, 255, 255, 0.9);
    pointer-events: auto;
    overflow-y: scroll;
    /* -webkit-overflow-scrolling: touch; */
}


.navClosed {
    /* opacity: 0;
    z-index: -1; */
    display: none;
}

.navOpen {
    /* opacity: 1; */
    display: block;
}

#links {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-end;
    top: 8vh;
    right: 15px;
    /* width: 140px; */
    /* height: 100px; */
    font-size: 20px;
}

nav .navLinks {
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 15px;
    pointer-events: auto;
}

.currentComponent {
    padding-right: 5px;
    color: black;
    pointer-events: all;
}

.info {
    position: absolute;
    bottom: 150px;
    width: 100vw;
}

.info p {
    padding: 0px 30px 0px 10px;
}

#arrowWrap {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 143px;
    bottom: 0;
    /* background-color: red; */
}

#arrow {
    height: 30px;
    width: 30px;
    border-top: 1px solid dimgrey;
    border-right: 1px solid dimgrey;
    transform: rotate(-45deg);
    pointer-events: none;
}

#loadingWrap {
    position: fixed;
    z-index: 0;
    width: 100vw;
    height: 100%;
    background-color: white;
}

#loading {
    position: fixed;
    top: 4px;
    left: 108px;
    width: 40px;
}

#loading p {
    display: inline-block;
    color: dimgrey;
}

@keyframes dotOne {
    0%   {opacity: 0}
    20%  {opacity: 0}
    40%  {opacity: 1}
    60%  {opacity: 1}
    80%  {opacity: 1}
    100% {opacity: 1}
}

#dotOne {
    animation: dotOne 1s infinite;
}

@keyframes dotTwo {
    0%   {opacity: 0}
    20%  {opacity: 0}
    40%  {opacity: 0}
    60%  {opacity: 1}
    80%  {opacity: 1}
    100% {opacity: 1}
}

#dotTwo {
    animation: dotTwo 1s infinite;
}

@keyframes dotThree {
    0%   {opacity: 0}
    20%  {opacity: 0}
    40%  {opacity: 0}
    60%  {opacity: 0}
    80%  {opacity: 1}
    100% {opacity: 1}
}

#dotThree {
    animation: dotThree 1s infinite;
}

.imageWrap {
    width: 100vw;
    /* margin-top: 50px; */
}

.portrait {
    width: 100%;
    margin-top: 50px;
}

.landscape {
    width: 100%;
    margin-top: 50px;
}

.inviteWrap img {
    background-color: rgba(240, 240, 240, 0.4);
}

.home {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home .imageWrap .portrait, .home .imageWrap .landscape {
    margin: 0;
}

.bio {
    padding: 50px 5px;
    /* height: 2200px; */
    font-size: 13px;
    /* pointer-events: none !important; */
}

.bio a {
    pointer-events: auto;
}

.bioText p:first-of-type {
    margin-bottom: 30px;
    /* text-decoration: underline; */
}

#galleriesList {
    margin-bottom: 20px;
}

#furtherTexts a p {
    margin-top: 20px;
}

#furtherTexts a:first-of-type p {
    margin-top: 5px;
}

.bioText {
    padding-bottom: 30px;
}

#videoWrap video {
    width: 100%;
}

#videoWrap video:nth-child(2), #videoWrap video:nth-child(3) {
    margin-top: 30px;
}


/* #instaLink em {
    height: 30px;
    margin-top: 40px !important;
} */

.galleryLink {
    display: inline-block;
    margin-bottom: 8px;
}

#exhibitionListWrap {
    position: fixed;
    z-index: 5;
    /* overflow: hidden; */
    overflow: clip;
    width: 100vw;
    height: 80dvh;
    bottom: 0;
    border-top: 1px solid dimgrey;
    background-color: rgba(255, 255, 255, 0.8);

    pointer-events: all;
}

#exhibitionList {
    /* overflow-y: scroll;
    height: 100%;
    -webkit-overflow-scrolling: touch;
     */

    pointer-events: all;

    user-select: text;
    padding: 20px 10px;
    height: 100%;
    overflow-y: auto;                  /* was scroll is fine too */
    -webkit-overflow-scrolling: touch; /* momentum scroll on iOS */
    touch-action: pan-y;
    
    /* iOS Safari specific fixes */
    -webkit-transform: translate3d(0,0,0); /* Force hardware acceleration */
    transform: translate3d(0,0,0);
    will-change: scroll-position;
    
    /* Ensure proper touch handling */
    -webkit-user-select: text;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.exhibitionLink {
    padding-bottom: 20px;
}

.exhibitionLink:last-of-type {
    margin-bottom: 20px;
}

@media screen and (max-height: 600px)  {
    #exhibitionListWrap {
        height: 70vh;
        font-size: 14px;
    }
    #links {
        font-size: 15px;
        top: 3vh;
    }
    .info {
        font-size: 12px;
    }
}

@media screen and (max-height: 350px) {
    .info {
        font-size: 8px;
    }
}
