@font-face {
    font-family: 'sagace';
    src: url('../font/Sagace-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'sagace';
    src: url('../font/Sagace-Medium.otf') format('opentype');
    font-weight: 500; 
    font-style: normal; 
}

@font-face {
    font-family: 'glaredisk';
    src: url('../font/glaredisk-Regular.otf') format('opentype');
    font-weight: normal; 
    font-style: normal; 
}

/* BASE STYLE */

a{
    text-decoration: none;
    color: inherit;
}

#linksleft{
    position: absolute;
    left: 50vw;
    bottom: -88vh;
}

h1{
    color: #474747;
    font-size: 50px;
    font-family: 'sagace';
    line-height: 1.25em;
}

h1 a:hover{
    color: #0A0A0A;
}

h2{
    padding-top: 1vh;
    font-size: 20px;
    color: #E3284F;
    font-family: 'sagace';
    font-weight: 500;
    margin-bottom: 2vh;
}

h3{
    padding: 5px;
    font-family: 'sagace';
    font-style: normal;
    font-size: 15px;
    border-bottom: 2px solid black;
    text-align: justify;
}

h4{
    color: #474747;
    font-size: 18px;
    font-family: 'sagace';
}

h3 p {
    font-size: 1vw;
    display: none;
    font-weight: 200;
    font-size: 13px;
    font-family: 'sagace';
}

/* COMPOSITION */

#display {
    background-color: #F9F8F8;
    max-width: 100vw;
    max-height: 100vh;
    height: 96vh;
    display: grid;
    padding-top: 2vh;
    padding-left: 2vw;
    padding-right: 2vw;
    padding-bottom: 2vh;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    grid-gap: 4vh;
}

#leftcolumn {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: auto; 
}

#rightcolumn {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    max-width: 100%;
    height: auto;
}

#viewer {
    overflow: hidden;
    height: auto;
    display: flex;
    justify-content: center;
    align-items:flex-start;
}

#viewer img {
    max-width: 100%; 
    max-height: 100%; 
    height: auto;
    width: auto;
    object-fit: contain;
}

#filmpreview {
    position: absolute;
    bottom: 0px;
    height: 10vh;
    width: 96vw;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    white-space: nowrap;
    gap: 0;
}

#filmpreview img {
    height: 100%;
    margin: 0;
    padding: 0;
    display: inline-block;
    border: none;
}

#allTitle{
    display: none;
}

.imageGroup{
    margin-right: 5px;
}

.category-title {
    cursor: pointer;
}

.category-title:hover {
    background-color: #ddd;
}

.category-title.selected,
.category-title[style*="background-color: #E3284F"] {
    color: #F9F8F8;
}

.category-title.active {
    background-color: #E3284F;
    color: #F9F8F8;
}

/* TYPOGRAPHY */

#typography-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0px;
    margin-bottom: 2vh;
    font-family: 'sagace';
    width: 90vw;
    height: 100px;
}

#typography-preview {
    width: 90vw;
    text-align: center;
    font-family: 'glaredisk';
    font-style: normal;
    font-size: 70px;
    letter-spacing: 0px;
    color: #0A0A0A;
    border: 2px solid #0A0A0A;
    padding: 0px;
    min-height: 20vh;
    background-color: white;
    overflow-y: auto;
}

.slider{
    display: grid;
    grid-template-columns: 50px 1fr;
    margin-left: 1vw;
    margin-right: 1vw;
    height: 40px;
}

.justifybuttons{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 10px;
    text-align: center;
    margin-left: 1vw;
    margin-right: 1vw;
}

.justifybuttons h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid black;
    height: 40px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#typography-controls article h4 a span{
    display: none;
}

.justifybuttons h4.active {
    background-color: #E3284F;
    color: #F9F8F8;
}

#scrapyard{
    width: 96vw;
    height: 90vh;
}

#scrapyard img {
    border: 2px white solid;
    position: absolute;
    width: 100px;
    max-width: 100%;
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none; 
    -webkit-user-drag: none; 
    box-shadow: 0px 0px 10px 0px #00000033;
}

