:root {
    --theme-light: #cbcbcb;
    --theme-dark: rgb(20, 20, 20);
    --background-secondary: rgba(0, 0, 0, 0.6);
    --hover-dark: rgb(220, 220, 220);
    --highlight: rgb(100, 206, 255);
    --highlight-rgba: rgba(100, 206, 255, 0.6);
}

body {
    background-color: var(--theme-dark);
    color: white;
    font-family: monospace;
    overflow: hidden;
}

body.light {
    background-color: var(--theme-light);
    color: black;
}

button {
    background: var(--highlight-rgba);
    color: white;
    border: 3px var(--highlight) solid;
    border-radius: 10px;
    outline: none;
    font-family: monospace;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
}

input[type="text"] {
    width: 300px;
    font-family: monospace;
    color: var(--highlight);
    border: none;
    outline: none;
    border-bottom: 2px var(--highlight) solid;
    font-size: 16px;
    background: none;
}

.nuts-container {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.nuts {
    position: absolute;
    left: calc(50% - 75px);
    top: calc(50% - 75px);
    width: 100%;
}

.nut {
    position: absolute;
    display: block;
    outline: 1px var(--hover-dark) solid;
    width: 150px;
    height: 150px;
    background-size: cover;
}

.nut:not(.hover-nut) {
    cursor: pointer;
}

.light .nut {
    outline: 1px black solid;
}

.nut.type1 {
    background-image: url("./orzeszki/1-full.png")
}

.nut.type2 {
    background-image: url("./orzeszki/2-full.png");
}

.nut.type3 {
    background-image: url("./orzeszki/3-full.png");
}

.nut.type4-special {
    background-image: url("./orzeszki/4-full.gif");
}

.nut.type5 {
    background-image: url("./orzeszki/5-full.png");
}

.nut.type6 {
    background-image: url("./orzeszki/6-full.png")
}

.signer {
    position: absolute;
    left: 0px;
    top: 0px;
    width: calc(100% - 4px);
    height: 18px;
    padding: 2px 2px;
    background: var(--background-secondary);
}

.bottom-panel {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 80px;
    background: var(--background-secondary);
    backdrop-filter: blur(10px);
    color: white;
}

.bottom-panel .buttons {
    position: absolute;
    bottom: 5px;
    left: 5px;
    display: flex;
}

.bottom-panel .buttons * {
    margin-left: 10px;
    cursor: pointer;
}

.bottom-panel .buttons a, .bottom-panel .buttons a:visited {
    color: white;
    text-decoration: none;
}

.bottom-panel .buttons *:hover {
    color: var(--hover-dark) !important;
}

.folding-text {
    margin-top: 5px;
    margin-left: 15px;
    width: calc(100% - 30px);
    font-size: 20px;
}

.popout .close-popout {
    position: absolute;
    right: 25px;
    top: 5px;
    cursor: pointer;
}

.nut-form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(10px);
    background: var(--background-secondary);
    padding: 20px 20px;
    border-radius: 15px;
    width: 640px;
    height: 290px;
}

.nut-form h1,
.nut-form input {
    text-align: center;
}

.nut-form input {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.nut-form button {
    float: right;
    margin-top: 10px;
}

.nut-showcase img {
    width: 150px;
    height: 150px;
    cursor: pointer;
    border-radius: 10px;
}

.nut-showcase img.selected {
    border: 5px var(--highlight) solid;
    position: relative;
    top: 4px;
}

.panel2 .btm {
    position: absolute;
    width: calc(100% - 40px);
    bottom: 22px;
}

.send-disclaimer {
    display: inline-block;
    position: relative;
    top: 30px;
}

* {
    user-select: none;
}
