@import url(root.css);

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

html{
    overscroll-behavior-y: none;
}

html, body{
    width: 100%;
    min-height: 100%;
    margin: 0;
}

.is-hidden{
    display: none;
}

.z-index-0{
    z-index: 0 !important;
}

a:hover,
button:hover,
.active,
.cover:hover,
.logo:hover, .logo img:hover, .logo a img:hover,
.home-cover:hover{
    opacity: 0.9;
    cursor: pointer;
    text-decoration: underline;
}

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

.layout-error{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.footer{
    min-height: 2rem;
}

body {
    margin: 0;
}

.main {
    display: flex;
    height: 100dvh;
    overflow: hidden;
}

.sidebar {
    flex: 1;
    min-width: 0;
    max-width: 40dvw;
    overflow: hidden;    
    padding: 1.4rem;    
    display: flex;
    flex-direction: column;
    margin-right: 1rem;
    justify-content: space-between;
}

.sidebar > * {
    margin-bottom: 1rem;   
}

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

.logo{
    margin-bottom: 1rem;
    height: auto;
    width: 13rem;
}

.info-button{
    padding-top: 0.5rem;
}

.project__title{
    text-align: center;
    margin: 0.5rem;
}

.project__data{
    visibility: hidden;
    opacity: 0;
}

.project-homecover:hover .project__data {
    visibility: visible;
    opacity: 1;
}

html, body, body * {
    cursor: url("http://emma-marion.giuliatigges.com/assets/cursor/black.png") 10 10, auto;
}

img:hover, a:hover, button:hover {
    cursor: url("http://emma-marion.giuliatigges.com/assets/cursor/red.png") 10 10, auto !important;
}

.project-credits{
justify-content: flex-end;    
bottom: 1rem;
    left: 1rem;
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-project{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

button{
    background-color: transparent;
}


/* mobile */
@media (max-width: 690px) {
    .desktop{
        display: none !important;
    }
    
    .sidebar{
        position: fixed;
        bottom: 0;
        background-color: white;
        z-index: 100;
        width: 100vw;
        max-width: 100dvw;
    }
    
    .mobile{
        display: block;
    }
}

/* desktop */
@media (min-width: 691px) {
    .mobile{
        display: none !important;
    }
}