/* Thanks Mavir for the design */

/* Handle */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-thumb {
    background: #008000;
}

body {
    margin: auto;
    max-width: 550px;
    background-attachment: fixed;
    /* New atmospheric background */
    background-color: #262626;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"%3E%3Cpath fill="%233a3a3a" fill-opacity="0.4" d="M1 3h1v1H1V3zm2-2h1v1H3V1z"%3E%3C/path%3E%3C/svg%3E');
    color: #7A7B74;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: #C7C7C0;
}

.main {
    /* Removed background-image to let body background show through */
    background-color: transparent;
    padding: 0px 0px 60px 0px;
    min-height: 100vh;
}

/* title blocks */
.top_masiv {
    max-width: 550px;
    background: url(/style/img/i/z3.png);
    background-color: #363C38;
    text-shadow: 0px 0px 1px #747570;
    font-size: 18px;
    height: 79px;
}

/* meny */
.title {
    background: url(/style/img/i/fon_title.jpg);
    background-color: #0D0D0B;
    color: #C7C7C0;
    line-height: 2.3em;
    height: 35px;
    text-align: center;
    font-size: 15px;
}

/* inventar */
.title_ramka {
    border: 22px solid #242422;
    border-image: url(/style/img/i/fon_boi_botm_cop.jpg) 24 round round;
    -o-border-image: url(/style/img/i/fon_boi_botm_cop.jpg) 24 round round;
    -webkit-border-image: url(/style/img/i/fon_boi_botm_cop.jpg) 24 round round;
    -moz-border-image: url(/style/img/i/fon_boi_botm_cop.jpg) 24 round round;
}

.inventar_ramka {
    margin: 0px 0px 10px 0px;
    border: 24px solid #242422;
    border-image: url(/style/img/i/ramka1.png) 24 round round;
    -o-border-image: url(/style/img/i/ramka1.png) 24 round round;
    -webkit-border-image: url(/style/img/i/ramka1.png) 24 round round;
    -moz-border-image: url(/style/img/i/ramka1.png) 24 round round;
}

.inventar_fon {
    background-color: #131313;
    background-image: url(/style/img/i/fon_inventar.png);
    margin: 2px -10px 0px -10px;
    min-height: 32vh;
}

.schet {
    color: #B1B1AB;
    font-size: 0.8em;
    padding-right: 7px;
    padding-bottom: 3px;
    text-align: right;
    display: inline-block;
    width: 30px;
    margin-left: -38px;
}

.fon_invent_tru {
    display: inline-block;
    height: 52px;
    width: 57px;
    text-align: center;
    background-image: url(/style/img/i/fon_inventar_true.png);
    padding-top: 5px;
    vertical-align: bottom;
    background-color: #090909;
}

a.fon_invent_tru:hover {
    background-color: #281F13;
    background-image: url(/style/img/i/fon_inventar_vibor.png);
}

.fon_invent_nadet {
    background-color: #242D2A;
    background-image: url(/style/img/i/fon_inventar_nadet.png);
}

.fon_invent_tru2 {
    display: inline-block;
    height: 52px;
    width: 114px;
    text-align: center;
    background-image: url(/style/img/i/fon_inventar_true2.png);
    padding-top: 5px;
    vertical-align: bottom;
    background-color: #090909;
}

a.fon_invent_tru2:hover {
    background-color: #281F13;
    background-image: url(/style/img/i/fon_inventar_vibor2.png);
}

.fon_invent_nadet2 {
    background-color: #242D2A;
    background-image: url(/style/img/i/fon_inventar_nadet2.png);
}

.fon_invent_tru4 {
    display: inline-block;
    height: 161px;
    width: 114px;
    text-align: center;
    background-image: url(/style/img/i/fon_inventar_true4.png);
    padding-top: 10px;
    background-color: #090909;
}

a.fon_invent_tru4:hover {
    background-color: #281F13;
    background-image: url(/style/img/i/fon_inventar_vibor4.png);
}

.fon_invent_nadet4 {
    background-color: #242D2A;
    background-image: url(/style/img/i/fon_inventar_nadet4.png);
}

/* This is a duplicate selector from the original code, it might override other styles */
a.fon_invent_tru:hover {
    background-color: #281F13;
    background-image: url(/style/img/i/fon_inventar_vibor4.png);
}

.inventar_ramka2 {
    margin: 0px 0px 3px 0px;
    border: 3px solid #242422;
    border-image: url(/style/img/i/ramka2.png) 3 round round;
    -o-border-image: url(/style/img/i/ramka2.png) 3 round round;
    -webkit-border-image: url(/style/img/i/ramka2.png) 3 round round;
    -moz-border-image: url(/style/img/i/ramka2.png) 3 round round;
}

.inventar_fon2 {
    padding: 1px 8px 1px 8px;
    background-color: #131313;
    background-image: url(/style/img/i/fon_inventar.png);
}

.inventar_fon3 {
    padding: 1px 8px 1px 8px;
    background-color: #131313;
    background: url(/style/img/i/fon3.webp);
}

/* otveti */
.error {
    color: #E4E4E4;
    border: 1px solid #880000;
    background: repeating-linear-gradient( 45deg, #380000, #380000 10px, #440000 10px, #440000 20px);
    padding: 6px 2px 6px 2px;
    display: block;
    text-align: center;
}

/* stranica */
.ramka2bottom {
    color: #797A75;
    padding: 7px 20px 11px 20px;
    margin: 23px -8px 0px -8px;
    background-color: #0E0E0E;
    background-image: url(/style/img/i/ramka2bottom.png);
    background-size: contain;
    height: 30px;
}

/* clic */
.actions {
    padding: 1px 8px 1px 8px;
    margin: 0px 2px 0px 2px;
    background-color: rgba(104, 106, 95, 0.9);
    border-top: 1px solid #777777;
    border: 1px solid #555555;
    border-radius: 3px;
    display: inline-block;
    width: 24px;
    text-align: center;
}

/* forma sms */
.forma2 {
    border: none;
    outline: none;
    -webkit-appearance: none;
    display: inline-block;
    background: #292C2C;
    border-radius: 4px;
    padding: 0px 5px 0px 5px;
    width: 100%;
    height: 30px;
    resize: none;
    color: #848B97;
}

.forma2 a {
    color: #848B97;
}

.forma3 {
    background: url(/style/img/i/otprav.png) no-repeat center left;
    padding: 12px;
    width: 24px;
    border: 0px;
}

/* navigaci */
.navigaci_lin {
    font-style: italic;
    background-color: #141414;
    border-top: 1px solid #0D0D0D;
    border-bottom: 1px solid #1A1A1A;
    margin: 12px 0px 12px 0px;
    padding-left: 9px;
}

.navigaci {
    display: inline-block;
    padding: 8px 4px 6px 0px;
    color: #72736D;
    font-size: 0.9em;
}

a.navigaci:hover {
    color: #759739;
}

.navigaci_tru {
    color: #555652;
}

a.navigaci_tru:hover {
    color: #828282;
}

.raz11 {
    border: 2px solid #60606030;
    border-radius: 2px;
    padding: 5px;
    margin: 5px;
    background: #8383830d;
    color: #747474bf;
    display: block;
    font-size: 13px;
}

a.raz11:hover {
    color: #ACACACBF;
}

.raz {
    display: block;
    margin-bottom: 1px;
    padding: 7px 6px;
    font-weight: bold;
    color: #c15f23;
    background: #000;
}

.raz:hover {
    background: #0a0a0a;
}

.raz2 {
    border-radius: 3px;
    padding: 1px;
    margin: 4px -4px 4px -4px;
    background: #38383824;
    border: 1px solid #403f3f40;
    display: block;
}

.raz2:hover {
    background: url(/style/img/i/news_li_bg.png);
}

.raz3 {
    padding: 5px;
    margin: 4px -8px 4px -8px;
    border-top: 1px solid #202222;
    display: block;
}

.razokno {
    background: linear-gradient(0deg, rgb(16 16 16), #121212 60%, #121212);
    padding: 4px;
    width: 40px;
    height: 40px;
    line-height: 25px;
    box-shadow: inset 0px 0px 7px -2px rgb(0 0 0);
    border: 1px solid rgb(52 52 52 / 58%);
    border-radius: 6px;
    text-align: center;
}

.razokno2 {
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 10px 7px 10px;
    box-shadow: inset 0px 0px 4px -2px rgb(0 0 0);
    border: 1px solid rgb(52 52 52 / 58%);
    border-radius: 3px;
    text-align: center;
}

.pagination {
    display: inline-block;
    height: 24px;
    min-width: 24px;
    line-height: 24px;
    font-size: 12px;
    text-decoration: none;
    text-align: center;
    border-radius: 3px;
    background: #dddddd14;
    border: 1px solid #0000001a;
    color: #b9b9b9;
}

/*boi*/
.hpvar {
    margin-top: -15px;
    text-align: center;
    background: #545454;
    border-radius: 2px 0px 2px 0px;
    display: inline-block;
    padding: 2px 4px 0px 2px;
    color: #FFFFFF;
}

/*bottom blocks*/
.futor {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 550px;
}

.gray_lin {
    border-top: 1px solid #54544;
    background: url(/style/img/i/fon_bottom2.png);
}

/*collor*/
.gray { color: #848585; }
.gray2 { color: #848585; }
.gray3 { color: #CCCCCC; }
.blue { color: #6FBEFF; }
.blue2 { color: #3432E0; }
.redi { color: #D53E3E; }
.redi2 { color: #FF0000; }
.grin { color: #0ECD0E; }
.grin2 { color: #45AF45; }
.blak { color: #000000; }
.aloy { color: #FF00FF; }
.aloy2 { color: #8977CA; }
.aloy3 { color: #B6AAE4; }
.orenj { color: #FF6600; }
.orenj2 { color: #E17100; }
.elou { color: #FFFF00; }
.elou2 { color: #E8BF73; }

/*txt_none*/
.none {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*img_none*/
img2 {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.navod {
    opacity: 0.67;
}

a.navod:hover {
    opacity: 1.0;
}

.cvet {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

a.cvet:hover {
    -webkit-filter: grayscale(0%);
    filter: grayscale(0%);
}

/*saiz*/
.saiz_4 { font-size: 10px; }
.saiz_3 { font-size: 11px; }
.saiz_2 { font-size: 12px; }
.saiz_1 { font-size: 13px; }
.saiz0 { font-size: 14px; }
.saiz1 { font-size: 15px; }
.saiz2 { font-size: 16px; }
.saiz3 { font-size: 17px; }
.saiz4 { font-size: 18px; }


/* --- S.T.A.L.K.E.R. PDA Interface (Ultra Compact v2) --- */

/* Main container for the actions list */
.pda-container {
    background-color: transparent;
    border: none;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    margin: 5px 0;
}

/* Scanlines effect removed */
.pda-container.scanlines::before {
    display: none;
}

/* Header for the block */
.pda-header {
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid #4B5563;
    background-color: rgba(31, 41, 55, 0.5);
}

.pda-header h1 {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #f59e0b; /* amber-400 */
    letter-spacing: 0.05em;
    margin: 0;
}

.pda-header p {
    font-size: 0.6rem;
    color: #9CA3AF;
    margin: 0;
}

/* List container */
.pda-list {
    /* No changes needed */
}

/* Action links */
a.pda-link {
    display: flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-bottom: 1px solid #374151;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

a.pda-link:last-child {
    border-bottom: none;
}

a.pda-link .icon-container {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    background-color: #374151;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #4B5563;
    transition: border-color 0.2s;
    margin-right: 0.5rem;
}

a.pda-link .icon-svg,
a.pda-link .icon-img {
    height: 0.9rem;
    width: 0.9rem;
    color: #9CA3AF;
    transition: color 0.2s;
}

a.pda-link .text-container {
    flex-grow: 1;
    margin-left: 0;
    line-height: 1.1;
}

a.pda-link .pda-title {
    font-weight: 600;
    font-size: 0.8rem;
}

a.pda-link .pda-subtitle {
    font-size: 0.65rem;
    color: #9CA3AF;
}

a.pda-link .arrow-container {
    color: #4B5563;
    transition: transform 0.2s, color 0.2s;
}

a.pda-link .arrow-svg {
    height: 0.8rem;
    width: 0.8rem;
}

/* --- Hover states & specific colors --- */

/* NPC Link */
a.pda-link-npc:hover {
    background-color: #4a2c0a;
}

a.pda-link-npc:hover .icon-container {
    border-color: #f59e0b;
}

a.pda-link-npc:hover .icon-svg,
a.pda-link-npc:hover .icon-img {
    filter: brightness(1.2);
}

a.pda-link-npc .pda-title {
    color: #f59e0b;
}

a.pda-link-npc:hover .pda-title {
    color: #FBBF24;
}

a.pda-link-npc:hover .arrow-container {
    color: #f59e0b;
    transform: translateX(2px);
}

/* Transition Link */
a.pda-link-transition {
    background-color: rgba(4, 120, 87, 0.5);
}

a.pda-link-transition .pda-title {
    color: #34D399;
}

a.pda-link-transition .icon-container {
    border-color: #34D399;
}

a.pda-link-transition .icon-svg {
    color: #6EE7B7;
}

a.pda-link-transition .arrow-container {
    color: #34D399;
}

a.pda-link-transition:hover {
    background-color: rgba(4, 120, 87, 0.7);
}

a.pda-link-transition:hover .pda-title {
    color: #A7F3D0;
}

a.pda-link-transition:hover .arrow-container {
    transform: translateX(2px);
}

/* Default Link for other items */
a.pda-link-default:hover {
    background-color: rgba(55, 65, 81, 0.5);
}

a.pda-link-default:hover .icon-container {
    border-color: #9CA3AF;
}

a.pda-link-default:hover .pda-title {
    color: #D1D5DB;
}

a.pda-link-default:hover .icon-svg,
a.pda-link-default:hover .icon-img {
    filter: brightness(1.1);
}

a.pda-link-default:hover .arrow-container {
    color: #9CA3AF;
    transform: translateX(2px);
}
