/*Canopy - The next generation of stoner streaming software
Copyright (C) 2024-2025 Rainbownapkin and the TTN Community

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.*/

/* Global Styles */
html{
    height: 100%;
}

body{
    min-height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

form{
    display: flex;
    flex-direction: column;
    padding: 1em;
}

table{
    border-spacing: 0px;
    width: 100%
}

td{
    padding: 0.3em 1em;
    text-align: center;
}

td.large{
    text-align: left;
}

div.control-prompt{
    display: flex;
    flex-direction: row;
    margin: 0.5em 0;
    padding: 0.2em 0.5em;
}

i.control-prompt{
    height: 1em;
    margin: auto;
    margin-left: 0.5em;
    cursor: pointer;
}

input.control-prompt{
    width: 100%;
    flex: 1;
}

div.dynamic-container, div.nested-dynamic-container{
    overflow: auto;
}

.interactive{
    cursor: pointer;
    user-select: none;
}

.seperator{
    display: block;
    width: 100%;
    height: 1px;
    margin: 0.5em 0;
}

button i{
    /* Yeah I don't need event.target returning icons, thanks babe */
    /* Granted most buttons should just hold the icon class themselves, some buttons with multiple icons in need this :P */
    pointer-events: none;
}

/* Navbar */
#navbar{
    display: flex;
    padding: 0.5em;
    justify-content: space-between;
}

.navbar-item{
    display: inline;
    padding: 0;
    margin: 0;
}

#instance-title{
    font-size: 1.2em;
}

p.navbar-item, input.navbar-item{
    font-size: 0.8em;
}

.navbar-item input{
    padding: 0.2em;
}

/* Popup Container */

.popup-backer{
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 9000;
}

.popup-div{
    position: fixed;
    display: flex;
    flex-direction: column;
    margin: auto;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    height: fit-content;
    width: fit-content;
    /*This joke is probably old enough to drink by now*/
    z-index: 9001;
}

.popup-close-icon{
    text-align: right;
    position:absolute;
    right: 0;
    margin: 0.5em;
    margin-bottom: 0;
    cursor: pointer;
}

.popup-content-div{
    margin: 1em;
    padding-top: 0.2em;
}

.popup-title{
    margin-top: 0;
}

.popup-plaintext-content{
    text-align: center;
}

/* tooltip */
div.tooltip{
    position: fixed;
    pointer-events: all;
    min-width: 1em;
    min-height: 1em;
    padding: 0.5em;
    z-index: 20;
}

p.tooltip, h3.tooltip{
    margin: 0 auto;
}

/* context menu */
.context-menu{
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.context-menu h2{
    margin: 0;
    text-align: center;
}

.context-menu button{
    margin: 2px 0;
}

.spoiler:not(:hover){
    color: black;
    background-color: black;
    filter: brightness(0);

    .interactive, a, img, video{
        color: black;
        background-color: black;
        filter: brightness(0);
    }
}

.strikethrough{
    text-decoration: line-through;
}

.strikethrough img, .strikethrough video, img.strikethrough, video.strikethrough{
    /* Oh yeah? Well, I'll just make my own damn strikethrough! With blackjack, and hookers! */
    filter: url('/img/strikethrough.svg#strikethroughFilter');
}

.bold{
    font-weight: bold;
}

.bold img, .bold video, img.bold, video.bold{
    max-height: 14em;
}

.italics{
    font-style: italic; 
}

.italics img, .italics video, img.italics, video.italics{
    transform: skew(-6deg);
    transform-origin: 50% 100%;
}

.qoute{
    font-family: monospace;
}

/* psa */
#psa-body{
    padding: 1em;
    display: flex;
}

#psa-closer{
    float: right;
}

a.psa{
    font-size: 1.5em;
    text-align: center;
    width: 100%;
}