@font-face {
    font-family: "Open Sans";
    src: url(../fonts/Open_Sans/OpenSans-VariableFont_wdth\,wght.ttf);
}



:root {
    --primary: #212529;
    --secondary: #343a40;
    --tertiary: #495057;
    --quaternary: #6c757d;
    --quinary: #e9ecef;
    --sidebarwidth: 250px;
    --contentwidth: 75%;
    --uifont: "Open Sans";
    --slideshowfont: ;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    caret-color: var(--quinary);
}

body {
    background: var(--primary);
    color: var(--quinary);
    font-family: var(--uifont);
    overflow-x: hidden;
}

#loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--primary);
    color: var(--quinary);
    transition: all 400ms;
    gap: 10vh;
}
#loading #loadingtext {
    font-size: 80px;
    transition: all 200ms;
}
#loading #loadingversion {
    font-size: 30px;
    font-weight: 900;
    transition: all 200ms;
    opacity: 0;
}

main {
    position: absolute;
    top: 0;
    left: 0;
}

main .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebarwidth);
    min-height: 100vh;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    overflow-x: hidden;
}
main .sidebar .toggleditem {
    background-color: var(--tertiary);
}

main .sidebar .sidebaritem {
    height: 50px;
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: left;
    transition: all 300ms;
    border-radius: 10px;
    cursor: pointer;
}
main .sidebar .sidebaritem:hover {
    background: var(--tertiary);
    cursor: pointer;
}
main .sidebar .sidebaritem .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: 30px;
    margin: 0 10px;
    fill: #e9ecef;
}
main .sidebar .sidebaritem span {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
main .sidebar .sidebaritem .closeicon {
    transition: all 300ms;
    opacity: 0;
}
main .sidebar .sidebaritem:hover .closeicon {
    opacity: 1;
}
main .sidebar .separator {
    width: 85%;
    height: 2px;
    background-color: var(--quinary);
}
main .sidebar .fontsitems {
    width: 100%;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}
/* 
main .sidebar .fontsitems section .icon {
    width: 20%;
} */
main .sidebar .fontsitems section span {
    width: 60%;
}
main .slidebar {
    position: absolute;
    left: var(--sidebarwidth);
    top: 0;
    width: calc(100vw - var(--sidebarwidth));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
}

main .slidebar .slide {
    width: 100%;
    position: absolute;
    top: 0;
    min-height: 100vh;
    display: none;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    visibility: hidden;
    opacity: 0;
    transition: all 300ms;

}
main .slidebar .activeslide {
    visibility: visible;
    opacity: 1;
    display: flex;
}

main .slidebar .slide .title {
    width: var(--contentwidth);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    font-weight: 600;
    font-size: 60px;
    margin-top: 15px;
}
main .slidebar .slide .title #slidetitleicon {
    fill: var(--quinary);
    display: flex;
    align-items: center;
    justify-content: center;
}
main .slidebar .slide .title #slidetitletext {
    color: var(--quinary);
}
main .slidebar .slide .title #slidetitletext:focus {
    outline: none;
}
main .slidebar .slide .separator {  
    width: calc(var(--contentwidth) + 1%);
    height: 2px;
    border-radius: 5px;
    background-color: var(--quaternary);
}
main .slidebar .slide .content {
    width: var(--contentwidth);
    height: 100%;
    font-weight: 300;
    font-size: 20px;
}
main .slidebar #homepageslide .content span {
    font-size: 1.2vw;
    font-weight: 300;
}
main .slidebar #homepageslide .content span h1 {
    display: inline-block;
    font-size: 1.8vw;
}

main .slidebar #homepageslide .content span h1 #version {
    font-size: 0.5vw;
    font-weight: 300;
}
main .slidebar #homepageslide .content span a {
    color: var(--quinary);
    font-size: 1.3vw;
    font-weight: 500;
    text-decoration: underline;
    transition: all 300ms;
}


main .slidebar #explorepageslide .content {
    width: 100%;
}
main .slidebar #explorepageslide .content .fontlist {
    margin: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 30px;
    flex-wrap: wrap;
}
main .slidebar #explorepageslide .content .fontlist .fontitembox {
    border: solid var(--quaternary) 2px;
    border-radius: 20px;
    padding: 5px;
    width: 30%;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 200ms;
}
main .slidebar #explorepageslide .content .fontlist .fontitembox:hover {
    background: var(--quaternary); 
    border: solid var(--quinary) 2px;
}
main .slidebar #explorepageslide .content .fontlist .fontitembox:hover .row1 .btns svg {
    opacity: 1;
}
main .slidebar #explorepageslide .content .fontlist .fontitembox .row {
    width: 100%;
    display: flex;
    align-items: center;
}
main .slidebar #explorepageslide .content .fontlist .fontitembox .row1 {
    justify-content: left;
    height: 20%;
}
main .slidebar #explorepageslide .content .fontlist .fontitembox .row1 .fontname {
    height: 100%;
    line-height: 61px;
    text-indent: 10px;
    width: calc(100% - 108px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 30px;
}
main .slidebar #explorepageslide .content .fontlist .fontitembox .row1 .btns {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 108px;
}
main .slidebar #explorepageslide .content .fontlist .fontitembox .row1 .btns svg {
    opacity: 0;
    transition: 200ms all;
    scale: 0.8;
    fill: var(--quinary);
}
main .slidebar #explorepageslide .content .fontlist .fontitembox .row1 .btns *:hover {
    scale: 1;
    transition: 200ms all;
}
main .slidebar #explorepageslide .content .fontlist .fontitembox .row1 .btns .downloadfont {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
main .slidebar #explorepageslide .content .fontlist .fontitembox .row1 .btns .addfont {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
main .slidebar #explorepageslide .content .fontlist .fontitembox .row2 {
    height: 90%;
    justify-content: center;
    align-items: center;
    font-size: 40px;
}
main .slidebar #explorepageslide .content .fontlist .fontitembox .row2 .fontcontent {
    width: 100%;
    height: 90%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-left: 10px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 2vw;
    font-weight: 300;
}

main .slidebar #fontpageslide {
    font-family: var(--slideshowfont) !important;
}
main .slidebar #fontpageslide .title #slidetitletext {
    font-family: var(--uifont);
}
main .slidebar #fontpageslide .quote {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 500px;
    width: 90%;
    font-size: 4vw;
    font-weight: 300;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
main .slidebar #fontpageslide .weights {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
main .slidebar #fontpageslide .weights .header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
main .slidebar #fontpageslide .weights .header .description {
    width: 25%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 2vw;
    line-height: 100px;
    font-weight: 300;
}
main .slidebar #fontpageslide .weights .header .controls {
    width: 50%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}
main .slidebar #fontpageslide .weights .header .controls .btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--tertiary);
    cursor: pointer;
    border: solid 2px rgba(255, 255, 255, 0);
    transition: 150ms all;
}
main .slidebar #fontpageslide .weights .header .controls .btn:hover {
    scale: 1.5;
}
main .slidebar #fontpageslide .weights .header .controls .toggledbtn {
    background-color: var(--quaternary);
    border: solid 2px white;
}
main .slidebar #fontpageslide .header .controls .btn svg {
    width: 70%;
    height: 70%;
}
main .slidebar #fontpageslide .weights .weightbars {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    width: 100%;
    height: 150px;
    font-size: 2.2vw;
    transition: all 300ms;
}
main .slidebar #fontpageslide .weights .weightbars:hover {
    border: 1px solid var(--quaternary);
    padding: 0 30px;
}
main .slidebar #fontpageslide .weights .weightbars .w100 {
    font-size: 15px;
    height: 15px;
    line-height: 15px;

}
main .slidebar #fontpageslide .weights .weightbars span {
    width: 100%;
    height: 110px;
    line-height: 100px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
main .slidebar #fontpageslide .glyphs {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 50px 0;
    /* height: 100vh; */
}
main .slidebar #fontpageslide .glyphs .description {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 2vw;
    font-family: var(--uifont);
    line-height: 100px;
    font-weight: 300;
}
main .slidebar #fontpageslide .glyphs .lettertable {
    width: 50%;
    height: 90vh;
    overflow-y: scroll;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
}
main .slidebar #fontpageslide .glyphs .lettertable::-webkit-scrollbar {
    width: 2px;
}
main .slidebar #fontpageslide .glyphs .lettertable::-webkit-scrollbar-thumb {
    background-color: var(--quinary);
}
main .slidebar #fontpageslide .glyphs .lettertable::-webkit-scrollbar-track {
    background-color: var(--quaternary);
}
main .slidebar #fontpageslide .glyphs .lettertable .accordion {
    height: fit-content;
    width: 100%;
    transition: all 300ms;
    margin: 20px 0;
}
main .slidebar #fontpageslide .glyphs .lettertable .accordion .accordionbtn {
    cursor: pointer;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 300ms;
}
main .slidebar #fontpageslide .glyphs .lettertable .accordion .accordionbtn span {
    width: calc(100% - 50px);
    text-indent: 10px;
    font-family: var(--uifont);
}
main .slidebar #fontpageslide .glyphs .lettertable .accordion .accordionbtn .icon {
    width: 50px;
    height: 50px;
    background-image: url(../assets/keyboard_arrow_up_white_24dp.svg);
    background-repeat: no-repeat;
    background-position: center;
}
main .slidebar #fontpageslide .glyphs .lettertable .openedaccordion .accordionbtn .icon {
    background-image: url(../assets/keyboard_arrow_down_white_24dp.svg);

}
main .slidebar #fontpageslide .glyphs .lettertable .accordion .accordioncontent {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    justify-items: flex-start;
    flex-wrap: wrap;
    height: max-content;
    overflow: hidden;
    transition: all 300ms;
}

main .slidebar #fontpageslide .glyphs .lettertable .openedaccordion .accordioncontent {
    height: 0px !important;
}
main .slidebar #fontpageslide .glyphs .lettertable .accordion .accordioncontent .tableitem {
    border: solid 1px var(--quinary);
    width: 75px;
    height: 75px;
    line-height: 75px;
    display: flex;
    font-size: 1.5vw;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: var(--primary);
    transition: scale 100ms, background 100ms;
    overflow: visible;
}
main .slidebar #fontpageslide .glyphs .lettertable .accordion .accordioncontent .tableitem:hover {
    scale: 1.2;
    border: solid 0px white !important;
    background: var(--quaternary);
}
main .slidebar #fontpageslide .glyphs .lettertable .openedaccordion .accordioncontent .tableitem {
    border: solid 0px white !important;
}

main .slidebar #fontpageslide .glyphs .letterview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 90vh;
}
main .slidebar #fontpageslide .glyphs .letterview span {
    font-size: 16vw;
    font-family: var(--slideshowfont);
    font-weight: 300;
}