/*
Copyright 2025 Lim Ding Wen

This file is part of Tokens.

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

Tokens 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 General Public License for more details.

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

@font-face {
    font-family: "Archivo Narrow";
    font-weight: normal;
    src: url("fonts/ArchivoNarrow-Regular.otf");
}

/* Remove default browser margins and padding */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background-image: url("img/background.jpg");
    background-size: cover;
}

noscript {
    position: absolute;
    font-family: "Archivo Narrow", sans-serif;
    font-size: 32px;
    margin: 10px;
    color: black;
}

#yesscript {
    display: none;
}

#dynamic {
    overflow: hidden;
}

.note {
    position: absolute;
    width: 150px;
    height: 150px;
    background-size: 150px 150px;
    background-position: center;
    background-image: url("img/note.svg");
}

.note #text {
    position: relative;
    font-family: "Archivo Narrow", sans-serif;
    font-size: 12px;
    margin: 30px;
    width: 90px;
    height: 90px;
    background: none;
    border: none;
    resize: none;
}

.note #text,
.note #text:disabled {
    color: black;
}

.token {
    position: absolute;
    width: 50px;
    height: 50px;
    background-size: 50px 50px;
    background-position: center;
}

.token-red {
    background-image: url("img/tokens/red.png");
}

.token-green {
    background-image: url("img/tokens/green.png");
}

.token-blue {
    background-image: url("img/tokens/blue.png");
}

.token-yellow {
    background-image: url("img/tokens/yellow.png");
}

.delete {
    opacity: 20%;
}

/* TODO: Re-enable when resorting by updated is implemented */
/* .picked-up {
    filter: drop-shadow(0px 10px 10px #444444);
    z-index: 1;
} */

#navbar {
    position: absolute;
    left: 50%;
    bottom: 5%;
    transform: translate(-50%, 0%);
    width: 315px;
    height: 36px;
    background-image: linear-gradient(to bottom, #444 0%, #555 49%, #444 51%, #333 100%);
    border-radius: 5px;
    padding: 5px;
    box-shadow: 0px 0px 5px #222;
}

#navbar #normal,
#navbar #preview {
    display: none;
}

#navbar #normal,
#navbar #normal img {
    height: 100%;
}

#navbar #preview #explanation {
    font-family: "Archivo Narrow", sans-serif;
    text-align: center;
    color: white;
    font-size: 16px;
}

#navbar #preview #buttons {
    width: fit-content;
    margin-top: 5px;
    margin-left: auto;
    margin-right: auto;
}

#dialog-confirm,
#dialog-confirm-delete,
#dialog-export,
#dialog-about {
    display: none;
}

#dialog-export #link {
    width: 100%;
    height: 200px;
    box-sizing: border-box;
    resize: none;
}

#dialog-export #copy {
    margin-top: 10px;
}

#trash {
    float: right;
}