@font-face {
    font-family: 'Hubot Sans';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/HubotSans-Regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Hubot Sans';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/HubotSans-Medium.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Hubot Sans';
    font-style: normal;
    font-weight: 300;
    font-stretch: expanded;
    src: url('fonts/HubotSansExpanded-Light.woff2') format('woff2');
    font-display: swap;
}

/* Base */
* {
    box-sizing: border-box;
    font-family: 'Hubot Sans', Arial, sans-serif;
    font-size: 16px;
}

h1 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
}
.h1-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    margin-bottom: 20px;
    animation: sway 6s ease-in-out infinite;
    transform-origin: bottom center; 
}
@keyframes sway {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(0.5deg);
  }
  75% {
    transform: rotate(-0.5deg);
  }
}
h3 {
    font-size: 1.25rem;
    font-weight: 700;
    padding-bottom: 5px;
    border-bottom: 1px solid #333;
}
i {
    font-size: 0.8rem;
}

html {
    display: flex;
    justify-content: center;
    align-items: center;

    background: #121212;
    background: linear-gradient(
        135deg,
        #000000 25%,
        #0a0a0a 25%,
        #0a0a0a 50%,
        #000000 50%,
        #000000 75%,
        #0a0a0a 75%,
        #0a0a0a
    );

    background-size: 40px 40px;
    box-shadow: inset 0 0 200px rgba(122, 211, 154, 0.15);
    animation: move 4s linear infinite;
}

@keyframes move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 40px;
  }
}

body {
    background: #000;
    color: #f5f5f5;
    margin: 0;
    padding: 28px;
    font-size: 16px;
    max-width: 1000px;
    min-height: 100vh;
    border-left: 2px solid rgba(146, 146, 146, 0.2);
    border-right: 2px solid rgba(146, 146, 146, 0.2);
    min-width: 40vw;
}

#main-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#load-map-button {
    border: 1px solid #7ad39a;
    font-weight: 900;
    color: #7ad39a;
}

#tool-warning {
    color: orange;
    font-size: 0.9rem;
}

body, input, button, select, textarea {
    font-family: inherit;
}

h1 {
    margin-top: 0;
    color: #fff;
}

.section {
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid #222;
    background: #080808;
    border-radius: 4px;
}
.status-section {
    padding-top: 0;
    padding-bottom: 0;
}
#progress {
    margin-bottom: 15px;
}

.error { color: #ff6b6b; font-weight: 700 }
.success { color: #7ad39a; font-weight: 700 }

/* List */
#list-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #333;
    padding: 6px;
    margin-top: 10px;
    user-select: none;
}
.controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}
.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.field-label {
    font-size: 0.85em;
    color: #aaa;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.button-group {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}
input, select {
    font-size: 15px;
}

#status-message {
    font-size: 15px;
}
small {
    font-size: 0.7rem;
    opacity: 0.6;
}
small * {
    font-size: 0.7rem;
}

.hidden { display: none }
.item-row {
    padding: 6px 8px;
    cursor: pointer;
    border-bottom: 1px solid #111;
    font-size: 16px;
}
.item-row:hover { background: #0f0f0f }
.item-row.selected { background: #449561; color: #fff }
.item-row.selected:hover { background: #5ecf88}

.controls { display:flex; gap:8px; flex-wrap:wrap }

input[type="text"],
select {
    padding: 8px 10px;
    border-radius: 3px;
    border: 1px solid #333;
    background: #050505;
    color: #eee;
}

select {
    cursor: pointer;
}

#crypt-main-output {
    font-size: 13px;
    color: #7ad39a;
    font-family: 'Hubot Sans';
    font-style: italic;
}
#btn-apply-crypto {
    border: 1px solid grey;
    width: 100%;
    margin-top: 50px;
}
#btn-apply {
    width: 100%;
}

.item-row.selected select {
    border: 1px solid #333;
    background: #449561;
    color: #eee;
}

.item-row select {
    margin: 10px 0 0;
}

button {
    padding:8px 12px;
    border-radius:4px;
    border:1px solid #333;
    background:#0d0d0d;
    color:#f5f5f5;
    cursor:pointer;
}
button:hover { background:#151515 }
button:disabled { opacity: 0.45; cursor: not-allowed }

textarea {
    width:100%;
    height:200px;
    font-family:monospace;
    background:#050505;
    color:#f5f5f5;
    border:1px solid #222;
    padding:12px;
    border-radius:4px;
}

.code-path {
    font-family: Consolas, Monaco, monospace;
    font-size:0.95rem;
    background:#050505;
    color:#f5f5f5;
    padding:8px 10px;
    border:1px solid #222;
    border-radius:3px;
}

.instruction-box {
    background-color: #0f0f0f;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}
.instruction-box h3 {
    margin-top: 0;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}
.instruction-box ol {
    margin: 20px 0;
    padding-left: 20px;
}
.instruction-box li {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #ccc;
}
.instruction-box b {
    color: #fff;
}
kbd, code {
    background-color: #2a2a2a;
    border: 1px solid #555;
    border-radius: 3px;
    box-shadow: 0 1px 0 #000;
    color: #fff;
    display: inline-block;
    font-size: 0.85em;
    font-family: inherit;
    font-weight: bold;
    padding: 3px 8px;
    white-space: nowrap;
}
code {
    font-family: monospace;
    letter-spacing: 0.5px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    margin-top: 50px;
}
.subhero {
    font-size: 1.05rem;
    color: #aaa;
    margin-top: -15px;
}

.site-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #222;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 150px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 20px;
}
.site-footer * { font-size:0.9rem; }
a { color:#f5f5f5 }

h1 a {
    font-size: 2.5rem;
    font-weight: 900;
    text-decoration: none;
    color: #fff;
}
.warning-box {
    padding: 10px 20px 20px 20px;
    margin: 10px;
    border: 1px solid #5b5b5b;
    border-radius: 4px;
    border-bottom-width: 5px;
}
.warning-box h5 {
    margin-bottom: 5px;
}

button, input, select {
    border-bottom-width: 5px !important;
}

.tier-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tier-box {
    flex: 1;
    min-width: 90px;
    padding: 6px 8px;
    border: 1px solid #333;
    background: #111;
    font-size: 12px;
    border-radius: 4px;
    border-bottom-width: 5px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tier-box.overlimit {
    border-color: red;
    color: #ff4d4d;
    background: rgb(255 0 0 / 5%);
}

.tier-label {
    margin-bottom: 4px;
    opacity: 0.7;
    font-size: 0.9rem;
}

.tier-warning {
    font-size: 11px;
    color: #ff4d4d;
    margin-top: 4px;
}

#list-container::-webkit-scrollbar {
    width: 8px;
}

#list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

#list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}

#list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

textarea::-webkit-scrollbar {
    width: 8px;
}

textarea::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

textarea::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}