/* Základní styly */
body {
    background-color: #1E1E1E;
    color: white;
    font-family: "Oxanium", sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

nav {
    background-color: #2A2A2A;
    padding: 25px 0;
    width: 100%;
}

.navbar-container {
    font-family: "Oxanium", sans-serif;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    font-size: 22px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Levá sekce s názvem a jazykovým přepínačem */
.left-section {
    font-family: "Oxanium", sans-serif;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-self: start;
}

.name {
    font-family: "Oxanium", sans-serif;
    font-size: 25px;
    font-weight: bold;
    color: white;
    white-space: nowrap;
}

.nameLink {
    text-decoration: none;
    /* odstraní podtržení */
    color: inherit;
    /* zachová stejnou barvu jako okolní text */
}

/* Zajistí, že barva zůstane stejná i po návštěvě odkazu */
.nameLink:visited {
    color: inherit;
}

/* Zajistí, že barva zůstane stejná i při najetí myší */
.nameLink:hover {
    color: inherit;
}

/* Zajistí, že barva zůstane stejná i při kliknutí */
.nameLink:active {
    color: inherit;
}

/* Střední sekce s odkazy */
.center-section {
    justify-self: center;
    position: relative;
}

/* Pravá prázdná sekce pro vyvážení */
.right-section {
    justify-self: end;
}

/* Styl jazykového tlačítka a dropdown menu */
.language-dropdown {
    position: relative;
}

.language-switch {
    background-color: white;
    color: black;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 130px;
}

.language-switch:hover {
    background-color: #f0f0f0;
}

.language-menu {
    display: none;
    position: absolute;
    background-color: white;
    width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 0 0 5px 5px;
}

.language-menu a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.language-menu a:hover {
    background-color: #f1f1f1;
}

.show {
    display: block;
}

/* Navigační odkazy uprostřed */
.nav-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-item {
    margin: 0 10px;
}

.nav-link {
    color: white;
    text-decoration: none;
}

/* Hamburger menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

.specs-ul {
    list-style-type: none;
    /* Odstraní předvolené tečky */
    padding: 0;
    /* Odstraní výchozí odsazení */
    margin: 0;
    /* Odstraní výchozí okraje */
    display: block;
    /* Ujistí se, že seznam je blokový prvek */
}

.specs-li {
    display: block;
    /* Každá položka bude blokový prvek (tedy pod sebou) */
    margin-bottom: 10px;
    /* Mezera mezi položkami */
    font-size: 16px;
    /* Volitelná změna velikosti písma */
}

h1 {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    line-height: 1.2;
}

/* Navigační odkazy uprostřed */
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* Umožní zalamování na menších obrazovkách */
}

ul li {
    margin: 0 10px;
}

ul li a {
    color: white;
    text-decoration: none;
}

#privacySection1Title,
#privacySection2Title,
#privacySection3Title,
#privacySection4Title,
#privacySection5Title,
#privacySection6Title,
#privacySection7Title,
#privacySection8Title {
    font-size: 20px;
}

ul.custom-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    display: inline-block;
}

/* Položky hlavního seznamu */
ul.custom-list>li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.3em;
}

/* Vlastní tečka */
ul.custom-list>li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #38b6ff;
    font-size: 1.2em;
    line-height: 1.3;
}

/* Vnořený seznam zarovnat stejně */
ul.custom-list ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0.1em;
    /* jemné zarovnání, případně 0 */
}

/* Položky vnořeného seznamu */
ul.custom-list ul>li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.2em;
}

/* Vlastní tečka pro vnořený seznam */
ul.custom-list ul>li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #38b6ff;
    font-size: 1.1em;
    line-height: 1.3;
}


/* Základní styl tabulky */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #181c23;
    color: #f5f6fa;
    font-family: 'Segoe UI', Arial, sans-serif;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* Záhlaví tabulky */
.data-table th {
    background-color: #23272f;
    color: #faf5cd;
    font-weight: 700;
    padding: 14px 10px;
    text-align: left;
    border-bottom: 2px solid #31343b;
    letter-spacing: 0.5px;
}

/* Buňky tabulky */
.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #23272f;
    vertical-align: top;
}

/* Střídání barev řádků */
.data-table tbody tr:nth-child(even) {
    background-color: #20232a;
}

/* Hover efekt pro řádek */
.data-table tbody tr:hover {
    background-color: #31343b;
    transition: background 0.2s;
}

/* Zaoblení rohů pouze u horního a dolního řádku */
.data-table thead tr:first-child th:first-child {
    border-top-left-radius: 8px;
}

.data-table thead tr:first-child th:last-child {
    border-top-right-radius: 8px;
}

.data-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.data-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}


/* Obsah stránky */
.content {
    flex: 1;
    width: 90%;
    max-width: 750px;
    margin: 10px auto;
    justify-content: space-between;
}

.content .text-box {
    /*background-color: #2A2A2A;*/
    border-radius: 15px;
    /*padding: 20px;*/
    margin: 0px;
    color: white;
    box-sizing: border-box;
}

.content .text-box h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 24px;
    color: #74c0fc;
}

.content .text-box p {
    margin-top: 0px;
    margin-bottom: 10px;
    line-height: 32px;
    font-size: 18px;
    max-width: 750px;
}

.content .text-box p:last-child {
    margin-bottom: 0;
}

.content .text-box h1 {
    font-size: 25px;
    color: #faf5cd;
}

#skillsTitle,
#featuredArticles {
    color: #faf5cd;
    margin-bottom: 10px;
    margin-top: 10px;
}

.articleTitle {
    text-align: center;
    font-size: 22px !important;
}

.card p {
    min-height: 80px;
    /* Nastavte podle potřeby */
    display: flex;
    flex-direction: column;
    margin: 0;
}

.articlePageTitle {
    min-height: 80px;
    /* Nastavte podle potřeby */
    display: flex;
    align-items: center;
    /* Vertikální centrování textu */
    margin: 0;
}


.text-container {
    max-width: 750px;
    margin: 0 auto;
}



.category-header {
    font-size: 20px;
    color: #74c0fc;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    margin: 20px 0;
}

/* Styly pro kategorii dovedností */
.skill-category {
    background-color: #333;
    border-radius: 10px;
    padding: 15px;
    box-sizing: border-box;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-list li {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #444;
    text-align: center;
    white-space: nowrap;
    /* Zabrání zalomení textu uvnitř položky */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Zobrazí tři tečky, pokud je text příliš dlouhý */
}

.skill-category li {
    display: block !important;
    /* !important přepíše jakékoli jiné nastavení */
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 5px;
}

.skills-list li:last-child {
    border-bottom: none;
}


.skills-table {
    width: 100%;
    table-layout: fixed;
    margin: 20px 0;
    border-spacing: 0;
    margin-top: 0px;
    overflow-x: auto;
}

.skills-table th,
.skills-table td {
    text-align: left;
    vertical-align: middle;
    padding: 8px;
}

.skills-table td {
    vertical-align: middle;
    height: 15px;
}

.skills-table th {
    color: #74c0fc;
    font-weight: bold;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.article-card {
    background-color: #2A2A2A;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card a {
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.article-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #74c0fc;
}

.article-image {
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 5px;
    background-color: #383838;
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-link {
    color: #74c0fc;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

.article-link {
    color: #74c0fc;
    text-decoration: none;
    font-weight: bold;
    margin-top: 0px;
    display: inline-block;
}

.article-link:hover {
    text-decoration: underline;
}

.all-articles-button-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    margin-top: 20px;
}

.button {
    display: inline-block;
    background-color: #74c0fc;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #3793d5;
}


/* Footer */


footer {
    background-color: #2A2A2A;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: #ffffff;
    flex-wrap: wrap;
}

.footer-left,
.footer-center,
.footer-right {
    width: 33.33%;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
}

.footer-right a {
    text-decoration: none;
    color: inherit;
}

.footer-right a:hover {
    text-decoration: underline;
}

/* 📱 Na mobilech spojíme vše do jednoho řádku a zarovnáme doprostřed */
@media (max-width: 600px) {
    .footer-left {
        display: none;
        /* Skryjeme prázdnou část */
    }

    .footer-center,
    .footer-right {
        width: 100%;
        text-align: center;
    }

    .footer-center {
        margin-bottom: 5px;
    }

    .footer-right {
        margin-top: -5px;
    }

    footer {
        flex-direction: column;
    }
}

.cards-container {
    display: grid;
    grid-template-columns: 1fr;
    /* Výchozí: 1 karta na řádek pro mobilní zařízení */
    gap: 20px;
    padding: 10px;
}

.cards-container h1 {
    font-size: 18px !important;
}

.card {
    background-color: #1f1f1f;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 15px;
    color: #fff;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.certcard {
    background-color: #1f1f1f;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* flex: 1 1 100%; - můžete odstranit, není potřeba při column layoutu */
    width: 100%;
    /* margin-bottom: 20px; - můžete odstranit, protože používáte gap v kontejneru */
    padding: 15px;
    color: #fff;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}


.blankcard {
    width: 100%;
    max-width: 100%;
    padding: 15px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    height: 100%;
}



.card:hover {
    transform: translateY(-5px);
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.card h1 {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #facc15;
}

.card p {
    font-size: 0.95rem;
    margin-top: 10px;
}

.preview-img {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Jemný stín */
    width: 90%;
    max-width: 750px;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-bottom: 20px;
}

.back-button:hover {
    color: #3793d5;
    /* Tmavší odstín při najetí myší */
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: #74c0fc;
    text-decoration: none;
    font-family: "Oxanium", sans-serif;
    font-size: 16px;
    margin: 15px 0;
    transition: color 0.3s ease;
}

.arrow-left {
    display: inline-block;
    margin-right: 8px;
    border: solid #74c0fc;
    border-width: 0 2px 2px 0;
    padding: 3px;
    transform: rotate(135deg);
    transition: border-color 0.3s ease;
}

.back-button:hover .arrow-left {
    border-color: #3793d5;
}

.services-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Dvě karty vedle sebe */
    grid-template-rows: auto auto;
    /* Dva řádky */
    gap: 20px;
    padding: 20px;
}

.backToArticles p {
    margin-top: 3px;
}

.services-card {
    background-color: #1f1f1f;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 100%;
    padding: 15px;
    color: #fff;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    height: 100%;
}

.services-card h3 {
    color: #74c0fc;
}

.certcards-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    .certificate-card
}

.certcard {
    background-color: #1f1f1f;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    padding: 15px;
    color: #fff;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.certbox1 {
    margin-right: 20px;
}

.certbox h3 {
    margin-top: 0px;
    margin-bottom: 0px;
    color: #faf5cd;
}

.certificate-card p {
    margin-top: 5px;
}

.certificate-card {
    display: flex;
    align-items: center;
    background-color: #1e1e1e;
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    flex-wrap: wrap;
}

.cert-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    background: white;
    padding: 4px;
    border-radius: 8px;
}

.cert-info {
    flex: 1;
    margin-left: 16px;
    min-width: 200px;
}

.cert-info h3 {
    margin: 0;
    font-size: 1rem;
    color: #88c0ff;
}

.cert-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-left: auto;
    width: 100%;
    justify-content: center;
}

.certPreview,
.certShow {
    flex: 1;
    max-width: none;
    text-align: center;
    white-space: nowrap;
}

.mobile-button-container {
    display: none;
    justify-content: space-between;
    width: 100%;
    margin-top: 15px;
    gap: 15px;
    /* Přidá 15px mezeru mezi tlačítky */
}

.mobile-button {
    display: none;
}

.buttons-box {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.readMore {
    padding: 0px;
}

.article-link.readMore {
    padding: 0px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.certPreview {
    display: block;
    background-color: #00bfff;
    color: white;
    max-width: 140px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: background 0.3s;
    width: 120px;
}

.certPreviewM {
    display: none;
    background-color: #00bfff;
    color: white;
    max-width: 140px;
    text-decoration: none;
    padding: 0px 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: background 0.3s;
    height: 35px;
    align-items: center;
    justify-content: center;
    display: flex;
    margin-top: 0px;
}

.certPreviewM {
    display: none;
}

.certShowM {
    display: none;
    background-color: #00bfff;
    color: white;
    max-width: 140px;
    text-decoration: none;
    padding: 0px 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: background 0.3s;
    height: 35px;
    align-items: center;
    justify-content: center;
    display: flex;
    margin-top: 0px;
}

.mobile-button-container {
    display: none;
}

.mobile-button-container p {
    margin-top: 0px;
}

.certShow {
    display: block;
    background-color: #00bfff;
    color: white;
    max-width: 140px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: background 0.3s;
}

.certPreview:hover {
    background-color: #009acc;
}

.certShow:hover {
    background-color: #009acc;
}

.certbox:last-child {
    margin-left: auto;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}


/* Plovoucí ikony sociálních médií */
.social-floating-icons {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    margin: 3px 0;
    border-radius: 0 5px 5px 0;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    font-size: 23px;
    text-decoration: none;
}

.social-icon:hover {
    width: 55px;
    box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.4);
}

.social-icon.facebook {
    background-color: #141414;
}

.social-icon.x {
    background-color: #141414;
}

.social-icon.youtube {
    background-color: #141414;
}

.social-icon.linkedin {
    background-color: #141414;
}

.social-icon.github {
    background-color: #141414;
}

.social-icon.medium {
    background-color: #141414;
}

.social-icon.steam {
    background-color: #141414;
}

.social-icon.discord {
    background-color: #141414;
}

.social-icon.email {
    background-color: #141414;
}


/*NAVBAR Responsive*/
@media only screen and (max-width: 768px) {
    .blankcard {
        display: none;
    }

    .navbar-container {
        grid-template-columns: 1fr 1fr;
        padding: 0 15px;
    }

    .center-section {
        justify-self: end;
    }

    .right-section {
        display: none;
    }

    .hamburger {
        display: block;
        z-index: 101;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: #2A2A2A;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 100;
        justify-content: center;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .name {
        font-size: 16px;
    }

    .language-switch {
        width: 120px;
        font-size: 14px;
        padding: 6px 10px;
    }
}

/*INDEX Responzive*/

/* Responzivní styly pro mobilní zařízení */

@media only screen and (max-width: 768px) {
    .articleLinkBlank {
        display: none;
    }

    .content {
        width: 95%;
    }

    .content .text-box {
        padding: 15px;
    }

    .content .text-box h1 {
        font-size: 22px;
    }

    .content .text-box h2 {
        font-size: 20px;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-header {
        font-size: 18px;
    }

    .articles-container {
        grid-template-columns: 1fr;
    }

    .article-card h3 {
        font-size: 18px;
    }
}

/* Responzivní tabulka dovedností pro mobilní zařízení */
@media only screen and (max-width: 768px) {

    #allArticlesButton {
        margin-bottom: -10px;
    }

    .skills-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .skills-table th,
    .skills-table td {
        padding: 6px;
    }

    .category-header {
        font-size: 16px;
    }
}

/* Pro ještě menší displeje */
@media only screen and (max-width: 480px) {
    .content .text-box {
        padding: 12px;
    }

    .content .text-box h1 {
        font-size: 20px;
    }

    .article-image {
        height: 180px;
    }

    .article-card {
        padding: 10px;
    }

    .article-card h3 {
        font-size: 16px;
    }

    .button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Pro ještě menší displeje */
@media only screen and (max-width: 480px) {
    .left-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .name {
        font-size: 18px;
    }
}

/* Responzivní design pro menší obrazovky */
@media (max-width: 768px) {
    .language-menu a {
        padding: 5px 10px
    }

    .articles-container {
        flex-direction: column;
        align-items: center;
    }

    .article-card {
        width: 100%;
        max-width: 100%;
    }

    skills-table,
    .skills-table tbody,
    .skills-table tr,
    .skills-table td,
    .skills-table th {
        display: block;
        width: 100%;
    }

    .skills-table tr {
        margin-bottom: 15px;
    }

    .skills-table td,
    .skills-table th {
        text-align: center;
    }

    .skills-table th {
        margin-top: 15px;
        text-align: left;
    }
}



.contact-form-container {
    max-width: 750px;
    margin: 10px auto;
    padding: 30px;
    background-color: #2E2E2E;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.email-contact-container {
    max-width: 750px;
    margin: 5px auto;
    margin-top: 20px;
    padding: 20px;
    background-color: #2E2E2E;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Nadpis formuláře */
#contactFormTitle {
    color: #faf5cd;
    margin-bottom: 15px;
    font-size: 28px;
    text-align: center;
    margin-top: 10px;
}

/* Popis formuláře */
#contactFormDescription {
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
}


/* Skupiny formulářových prvků */
.form-group {
    margin-bottom: 20px;
}

/* Popisky (labely) */
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}

/* Vstupní pole */
.form-group input,
.form-group textarea {
    width: 95%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* Tlačítko pro odeslání */
.submitMail {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 10px;
}

.submitMail:hover {
    background-color: #3a7bc8;
}

/* Zprávy o úspěchu a chybách */
.alert {
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.success {
    background-color: #e7f7ed;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.error {
    background-color: #fdeded;
    color: #d32f2f;
    border: 1px solid #f5c2c7;
}

.logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 310px;
    height: auto;
}

#welcomeTitle {
    text-align: center;
}

/* Responzivní design pro mobilní zařízení SOCIALS*/
@media (max-width: 768px) {
    .social-floating-icons {
        position: relative;
        /* Místo fixed */
        left: auto;
        bottom: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        width: calc(100% - 2px);
        background-color: #2A2A2A;
        padding: 5px 0;
        justify-content: center;
        margin-bottom: 0;
        /* Odstup od footeru */
        border: 1px solid black;
        display: flex;
        gap: 1.5px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        margin: 0 1px;
        border-radius: 5px;
        background-color: #1F1F1F !important;
    }

    .social-icon.discord {
        margin: 0 1px;
        border-radius: 5px;
        background-color: #1F1F1F;
    }

    .social-icon:hover {
        width: 40px;
    }
}

/*Pro počítače Články*/
@media screen and (min-width: 768px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
        /* 3 karty na řádek pro desktopy */
    }

    .card {
        height: 380px;
    }
}

/* Responzivní nastavení služeb pro mobilní zařízení */
@media only screen and (max-width: 768px) {
    .services-cards-container {
        grid-template-columns: 1fr;
        /* Jeden sloupec na mobilních zařízeních */
    }
}

@media only screen and (max-width: 768px) {
    .certbox1 {
        margin-right: 0px;
    }

    .cert-logo {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 0 15px 0 !important;
        display: block;
    }

    /* Resetování jakýchkoliv možných vlivů */
    .cert-logo img {
        display: block;
        margin: 0 auto;
    }

    .certcards-container {
        width: 95%;
        padding: 10px;
        text-align: center;
    }

    .certificate-card {
        flex-direction: column;
        padding: 15px;
    }

    .cert-info {
        margin-left: 0;
        text-align: center;
        margin-top: 10px;
    }
}


@media only screen and (max-width: 768px) {
    .mobile-button-container {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-top: 15px;
    }

    .mobile-button {
        display: flex;
        gap: 10px;
        /* Mezera 10px mezi tlačítky */
        width: 100%;
    }

    /* Pro ještě menší displeje */
    @media only screen and (max-width: 480px) {
        .certificate-card {
            padding: 12px;
        }

        .cert-info h3 {
            font-size: 0.9rem;
        }

        .datumVydani {
            font-size: 0.8rem;
        }

        .certPreview,
        .certShow {
            padding: 6px 10px;
            font-size: 14px;
        }

        .buttons-box {
            display: none;
        }
    }

    /*Contact pro mobily*/
    /* Pro mobilní zařízení */
    @media only screen and (max-width: 768px) {
        .contact-form-container {
            padding: 15px;
        }

        .form-group label {
            text-align: center;
            width: 100%;
            display: block;
            margin-bottom: 5px;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            box-sizing: border-box;
        }
    }

    @media only screen and (max-width: 480px) {
        .services-cards-container {
            padding: 10px;
            /* Menší padding pro velmi malé obrazovky */
        }

        .services-card {
            padding: 12px;
            /* Menší padding pro karty služeb */
        }

        .services-card h3 {
            font-size: 18px;
            /* Menší velikost nadpisů */
        }
    }

    @media (max-width: 1200px) {
        .skills-container {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 600px) {
        .skills-container {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 1024px) {
        .card {
            width: calc(50% - 40px);
        }
    }

    @media (max-width: 640px) {
        .card {
            width: 100%;
        }
    }