/**
 * Copyright (C) 2015, 2017 Akela <akela88@bk.ru>
 * Copyright (C) 2025 Nikita Tseykovets <tseikovets@rambler.ru>
 * This file is part of UrqW.
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

* {
    padding: 0;
    margin: 0;
}

button {
    display: block;
}

p {
    text-indent: 20px;
    display: inline;
}

#buttons, #input, #info {
    margin-top: 10px;
}

#info {
    text-align: center;
}

div.text {
    line-height: 22px;
    display: inline;
}

div.clearfix + div.text, #textfield div.text:first-child {
    padding-left: 20px;
}

#textfield {
    position: relative;
}

#textfield img {
    max-width: 100%;
}

#textfield a.button {
    cursor: pointer;
}

#textfield .text {
    white-space:pre-wrap;
}

#textfield table {
    width: 100%;
}

#inventory {
    right: 0;
    float: right;
    left: auto;
    text-align: right;
    min-width: 0;
    position: absolute;
    top: 100%;
    z-index: 1000;
    padding: 5px 0px;
    margin: 0 0px 0px;
    font-size: 14px;
    list-style: outside none none;
    background-color: #FFF;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.176);
}

#inventory span.glyphicon {
    color: #777;
    right: 2px;
    top: 2px;
}

.container {
    width: auto;
    max-width: 680px;
    padding: 0 15px;
}
.container .text-muted {
    margin: 20px 0;
}
.paragraph-block {
    display: block;
    margin: 10px 0;
}


/** footer */

html {
    position: relative;
    min-height: 100%;
}
body {
    /* Margin bottom by footer height */
    margin-bottom: 30px;
}
.footer {
    height: 30px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: right;
}


/** submenu */

.dropdown-menu, .navbar-nav .open .dropdown-menu {
    color: #333;
    position: absolute;
    min-width: 0;
    background-color: #FFF;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.176);
}

.navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: #333;
}

.dropdown-submenu {
    position:relative;
}
.dropdown-submenu>.dropdown-menu {
    top: 0;
    margin-top: -6px;
    left: auto;
    right: 100%;
    margin-left: 9px;
    -webkit-border-radius: 6px 0 0 6px;
    -moz-border-radius: 6px 0 0 6px;
    border-radius: 6px 0 0 6px;
}
.dropdown-submenu:hover>.dropdown-menu,
.dropdown-submenu:focus-within>.dropdown-menu,
.dropdown-submenu:focus>.dropdown-menu {
    display:block;
}
.dropdown-submenu>a:before {
    display: block;
    content: " ";
    float: left;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-right-color: #cccccc;
    border-left-width: 0;
    margin-top: 5px;
    margin-left: -10px;
}
.dropdown-submenu:hover>a:before,
.dropdown-submenu:focus-within>a:before,
.dropdown-submenu:focus>a:before {
    border-right-color:#ffffff;
}

/* To prevent navbar from collapsing */
.navbar-nav>li, .navbar-nav {
    float: left !important;
}

.navbar-nav.navbar-right:last-child {
    margin-right: 0 !important;
}

.navbar-right {
    float: right!important;
}