/*------------------------------------*\ 
    #CONTENTS
/*------------------------------------*/ 
/**

*SETTINGS
**root . . . . . . . root settings apply everywhere

*POPUPS
**nice-popup . . . . a tool for general popups
**popup-dialog . . . controls background color and border for popups
**popup-container  . holds all popup-contents
**popup-contents . . all visible elements of a popup
**popup-images . . . all images including button images

*VIDEO
**nice-video . . . . shows youtube videos on the top right

**/

/*------------------------------------*\
    #SETTINGS
\*------------------------------------*/
:root {
    --palette-serika-1: #525146;
    --palette-serika-2: #d8d6c3;
    --palette-serika-3: #bfb716;
    --palette-serika-4: #718F94;
    --palette-serika-5: #282828;

    --z-base: 0;
    --z-sidebar: 5;
    --z-dropdown: 10;
    --z-overlay: 20;

    --popup-size: 200px;

    --sidebar-height: 8rem; /*for vertical screens*/ /*find in general.cs*/
}

@property --popup-top{ /*changes depending on if the sidebar is top aligned or not.*/
    syntax: "<length>";
    inherits: true;
    initial-value: 0px;
}

/*------------------------------------*\ 
    #POPUPS
/*------------------------------------*/ 
.nice-popup {
    position: absolute;
    
    top: var(--popup-top);
    right: 0;

    --ratio: 2;
    width: calc(var(--popup-size) * 2);
    height: var(--popup-size);

    z-index: var(--z-overlay);

    background-color: transparent;
}

@media (orientation: portrait) {
    .nice-popup{
        --popup-top: var(--sidebar-height)
    }
}

.popup-dialog{
    background-color: var(--palette-serika-5);
    border-color: var(--palette-serika-1);

    --border-ratio: 100;
    border-radius: calc(var(--popup-size) / var(--border-ratio));
    --padding-ratio: 50; 
    padding: calc(var(--popup-size) / var(--padding-ratio));
}

.popup-container{
    display: flex;

    /*center everything in popup*/
    flex-direction: column;
    justify-content: center;
    text-align: center;
    /*will need children containers so it's not all one big line*/

    background-color: var(--palette-serika-5);
    color: var(--palette-serika-2);
}

.popup-contents{
    size: 10px;
}

.popup-images{
    --size: 32px;
    width: var(--size);
    height: var(--size);
}

.invisible-popup{
    opacity: 0;
    pointer-events: none;
}

/*------------------------------------*\ 
    #VIDEO
/*------------------------------------*/ 
.nice-video {
    position: absolute;
    
    top: var(--popup-top);
    pointer-events: auto;
    right: 0;

    z-index: var(--z-overlay);
}

/*------------------------------------*\ 
    #SIDEBAR
/*------------------------------------*/ 

/*HIDDEN SIDEBAR:*/
.hidden-sidebar{
    position: fixed;
    background-color: #115f6d00;
    border: none !important;
    box-shadow: none;
}

.hidden-sidebar:hover, .hidden-sidebar_hover{
    background-color: #6bc8d823;
}

@media (orientation: landscape) {
    .hidden-sidebar{
        width: 10px;
    }
}

.hide-bg-button{
    position: fixed;
    background-color: transparent;
    top: 500px;
    border-color: transparent;
    left: 0px;
    z-index: var(--z-overlay);
}