@font-face {
    font-family: 'Yale New Roman';
    src: url('./yalenew/yalenew-roman-webfont.ttf');
    format: ('ttf');
    font-display: swap; /* Keeps text visible while loading */
}

@font-face {
    font-family: 'Asparthame';
    src: url('./Asparthame/1019-1-Asparthame.otf');
    format: ('otf');
    font-display: swap; /* Keeps text visible while loading */
}

body {
    background-color: var(--bgColor);
    overflow-x: hidden;
    
}

#all {
    display: flex;
    flex-direction: row;
    margin-left: calc(4vw * pow(0.4, 16));
    margin-left: 10rem;
}

#bt-g {
    margin-left: 2%;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    z-index: 1;
    width: 60vw;

    transition: 0.4s;
}

#bt-g-2 {
    margin-left: 2rem;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgb(120, 120, 120);
    opacity: 0%;
    position: absolute;
    z-index: -1;
    filter: grayscale(90%);
    user-select: none;

    margin-bottom: var(--st-spc-bot);
    z-index:-1;

    overflow-y: hidden;
}

#bt-g-2 * {
    position:absolute;
    z-index: -10
}

#bt {
    margin-left: 1rem;
    color: rgb(178, 178, 178);
    transition: 0s;
    user-select: none;

    font-family: "Arial";
    font-size: 12pt;

    padding-top: 3px;border: var(--border-general);
    border-top: var(--border-top);
    border-bottom: var(--border-bottom);
    border-radius: 10px;
    offset-distance: 4px;
    padding: 2px;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 3px;
    padding-bottom: 3px;
    background-image: linear-gradient(to bottom, rgb(60, 60, 60), rgb(20, 20, 20));
    display:block;
    height: 1.2rem;
    width: var(--st-width);
    margin-bottom: 2rem;

    z-index: 0;

}

#bt p{
    font-family: 'YaleNew';
    color: white;
}

#bt:hover {
    background-image: linear-gradient(to bottom, rgb(20, 20, 20), rgb(59, 61, 77));
    opacity: 100%;
}

#bt:active {
    background-image: linear-gradient(to bottom, rgb(50, 50, 50), rgb(20, 20, 20));
    color: gray;
}

#bt-sp-1 {
    width: 20rem;
    position:absolute;
}

#bt-sp-2 {
    position: absolute;
    margin-left: 15rem;
    
}

#bt-sp-3 {
    float: right;
    text-align: right;
}


#container {
    height: auto;
    width: 24rem;

    display:block;
    width: 24rem;
    height: 35px;
}

#container:hover + #bt-g-2 {
    opacity: var(--bthover-opacity);
    position: var(--bthover-position);
    transition: var(--bthover-transition);

    /*
    max-height: 50vh;
    overflow-y: hidden;
    */
}


#container:has(input[type="checkbox"]:not(:checked)):hover + #bt-g-2 {
    max-height: 16rem;
    overflow-y: hidden;
}

input[type='checkbox'] {
  display: none;
}

#foldercheck:checked {
    color: red;
}


#foldercheck:checked + span {
    color: rgb(188, 193, 222);
}



#container:has(input[type="checkbox"]:checked) + #bt-g-2 {

    opacity: 100%;
    position:relative;
    transition: 0.2s;
    filter: grayscale(0%);

    user-select: auto;
    z-index: 1; 

    overflow-y: visible;
}

#container:has(input[type="checkbox"]:checked) + #bt-g-2 * {

    position: relative;
}

#container:has(input[type="checkbox"]:checked) + #bt-g-2 #bt-sp-2 {
    position: absolute;
}



#container:hover + #bt-g-2 * {
    position: relative;
}

#container:hover #bt {
    background-image: linear-gradient(to bottom, rgb(20, 20, 20), rgb(59, 61, 77));
    opacity: 100%;
}

#container:has(input[type="checkbox"]:checked) #bt {
    background-image: linear-gradient(to bottom, rgb(20, 20, 20), rgb(59, 61, 77));
    color: rgb(188, 193, 222);
}

#blimg {
    max-width: var(--image-width);
    margin-left: 1rem;
    margin-bottom: var(--st-spc-bot);
    margin-top: var(--st-spc-top);
    border-radius: 12px;border: var(--border-general);
    border-top: var(--border-top);
    border-bottom: var(--border-bottom);
    object-fit: cover;
    transition: 0.4s;
}

#blimg:hover {
    border: 1px solid rgb(221, 220, 220);
}

#bottomspacer {
    min-height: 200dvh;
}




#bltx {
    color: rgb(178, 178, 178);
    font-family: var(--standardfont-sans);
    font-size: 14pt;
    letter-spacing: +0.01em;
    margin-left: 1rem;
    border: var(--border-general);
    border-top: var(--border-top);
    border-bottom: var(--border-bottom);
    border-radius: 6px;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    padding-top: 1.4rem;
    padding-bottom: 0.5rem;
    max-width: var(--st-text-width);
    background-image: linear-gradient(to bottom, rgb(23, 23, 23), rgb(20, 20, 20));

    white-space: pre-wrap;

}

#bltx-l {
    margin-left: 1rem;
    color: rgb(178, 178, 178);
    transition: 0s;
    user-select: none;
    font-family: var(--standardfont-sans);
    
    padding-top: 3px;
    
    border: var(--border-general);
    border-top: var(--border-top);
    border-bottom: var(--border-bottom);
    border-radius: 10px;
    offset-distance: 4px;

    padding: 2px;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    padding-top: 3px;
    padding-bottom: 3px;

    background-image: linear-gradient(to bottom, rgb(60, 60, 60), rgb(20, 20, 20));
    display:block;
    height: 1.2rem;
    max-width: var(--st-text-width);
    margin-bottom: -2rem;
    margin-top: var(--st-spc-top);
    z-index:1;

    white-space: pre-wrap;
}

#bltx-l:hover {
    background-image: linear-gradient(to bottom, rgb(20, 20, 20), rgb(59, 61, 77));
    opacity: 100%;
}

#ttx {
    font-family: "Yale New Roman";
    font-size: 16pt;
    margin-left: 1rem;
    max-width: var(--st-text-width);
    color: rgb(178, 178, 178);
    margin-top: var(--st-spc-top);
    margin-bottom: var(--st-spc-bot);
    line-height: 1.1;
    border: var(--border-general);
    border-top: var(--border-top);
    border-bottom: var(--border-bottom);
    padding: 0.4rem;
    border-radius: 10px;
    padding-top: 1.5rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;

    white-space: pre-wrap;

}

#image-caption {
    margin-left: 1rem;
    color: rgb(178, 178, 178);
    transition: 0s;
    font-family: "Yale New Roman";
    font-size: 11pt;
    padding-top: 3px;
    border: var(--border-general);
    border-top: var(--border-top);
    border-bottom: var(--border-bottom);
    border-radius: 10px;
    offset-distance: 4px;
    padding: 2px;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    padding-top: 3px;
    padding-bottom: 5px;
    background-image: linear-gradient(to bottom, rgb(60, 60, 60), rgb(20, 20, 20));
    display:block;
    height: auto;
    max-width: calc(var(--image-width) - 1.6rem);
    margin-top: -1.8rem;
    margin-bottom: var(--st-spc-bot);
    z-index:1;
    white-space: pre-wrap;
}

#image-caption:hover {
    background-image: linear-gradient(to bottom, rgb(20, 20, 20), rgb(59, 61, 77));
    opacity: 100%;
}

#title {
    position: sticky;
    top: 10px;
    margin-top: 0.4rem;
    z-index: 4;
}

#title #bt {
    filter: drop-shadow(0px 6px 4px rgba(0, 0, 0, 0.6));
}

#obscureGhost {
    height: 5rem;
    width: inherit;
    background-image: linear-gradient(to bottom, rgba(250, 250, 250, 0), var(--bgColor));
    opacity: 100%;
    z-index: 99;
    opacity:0;
    position: absolute;
    user-select: none;

    pointer-events: none;

    display: flex;
    justify-content: center;
}

#obscureGhost p {
    text-align: center;
    font-size: 9pt;
    font-family: "Arial";
    text-transform: uppercase;
    letter-spacing: +0.05em;
    margin-top: 55px;
    color: rgb(154, 154, 154);
}

#container:has(input[type="checkbox"]:not(:checked)):hover ~ #obscureGhost {
    opacity: 100%;
    position: absolute;
}

::selection {
    background-color: rgb(168, 170, 193);
    color:rgb(58, 59, 83);
    text-decoration: underline 2px dotted;
}



:root {

  --bgColor: rgb(21, 21, 21);

  --standardfont-sans: Arial;
  --text-color: rgb(178, 178, 178);
 
  --border-general: 1px solid rgb(137, 137, 137);
  --border-top: 1px solid rgb(175, 175, 175);
  --border-bottom: 1px solid rgb(96, 101, 128);
  
  --image-width: 70%;
  --st-text-width: calc(70% - 1.6rem);
  --st-width: 22rem;

  --bthover-opacity: 40%;
  --bthover-position: relative;
  --bthover-transition: 1s;

  --macro-width: 60vw;

  --st-spc-top: 0.6rem;
  --st-spc-bot: 0.4rem;

}

@media screen and (max-width: 1000px) {

:root {
    --image-width: 90%;
    --st-text-width: calc(90% - 1.6rem);

    --bthover-opacity: 0%;
    --bthover-position: absolute;
    --bthover-transition: 0s;

    --macro-width: 100vw;
  }


  #blimg {
    max-width: var(--image-width);
  }

  #all {
    margin-left: -1.2rem;
  }

  #bt-g {
    width: 100vw;
    max-width: 100vw;
  }

  

  #bt:hover {
    background-image: linear-gradient(to bottom, rgb(20, 20, 20), rgb(59, 61, 77));
    opacity: 100%;
  }

  #container:hover + #bt-g-2 {
    opacity: var(--bthover-opacity);
    position: var(--bthover-position);
    transition: var(--bthover-transition);
    opacity: 0;
    position: absolute;
    transition: 0;
  }

  #container:has(input[type="checkbox"]:not(:checked)):hover ~ #obscureGhost {
    opacity: 0%;
    position: absolute;
}

  

}
