@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --menuHeight: 24pt;
    --dockHeight: 80px
}

body {
    font-family: 'Noto Sans', sans-serif;
    letter-spacing: -0.3pt;

    font-weight: 300;
    margin: 0;
    overflow: hidden;

    background-image: url("./wallpaper.webp");
    background-size: cover;
    background-repeat: no-repeat;

    width: 100%;
    height: 100vh;
}

/* Header */
body > header {
    position: absolute;
    width: 100%;
    height: var(--menuHeight);

    display: flex;
    padding: 5px;
    box-sizing: border-box;

    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.87);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(9.5px);
    -webkit-backdrop-filter: blur(9.5px);

    z-index: 9999;
}

body > header #app-name {
    font-weight: bold;
}

body > header .left {
    margin-left: 10px;
    margin-right: auto;
}

body > header > div {
    display: flex;
    align-items: center;
}

body > header > div * {
    max-height: 100%;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 10px;

    font-weight: 300;
}

body > header .symbol {
    cursor: pointer;
}

body > header #server-name {
    font-weight: 500;
}


/* Desktop */
body > .desktop {
    position: absolute;
    bottom: var(--dockHeight);

    width: 100%;
    height: calc(100% - var(--menuHeight) - var(--dockHeight));
}

.file-grid {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
}

.file-grid .icon {
    cursor: pointer;
    margin: 23px;
    margin-right: 20px;

    overflow-y: visible;
    width: 64px;
    height: 64px;

    white-space: pre-wrap;
    display: flex;
    flex-direction: column;

    color: white;
}

.file-grid .icon .symbol {
    font-size: 4em;
    width: 100%
}

.file-grid .icon p {
    margin-top: -16px;
    overflow-wrap: break-word;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
            line-clamp: 2; 
    -webkit-box-orient: vertical;
}

.file-grid .icon * {
    margin: 0;
    width: 100%;
    text-align: center;
}

body > .dock {
    transition: width 1s;
    position: absolute;
    bottom: 10px;
    min-width: 400px;
    height: var(--dockHeight);

    left: 50%;
    transform: translate(-50%);

    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12.4px);
    -webkit-backdrop-filter: blur(12.4px);
    border: 1px solid rgba(255, 255, 255, 0.3);

    display: flex;
    padding-left: 15px;
    padding-right: 15px;

    overflow: auto;
    overflow-y: hidden;
    max-width: 90%;
}

body > .dock::-webkit-scrollbar {
    height: 5px;
    width: 90%;
}
  
body > .dock::-webkit-scrollbar-track {
    width: 90%;
    display: none;
    overflow: hidden;
}
  
body > .dock::-webkit-scrollbar-thumb {
    background-color: rgb(233, 233, 233);
    border-radius: 0.5rem
}

body > .dock hr {
    margin: 0;
    margin-right: 5px;
    margin-left: 5px;
    border: none;
    width: 1px;
    background: #ffffff59;
    height: 90%;
    margin-bottom: auto;
    margin-top: auto;
}

body > .dock > div {
    display: flex;
    align-items: center;
}

body > .dock .icon {
    position: relative;
    transition: all 600ms;
    aspect-ratio: 1/1;
    height: 80%;

    margin-left: 5px;
    margin-right: 5px;

    background-color: rgb(255, 255, 255);
    border-radius: 1rem;

    
    transform: matrix(1, 0, 0, 1, 0, 80);
    
    background-repeat: no-repeat;
    background-position: center;
}

body > .dock .icon::after {
    position: absolute;
    content: '•';
    width: 100%;
    top: 100%;
    text-align: center;
    font-size: 1.5em;
    color: #1f1f1f;

    transition: all 0.3s;
}

body > .dock .icon.open::after {
    top: 80%;
}