.admincp-button,
.db-button,
.git-button,
.logs-button,
.opcache-button
{
    z-index: 9999;
    border: 1px solid #805118 !important;
}

body
{
    padding-top: 56px;
    background-color: #000;
}

table.center tr th,
table.center tr td
{
    text-align: center;
}

.vaults
{
    table-layout: fixed;
    margin: 0;
    padding: 0;
    width: 192px;
    background: url(../img/misc_images/warehouse_item_block.jpg);
}

.vaults img
{
    top: 0;
    margin: 0 0 -3px 0;
    padding: 0;
    border: 0;
}

.menu-top
{
    position: fixed;
    width: 100%;
    z-index: 999;
    top: 0px;
    /*border-bottom: #fec16a 1px solid;*/
}

.menu-top .menu-logo
{
    float: left;
    max-height: 56px;
}

.menu-top .container
{
    width: 1210px;
}

.widget, .widget-usercp
{
    background: #0a0a0a;
    background: linear-gradient(to bottom, #0a0a0a, #2c2c2c);
    color: #fff;
}

.widget .widget-title, .widget-usercp .widget-title
{
    background: #160c27ad;
    color: #fff;
    border-bottom: #fec16a 1px solid;
    margin-bottom: 5px;
}

.hero-guide-block
{
    border-top: 2px solid #fec16a;
}

.status_block, .status_block .status_block-block
{
    background-color: #0007;
    background-image: none;
}

.btn-primary,
.rankings_menu a.btn-primary
{
    color: #fec16a;
    background: #1b1b1b;
    border-color: #101010;
    box-shadow: none !important;
}

.btn-primary:hover,
.rankings_menu a.btn-primary:hover,
.btn-primary.active,
.rankings_menu a.btn-primary.active
{
    background: #101010;
    color: white;
    box-shadow: none !important;
}

.button-login
{
    color: #fec16a;
    background: #1b1b1b;
    border-color: #101010;
}

.content-block .general-table-ui tr:first-child td
{
    color: #101010;
}

.paypal-gateway-form input[type=text]
{
    width: 145px;
}

.donation .thumbnail img
{
    height: 140px;
}

.panel-primary > .panel-heading
{
    background-color: #160c27;
    border-color: #160c27;
}

.item-preview
{
    background: #000;
    padding: 10px;
    opacity: 0.9;
    font-size: 12px;
}

.item-enchantments table td
{
    padding: 20px;
}

.item-enchantments
{
    border: 1px solid #cecece;
    background: #efefef;
}

.item-enchantments .label_radio
{
    margin-right: 10px;
    cursor: pointer;
}

.item-enchantments .label_radio:hover
{
    color: #444;
}

.item-enchantments select
{
    height: 40px;
    font-size: 14px;
    padding: 5px;
    width: 100%;
}

.item-enchantments form .btn.btn-primary
{
    float: right;;
}

.page-title
{
    text-align: left;
}

.webbank-wrapper .general-table-ui tr td
{
    background-color: white;
}

table.border-none tr th,
table.border-none tr td
{
    border: none;
}

.webbank-wrapper .general-table-ui tr:nth-child(2n+2) td,
.webbank-wrapper .general-table-ui tr td
{
    background-color: #f1f1f1;
}

.webbank-wrapper .general-table-ui tr:hover td
{
    background-color: #f5f5f5;
}

.webbank-wrapper .item-enchantments input[type="text"]
{
    height: 40px;
    font-size: 14px;
    padding: 5px;
    width: 100%;
    background-color: #fff;
}

.webbank-wrapper .item-enchantments .strong
{
    font-weight: bold;
}

.table1
{
    margin-left: auto;
    margin-right: auto;
}

.alert
{
    margin: 10px 0;
}

/* Marekt */
.market_body .market_header
{
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

.market_body .items
{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
}

.market_body .items .item
{
    flex: 0 0 33%;
    padding: 5px;
}

.market_body .items .item .item-content
{
    border: 1px solid #ccc;
    padding: 5px;
    height: 100%;
    min-height: 270px;
    font-size: 12px;
    position: relative;
    background: white;
}

.market_body .items .item .item-content input[type="submit"]
{
    bottom: 0px;
    position: absolute;
    width: 97%;
    left: 0;
    margin: 3px;
    font-weight: bold;
}

.market_body .items .item .item-content .middle > span:first-child
{
    font-size: 13px;
    padding: 1px 3px;
    margin: 2px 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: block;
}

.market_body .items .item .item-content .middle .price
{
    font-size: 14px;
    font-weight: bold;
}

.market_body .items .item .item-content .middle div
{
    margin: 3px 0;
}

.market_body .items .item .thumb
{
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.7);
    height: 50%;
    position: relative;
}

.market_body .items .item .thumb .image
{
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

#WzBoDy table
{
    width: 100% !important;
}

.market_pagination_active,
.market_pagination
{
    margin-left: 5px;
    margin-bottom: 5px;
}

.otickets-count-wrapper.new
{
    border-top: 2px solid yellow;
    border-left: 2px solid yellow;
    border-bottom: 2px solid yellow;
}

.otickets-count-wrapper
{
    position: fixed;
    right: 0px;
    top: 140px;
    padding: 20px;
    font-size: 16px;
    background-color: #1b1b1b;
    z-index: 9999;
    color: #fec16a;

}

.otickets-count-wrapper:hover,
.otickets-count-wrapper:active
{
    color: white;
}

/* Tracy Toggle Switch - Specific ID to avoid conflicts with sliders etc */
#sagitt-tracy-control.tracy-toggle-wrapper {
    position: fixed !important;
    right: 0px !important;
    top: 205px !important;
    z-index: 10000 !important;
    background-color: #1b1b1ba1 !important;
    padding: 8px !important;
    border-radius: 5px 0 0 5px !important;
    border: 1px solid #fec16a33 !important;
    border-right: none !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    transition: all .3s !important;
}

#sagitt-tracy-control.tracy-toggle-wrapper:hover {
    background-color: #1b1b1be0 !important;
    border-color: #fec16a !important;
    opacity: 1 !important;
    filter: grayscale(0) !important;
}

#sagitt-tracy-control.inactive {
    opacity: 0.6 !important;
    filter: grayscale(1) !important;
}

#sagitt-tracy-control .switch {
    position: relative !important;
    display: inline-block !important;
    width: 40px !important;
    height: 24px !important;
    margin: 0 !important;
}

#sagitt-tracy-control .switch input { 
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

#sagitt-tracy-control .slider-round {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #1b1b1b !important;
    border: 1px solid #fec16a !important;
    -webkit-transition: .4s !important;
    transition: .4s !important;
}

#sagitt-tracy-control .slider-round:before {
    position: absolute !important;
    content: "" !important;
    height: 16px !important;
    width: 16px !important;
    left: 3px !important;
    bottom: 3px !important;
    background-color: #fec16a !important;
    -webkit-transition: .4s !important;
    transition: .4s !important;
}

#sagitt-tracy-control input:checked + .slider-round {
    background-color: #160c27ad !important;
}

#sagitt-tracy-control input:checked + .slider-round:before {
    -webkit-transform: translateX(16px) !important;
    -ms-transform: translateX(16px) !important;
    transform: translateX(16px) !important;
    background-color: #00ff00 !important;
}

#sagitt-tracy-control .slider-round.round {
    border-radius: 24px !important;
}

#sagitt-tracy-control .slider-round.round:before {
    border-radius: 50% !important;
}

/* General Etern Toggle Switch */
.etern-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
    margin: 0;
    vertical-align: middle;
}

.etern-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.etern-switch .slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border: 1px solid #aaa;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 24px;
}

.etern-switch .slider-round:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #f1f1f1;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

.etern-switch:hover .slider-round {
    border-color: #fec16a;
    box-shadow: 0 0 5px rgba(254, 193, 106, 0.5);
}

.etern-switch input:checked + .slider-round {
    background-color: #2c2c2c;
    border-color: #fec16a;
}

.etern-switch input:checked + .slider-round:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
    background-color: #fec16a;
}

/* EternNotify - Floating Notifications */
#etern-notify-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10001;
    width: 300px;
    pointer-events: none;
    display: flex;
    flex-direction: column-reverse;
}

.etern-notify {
    position: relative;
    pointer-events: auto;
    margin-top: 10px;
    padding: 15px 20px;
    padding-left: 50px;
    background-color: #1b1b1b;
    color: #fff;
    border: 1px solid #444;
    border-left: 6px solid #fec16a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    overflow: hidden;
    animation: eternNotifySlideIn 0.4s ease forwards;
    transition: all 0.3s ease;
}

.etern-notify:hover {
    background-color: #222;
    border-color: #555;
    transform: translateX(-5px);
}

.etern-notify.success { border-left-color: #00ff00; }
.etern-notify.error { border-left-color: #ff4444; }
.etern-notify.info { border-left-color: #fec16a; }

.etern-notify:before {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Glyphicons Halflings';
    font-size: 20px;
}

.etern-notify.success:before { content: "\e013"; color: #00ff00; }
.etern-notify.error:before { content: "\e101"; color: #ff4444; }
.etern-notify.info:before { content: "\e086"; color: #fec16a; }

.etern-notify.fade-out {
    animation: eternNotifySlideOut 0.4s ease forwards;
}

@keyframes eternNotifySlideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes eternNotifySlideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

/** guides */
.guide-content
{
    font-family: 'Roboto', sans-serif !important;
}

.guide-content ul
{
    list-style: inherit;
    padding: 5px;
    padding-left: 20px;
}

.guide-content img
{
    max-width: 100%;
}

.promo-banner
{
    position: absolute;
    bottom: 0px;
    left: 35px;
    border: 2px solid #fec16a;
}

.promo-banner:hover
{
    border: 2px solid gold;
}

.guides-wrapper .panel
{
    box-shadow: none;
    -webkit-box-shadow: none;
}

.guides-wrapper .panel-heading
{
    color: black;
    background-color: #efefef;
    border: 1px solid #cecece;
    width: 33%;
}

.guides-wrapper .panel-heading.active,
.guides-wrapper .panel-heading:hover
{
    border-color: #160c27;
}

.guides-wrapper .category-wrapper
{
    margin-bottom: 10px;
    position: relative;
    border: none;
}

.guides-wrapper .category-wrapper .panel-title
{
    cursor: pointer;
}

.guides-wrapper .category-wrapper .category-content
{
    display: block;
    position: absolute;
    top: 0px;
    left: 34%;
    width: 66%;
    border: 1px solid #cecece;
    z-index: 100;
    padding: 0px;
}

.guides-wrapper .category-wrapper .category-content .guide:last-of-type a
{
    border-bottom: none;
}

.guides-wrapper .category-wrapper .category-content .guide a
{
    border: 1px solid #fff;
    border-bottom: 1px solid #cecece;
    padding: 10px 15px;
    display: block;
}

.guides-wrapper .category-wrapper .category-content .guide a:hover
{
    background-color: #efefef;
    border: 1px solid #160c27;
}

.ticket-message .message
{
    background-color: #add;
    border-radius: 10px 10px 10px 10px;
    -webkit-border-radius: 10px 10px 10px 10px;
    -moz-border-radius: 10px 10px 10px 10px;
    max-width: 80%;
    min-width: 40%;
    padding: 5px 10px;
    display: inline-block;
}

.ticket-message .message.reply
{
    background-color: #ddd;
    float: right;
}

.ticket-message .message .author
{
    font-weight: bold;
    margin-bottom: 5px;
}

.ticket-message .message .author .date
{
    font-size: 10px;
    float: right;
    text-align: right;
}

.ticket-message .message .content
{
    padding: 10px 0px;
}

table.dark-header th,
h4.dark-header,
.rankings-table tr:first-child td
{
    background-color: #2c2c2c;
    color: #fff;
}

h4.dark-header
{
    padding: 10px 5px;
    font-size: 16px;
}


.rankings-table tr:first-child td
{
    border-bottom: 3px solid #0c0c0c;
}

.info-span-l
{
    width: 90%;
}

.info-span-l,
.info-span-r
{
    line-height: 22px;
}

p.desc
{
    font-size: 11px;
    margin-top: 5px;
}

label.label
{
    color: black;
    padding-left: 0px;
    margin-bottom: 5px;
    display: inline-block;
}

.market_body .author.admin
{
    position: absolute;
    top: 5px;
    left: 10px;
    color: white;
}

.menu-top a.logo-wrapper
{
    position: relative;
    display: block;
    float: left;
}

.menu-top .menu-logo
{
    position: absolute;
    max-height: 160px;
    top: -21px;
}

@media (max-width: 768px)
{
    .f-login input,
    .p-login input
    {
        width: 100%;
    }
}

table.permanent-safe tbody td
{
    vertical-align: middle;;
}

.paypal-gateway-container .paypal-gateway-content
{
    background: #fff;
    border: 2px solid #2c2c2c;
}

.paypal-gateway-container  .paypal-gateway-logo
{
    background-color: #fff;
}

.paypal-gateway-continue input[type=submit]
{
    background: #1b1b1b;
}

.paypal-container .paypal-gateway-form input[type=text]
{
    width: 60px;
    border: 3px solid #fec16a;
    color: #fec16a;
}

.ticket-message .content img
{
    max-width: 100%;
}

img.eternal-promotion
{
    filter: brightness(120%);
    border: 1px solid gold;
}

.reset-time td,
.reset-time th
{
    padding: 5px 0 10px 0;
}

.reset-time td:not(:first-of-type)
{
    width: 100px;
    text-align: right;
}

.character-statistic td,
.character-statistic th
{
    padding: 5px 0 10px 0;
}

.character-statistic td:not(:first-of-type)
{
    width: 130px;
    text-align: right;
}


/* Advent event */
.advent-event-wrapper
{
    background-image: url("../img/xmas.png");
    background-size: cover;
    width: 100%;
    min-height: 430px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: space-between;
}

.advent-event-wrapper .day
{
    width: 90px;
    height: 90px;
    margin: 5px;
    background: rgba(35,35,35,0.3);
    border-radius: 15px;
    text-align: center;
}

.advent-event-wrapper .day a,
.advent-event-wrapper .day .gift
{
    width: 100%;
    height: 100%;
    display: block;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 34px;
    cursor: initial;
    border: 1px solid #A0A0A0;
    border-radius: 15px;
}

.advent-event-wrapper .day .gift
{
    padding: 17px;
}


.advent-event-wrapper .day.current a,
.advent-event-wrapper .day.allowed a
{
    border: 2px solid #FFFFFF;
    border-radius: 15px;
}

.advent-event-wrapper .day.current a:hover,
.advent-event-wrapper .day.allowed a:hover
{
    background: rgba(20,20,20,0.9);
    cursor: pointer;
}

.advent-event-wrapper .day .gift
{

    background: rgba(0,0,0,0.6);
}

.advent-event-wrapper .day .gift img
{
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.advent-event-wrapper .day .gift img:hover
{
    transition: opacity 1s;
    opacity: 1;
}


.advent-event-wrapper .day:not(.allowed) a
{
    cursor: default;
}

.advent-event-wrapper .day span.gift img
{
    cursor: help;
}

.advent-event-button-wrapper
{
    position: absolute;
    bottom: -20px;
}

.advent-event-button-wrapper span
{
    display: block;
    position: absolute;
    bottom: 1px;
    left: 345px;
    width: 600px;
    cursor: pointer;
    transition: width 1s;
}

.advent-event-button-wrapper img
{
    position: absolute;
    bottom: 1px;
    left: 345px;
    width: 600px;
    cursor: pointer;
    transition: width 1s;
}

.advent-event-button-wrapper img:hover
{
    transition: width 1s;
    width: 610px;
}

.guides-counter
{
    padding: 7px 15px;
    font-size: 13px;
    font-weight: bold;
    background-color: #777;
    border: 1px solid transparent;
    color: #fff;
    display: inline-block;
}

.guides-search-bar
{
    padding: 5px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

.guides-search-bar input[type="text"]
{
    min-width: 85%;
}

.form-group .help-block
{
    font-size: 12px;
}

.paypal-donation-wrapper .amount-wrapper
{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 20px;
}

.paypal-donation-wrapper #amount
{
    padding: 30px 15px;
    width: 130px;
    display: inline-block;
    font-size: 1.5em;
}

.paypal-donation-wrapper .reward-wrapper
{
    margin: 20px 10px;
    text-align: center;
}

.paypal-donation-wrapper .reward-wrapper #result,
.paypal-donation-wrapper .reward-wrapper .currency
{
    font-size: 1.3em;
    font-weight: bolder;
}

.countdown-wrapper
{
    height: 150px;
    width: 560px;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.6);
    font-size: 3em;
    padding: 30px;
    top: 150px;
    left: calc(50% - 280px);
    left: -webkit-calc(50% - 280px);
    text-align: center;
    font-weight: bold;
}

/*flex columns*/

.left-sidebar,
.right-sidebar
{
    display: flex;
    flex-flow: column;

}

.left-sidebar .widget:last-of-type,
.right-sidebar .widget:last-of-type
{
    flex-grow: 1;
}

.main_web {
    min-height: 1500px;
}

.discord-link img
{
    opacity: 0.8;
    transition: opacity 0.3s
}

.discord-link img:hover
{
    opacity: 1;
    transition: opacity 0.3s
}

.download-button.discord-link
{
    background: url(../img/discord.jpg) no-repeat;
}

.patch-notes .panel .panel-heading
{
    opacity: 0.9;
}

.patch-notes .panel:hover .panel-heading
{
    opacity: 1;
}

.patch-notes .panel.highlighted .panel-heading
{
    background-color: #B60c27;
}

.patch-notes .panel-body
{
    word-wrap: break-word;
}

.patch-notes .attachments
{
    margin-top: 10px;
}

.patch-notes .attachments img
{
    height: 100px;
    width: auto;
}

.patch-notes-widget .note-body
{
    font-size: 12px;
    line-height: 14px;
}

.patch-notes-widget .note:not(:last-child) .separator
{
    line-height: 1px;
    width: 50px;
    border-top: 1px dotted yellow;
    padding: 3px;
}

.text-page .panel-body,
.text-page .panel-body ul
{
    line-height: 1.5;
    text-align: justify;
}

.text-page h4:not(:first-child)
{
    margin-top: 10px;
}

.text-page .panel-body h4
{
    font-size: 16px;
}

.text-page ul
{
    list-style: inherit;
    padding: 5px;
    padding-left: 20px;
}

.version-info
{
    position: fixed;
    top: 55px;
    right: 0;
    padding: 10px;
    color: white;
    background-color: #160c27ad;
    z-index: 9999;
    line-height: 1.5;
}

/* Styl pro celoobrazovkový overlay */
#loadingOverlay {
    position: fixed; /* Fixní pozice vzhledem k viewportu */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Poloprůhledné černé pozadí */
    z-index: 9999; /* Zajišťuje, že je nad vším ostatním */
    display: flex; /* Pro centrování obsahu */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
}

/* Základní styl pro spinner (jednoduchý CSS kruh) */
.spinner {
    border: 4px solid #f3f3f3; /* Světle šedý kruh */
    border-top: 4px solid #3498db; /* Modrý okraj, který se bude otáčet */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite; /* Animace otáčení */
    margin-bottom: 10px;
}

/* Animace otáčení */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


