/* Reset základních stylů */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    background: #0d1117; /* Tmavě šedá cyberpunk pozadí */
    color: #c9d1d9; /* Světlá šedá pro text */
    line-height: 1.6;
    padding: 20px;
    overflow-x: hidden;
}

/* Hlavní nadpis */
h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 3rem;
    color: #08fdd8; /* Neonově tyrkysová */
    text-shadow: 0 0 10px #08fdd8, 0 0 20px #08fdd8, 0 0 40px #08fdd8;
}

/* Sekundární nadpisy */
h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.8rem;
    color: #f72585; /* Růžová */
    text-shadow: 0 0 10px #f72585, 0 0 20px #f72585;
}

/* Navigační menu */
nav {
    background: #161b22;
    padding: 10px 20px;
    border-bottom: 1px solid #30363d;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative; /* Umožní absolutní pozicování nav-links v media query */
}

nav a {
    text-decoration: none;
    color: #08fdd8;
    font-size: 1.2rem;
    transition: all 0.3s ease-in-out;
}

nav a:hover {
    color: #f72585;
    text-shadow: 0 0 10px #f72585, 0 0 20px #f72585;
}

/* Hamburger ikona */
.hamburger {
    display: none; /* Skryto na velkých obrazovkách */
    font-size: 2rem;
    cursor: pointer;
    color: #08fdd8;
    position: absolute;
    top: 15px;
    right: 20px;
}

/* Navigační odkazy */
.nav-links {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

/* Responzivní design pro mobilní zařízení */
@media (max-width: 768px) {
    /* Zobrazí se hamburger ikona */
    .hamburger {
        display: block;
    }
    
    /* Skryje navigační odkazy */
    .nav-links {
        display: none;
        flex-direction: column;
        background: #161b22;
        position: absolute;
        top: 60px; /* Přizpůsobte podle výšky headeru */
        left: 0;
        width: 100%;
        padding: 20px 0;
        border-top: 1px solid #30363d;
    }
    
    /* Když je menu aktivní */
    .nav-links.active {
        display: flex;
    }
    
    /* Upravení stylu pro mobilní odkazy */
    .nav-links a {
        padding: 10px 20px;
        font-size: 1.5rem;
    }
}

/* Navigace */
nav {
    background: #161b22;
    padding: 10px 20px;
    border-bottom: 1px solid #30363d;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #08fdd8;
    font-size: 1.2rem;
    transition: all 0.3s ease-in-out;
}

nav a:hover {
    color: #f72585;
    text-shadow: 0 0 10px #f72585, 0 0 20px #f72585;
}

/* Obsah stránky */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Seznamy */
ul {
    list-style-type: none;
    margin: 10px 0;
    padding: 0;
}

li {
    margin-bottom: 10px;
}

/* Odkazy na nástroje */
a.tool-link {
    color: #08fdd8;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
}

a.tool-link:hover {
    color: #f72585;
    text-shadow: 0 0 10px #f72585, 0 0 20px #f72585;
}

/* Formuláře */
form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Rozestupy mezi prvky */
    align-items: flex-start; /* Zarovná prvky nahoru */
    background: #161b22;
    padding: 20px;
    border: 1px solid #30363d;
    border-radius: 5px;
    box-shadow: 0 0 10px #30363d;
}

label {
    flex-basis: 100%; /* Aby popisky byly přes celou šířku */
    margin-bottom: 5px;
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #c9d1d9;
}

textarea {
    flex: 1 1 calc(50% - 20px); /* Rozdělení na poloviny s mezerami */
    min-height: 150px;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #30363d;
    border-radius: 4px;
    background: #0d1117;
    color: #c9d1d9;
    resize: vertical;
    font-family: 'Courier New', monospace;
}

/* Tlačítka */
button {
    flex-basis: 100%; /* Tlačítko přes celou šířku */
    text-align: center;
    padding: 10px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    color: #0d1117;
    background: linear-gradient(90deg, #40E0D0, #66CDAA);
    box-shadow: 0 0 8px rgba(64, 224, 208, 0.6), 0 0 16px rgba(64, 224, 208, 0.4);
    transition: all 0.3s ease-in-out;
}

button:hover {
    box-shadow: 0 0 16px rgba(64, 224, 208, 0.8), 0 0 32px rgba(64, 224, 208, 0.6);
    transform: scale(1.1);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    color: #777;
}

/* Responzivní design */
@media (min-width: 970px) {
    .textarea {
        width: 48%;
        float: left;
        margin-right: 4%;
    }

    .textarea:last-child {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .textarea {
        width: 100%;
        margin-right: 0;
    }
}

/* Styl generátoru Bitcoinových adres */
#bitcoin-generator form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    background: #161b22;
    padding: 20px;
    border: 1px solid #30363d;
    border-radius: 5px;
    box-shadow: 0 0 10px #30363d;
}

#bitcoin-generator label {
    flex-basis: 100%;
    font-size: 1rem;
    color: #08fdd8;
    margin-bottom: 5px;
}

#bitcoin-generator .input-text {
    flex: 1 1 calc(50% - 10px);
    padding: 10px;
    border: 1px solid #30363d;
    border-radius: 4px;
    background-color: #0d1117;
    color: #c9d1d9;
    font-size: 1rem;
}

#bitcoin-generator .button {
    padding: 10px 20px;
    font-size: 1rem;
    color: #0d1117;
    background: linear-gradient(90deg, #40E0D0, #66CDAA);
    box-shadow: 0 0 8px rgba(64, 224, 208, 0.6), 0 0 16px rgba(64, 224, 208, 0.4);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#bitcoin-generator .button:hover {
    box-shadow: 0 0 16px rgba(64, 224, 208, 0.8), 0 0 32px rgba(64, 224, 208, 0.6);
    transform: scale(1.1);
}

#bitcoin-generator .log-output {
    background: #0d1117;
    color: #c9d1d9;
    padding: 10px;
    border: 1px solid #30363d;
    border-radius: 4px;
    box-shadow: 0 0 10px #08fdd8;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* Generátor náhodných řetězců */
#random-string-generator {
    padding: 20px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 5px;
    box-shadow: 0 0 10px #08fdd8;
}

#random-string-generator .form-group {
    margin-bottom: 15px;
}

#random-string-generator label {
    color: #08fdd8;
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

#random-string-generator .input-text {
    width: 100%;
    padding: 10px;
    border: 1px solid #30363d;
    border-radius: 4px;
    background-color: #0d1117;
    color: #c9d1d9;
    font-size: 1rem;
}

#random-string-generator .button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    color: #0d1117;
    border: none;
    border-radius: 4px;
    background: linear-gradient(90deg, #40E0D0, #66CDAA);
    box-shadow: 0 0 8px rgba(64, 224, 208, 0.6), 0 0 16px rgba(64, 224, 208, 0.4);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-align: center;
}

#random-string-generator .button:hover {
    box-shadow: 0 0 16px rgba(64, 224, 208, 0.8), 0 0 32px rgba(64, 224, 208, 0.6);
    transform: scale(1.1);
}

#random-string-generator .output-box {
    margin-top: 20px;
    padding: 10px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    box-shadow: 0 0 10px #08fdd8;
    max-height: 200px;
    overflow-y: auto;
    color: #c9d1d9;
    font-family: 'Courier New', monospace;
}

#random-string-generator .output-box div {
    margin-bottom: 5px;
}

#random-string-generator .error {
    color: #f72585;
    font-weight: bold;
}

/* Wrapper pro odstranění duplicit */
#duplicate-remover {
    padding: 20px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 5px;
    box-shadow: 0 0 10px #08fdd8;
}

#duplicate-remover label {
    display: block;
    margin-bottom: 10px;
    color: #08fdd8;
    font-size: 1rem;
}

#duplicate-remover .input-textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    color: #c9d1d9;
    font-family: 'Courier New', monospace;
    resize: vertical;
}

#duplicate-remover .button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 1rem;
    color: #0d1117;
    border: none;
    border-radius: 4px;
    background: linear-gradient(90deg, #40E0D0, #66CDAA);
    box-shadow: 0 0 8px rgba(64, 224, 208, 0.6), 0 0 16px rgba(64, 224, 208, 0.4);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#duplicate-remover .button:hover {
    box-shadow: 0 0 16px rgba(64, 224, 208, 0.8), 0 0 32px rgba(64, 224, 208, 0.6);
    transform: scale(1.1);
}

#duplicate-remover .output-box {
    margin-top: 20px;
    padding: 10px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    box-shadow: 0 0 10px #08fdd8;
    max-height: 200px;
    overflow-y: auto;
    color: #c9d1d9;
}

#duplicate-remover .output-box div {
    margin-bottom: 5px;
}

#duplicate-remover .output-box strong {
    color: #08fdd8;
}

/* Wrapper pro analýzu textu */
#text-analyzer {
    padding: 20px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 5px;
    box-shadow: 0 0 10px #08fdd8;
}

#text-analyzer .popis {
    margin-bottom: 15px;
    color: #c9d1d9;
}

#text-analyzer .input-textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    color: #c9d1d9;
    font-family: 'Courier New', monospace;
    resize: vertical;
    font-size: 1rem;
}

#text-analyzer .button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 1rem;
    color: #0d1117;
    border: none;
    border-radius: 4px;
    background: linear-gradient(90deg, #40E0D0, #66CDAA);
    box-shadow: 0 0 8px rgba(64, 224, 208, 0.6), 0 0 16px rgba(64, 224, 208, 0.4);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#text-analyzer .button:hover {
    box-shadow: 0 0 16px rgba(64, 224, 208, 0.8), 0 0 32px rgba(64, 224, 208, 0.6);
    transform: scale(1.1);
}

#text-analyzer .output-box {
    margin-top: 20px;
    padding: 10px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    box-shadow: 0 0 10px #08fdd8;
    color: #c9d1d9;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
}

#text-analyzer .output-box strong {
    color: #08fdd8;
}

/* Wrapper pro porovnání textů */
#text-comparator {
    padding: 20px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 5px;
    box-shadow: 0 0 10px #08fdd8;
}

#text-comparator .popis {
    margin-bottom: 20px;
    color: #c9d1d9;
}

#text-comparator .textarea-container {
    display: flex;
    gap: 20px;
}

#text-comparator .input-textarea {
    width: 50%;
    padding: 10px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    color: #c9d1d9;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    resize: vertical;
}

#text-comparator .button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    color: #0d1117;
    border: none;
    border-radius: 4px;
    background: linear-gradient(90deg, #40E0D0, #66CDAA);
    box-shadow: 0 0 8px rgba(64, 224, 208, 0.6), 0 0 16px rgba(64, 224, 208, 0.4);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#text-comparator .button:hover {
    box-shadow: 0 0 16px rgba(64, 224, 208, 0.8), 0 0 32px rgba(64, 224, 208, 0.6);
    transform: scale(1.1);
}

#text-comparator #output-container {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

#text-comparator .output-box {
    flex: 1;
    padding: 10px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    box-shadow: 0 0 10px #08fdd8;
    color: #c9d1d9;
    overflow-y: auto;
    max-height: 200px;
}

#text-comparator .output-box strong {
    color: #08fdd8;
    display: block;
    margin-bottom: 10px;
}

#text-comparator .highlight {
    background-color: #f72585;
    color: #fff;
    padding: 1px 3px;
    border-radius: 2px;
}

/* Wrapper pro URL nástroj */
#url-tool {
    padding: 20px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 5px;
    box-shadow: 0 0 10px #08fdd8;
}

#url-tool .popis {
    margin-bottom: 20px;
    color: #c9d1d9;
}

#url-tool label {
    display: block;
    margin-bottom: 10px;
    color: #08fdd8;
    font-size: 1rem;
}

#url-tool .input-textarea {
    width: 100%;
    padding: 10px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    color: #c9d1d9;
    font-family: 'Courier New', monospace;
    resize: vertical;
    font-size: 1rem;
}

#url-tool .button-container {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

#url-tool .button {
    padding: 10px 20px;
    font-size: 1rem;
    color: #0d1117;
    border: none;
    border-radius: 4px;
    background: linear-gradient(90deg, #40E0D0, #66CDAA);
    box-shadow: 0 0 8px rgba(64, 224, 208, 0.6), 0 0 16px rgba(64, 224, 208, 0.4);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#url-tool .button:hover {
    box-shadow: 0 0 16px rgba(64, 224, 208, 0.8), 0 0 32px rgba(64, 224, 208, 0.6);
    transform: scale(1.1);
}

/* Styl pro vizualizaci gridu */
.controls textarea {
    font-family: 'Courier New', monospace;
    background-color: #0d1117;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 4px;
    resize: vertical;
    padding: 10px;
}

.controls .button {
    background: linear-gradient(90deg, #40E0D0, #66CDAA);
    box-shadow: 0 0 8px rgba(64, 224, 208, 0.6), 0 0 16px rgba(64, 224, 208, 0.4);
    color: #0d1117;
}

.controls .button:hover {
    box-shadow: 0 0 16px rgba(64, 224, 208, 0.8), 0 0 32px rgba(64, 224, 208, 0.6);
    transform: scale(1.1);
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.toggle-container label {
    font-size: 1rem;
    color: #c9d1d9;
    margin-bottom: 0px;
    flex-basis: 100px;
}

.toggle-container select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #30363d;
    background-color: #0d1117;
    color: #c9d1d9;
    font-size: 1rem;
    font-family: 'Orbitron', sans-serif;;
}

/* Zobrazení statistik */
.stats-display {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 0 10px #30363d;
    color: #c9d1d9;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    text-align: left;
    max-width: 100%;
    width: 100%;
    font-size: 1rem;
}

/* Kontejner pro dlaždice */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    width: 100%;
    /* max-width: 90%; */
}

/* Jedna dlaždice */
.grid-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    height: 100px;
    word-break: break-word;
    background-color: #30363d; /* Výchozí barva, bude přepsána JavaScriptem */
    transition: background-color 0.3s ease-in-out;
}
