.sim-content-container {
    margin-left: 40px;
    margin-right: 40px;
    padding: 60px;
    background-color: var(--background-body-primary);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-vpravo {
    flex: 1 1 30%;
    max-width: 30%;
    margin-top: 20px;
    display: block;
}

.logo-vpravo img {
    width: 80%;
    height: auto;
    display: block;
}

.kontainer-baner-stred-manualy {
    flex: 1 1 45%;
    padding: 0 20px;
    text-align: center;
    margin-top:90px;
}


.partner-section {
width:95%;
margin-left:2%;
}

.partner-uvod-info {
width:95%;
margin-left:2%;
padding:20px;

}

.partner-zona {
margin-left:2%;
display:flex;
margin-bottom:60px;
}

.partner-logo {
width:25%;
margin-left:2%;
margin-top:15px;
}

.partner-logo img {
width:80%;
}


.partner-text {
width:70%;
margin-left:2%;
}

.jeden-partner {
width:50%;
display:flex;
}

.partner-odkaz {
float:left;
margin-left:20px;
}

.partner-odkaz a {
padding:10px;
color:white;
background-color: #0d6ca3;
border-radius:5px;
}

.partner-odkaz a:hover {
color:white;
background-color: #626161;
}

.sim-container {
width:96%;
margin-left:2%;
float:left;
}

.text-race {
width:55%;
float:right;
}


.img-race {
width:40%;
float:left;
margin-left:20px;
margin-top:27px;
}

.img-race img {
width:100%;
float:right;
}

.text-race-center {
width:50%;
float:left;
margin-left:30px;
}

.text-race-center a {
padding:10px;
color:white;
background-color: #0d6ca3;
border-radius:5px;
}

.img-race2 {
width:25%;
float:left;
margin-left:20px;
margin-top:27px;
}

.img-race2 img {
width:100%;
float:right;
}

.race-text {
width:55%;
float:left;
}

.race-img {
width:42%;
float:right;
margin-left:20px;
margin-top:27px;
}

.race-img img {
width:100%;
float:right;
}

.race-img2 {
width:20%;
float:right;
margin-left:20px;
margin-top:27px;
}

.race-img2 img {
width:100%;
float:right;
}




/* Sim Hero Section */
.sim-hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px;
  padding-bottom:0;
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.sim-hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
 
  z-index: 1;
}

.sim-hero-content {
  flex: 1;
  position: relative;
  z-index: 2;
  animation: sim-slideInLeft 1.5s ease-out;
}

.sim-hero-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.sim-hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  line-height: 1.8;
  padding-right:50px;

}


.sim-hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  animation: sim-fadeIn 2s ease-out;
}

.sim-hero-image img {
  max-width: 100%;

  border-radius: 10px;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.sim-hero-image img:hover {
  transform: rotate(0deg) scale(1.05);
  filter: brightness(1.2);
}

/* Animations */
@keyframes sim-slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes sim-fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* ======== Port�lov� ��st ========== */

/* Glob�ln� styl pro sekce Sim Racing */

/* Nadpisy v sekc�ch */
section[class^="portal-sim-"] h3 {
    font-size: 24px;
    margin-bottom: 10px;
    padding-bottom: 5px;
}

/* Texty a odstavce */
section[class^="portal-sim-"] p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Sekce novinek */
.portal-sim-novinky {
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.portal-sim-novinky h3 {
    font-size: 24px;
    color: #1582bb;
    margin-bottom: 15px;
    padding-bottom: 5px;
}


/* Boxy pro novinky */
.portal-sim-novinky-boxy {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.portal-sim-novinka {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    width: calc(33.33% - 20px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portal-sim-novinka:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.portal-sim-novinka img {
    width: 100%;
    height: auto;
    display: block;
}

.portal-sim-novinka-text {
    padding: 15px;
}

.portal-sim-novinka-text h4 {
    font-size: 18px;
    color: #1582bb;
    margin-bottom: 8px;
}

.portal-sim-novinka-text h4 a {
    text-decoration: none;
    color: #1582bb;
    transition: color 0.3s ease;
}

.portal-sim-novinka-text h4 a:hover {
    color: #0d6ca1;
}

.portal-sim-novinka-text p {
    font-size: 14px;
    color: #555;
}


/* Sekce komunity */
.portal-sim-komunita {
    margin-left:20px;
    margin-right:20px;
    text-align: center;
    padding:40px;
    border:1px solid;
    border-color:gold;
    border-radius:5px;
}

.portal-sim-komunita a.portal-sim-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #ffffff;
    background-color: #e8930d;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.portal-sim-komunita a.portal-sim-button:hover {
    background-color: #d07c0b;
}



/* Sekce kategori� */
.portal-sim-kategorie {
    padding: 40px 20px;
    text-align: center;
}

.portal-sim-kategorie h3 {
    font-size: 28px;
    color: #1582bb;
    margin-bottom: 20px;
    border-bottom: 3px solid #1582bb;
    display: inline-block;
    padding-bottom: 5px;
}

.portal-sim-kategorie p {
    font-size: 16px;
    margin-bottom: 40px;
}

/* M��ka pro kategorie */
.portal-sim-kategorie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Karty kategori� */
.portal-sim-kategorie-karta {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.portal-sim-kategorie-karta:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.portal-sim-kategorie-karta img {
    width: 100%;
    height: auto;
    display: block;
}

.portal-sim-kategorie-karta h4 {
    font-size: 20px;
    color: #1582bb;
    margin: 15px;
}

.portal-sim-kategorie-karta p {
    font-size: 14px;
    margin: 0 15px 15px;
    line-height: 1.5;
}

.portal-sim-kategorie-karta a {
    display: block;
    font-size: 14px;
    color: #ffffff;
    background-color: #1582bb;
    text-align: center;
    padding: 10px;
    margin: 0 15px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.portal-sim-kategorie-karta a:hover {
    background-color: #0d6ca1;
}



/* Sekce Stav�me Vybaven� */
.sim-projects-section {
  padding: 60px 30px;
  color: #ffffff;
  text-align: center;
}

.sim-projects-section h2 {
  font-size: 2.5rem;
  color: #e8930d;
  margin-bottom: 15px;
}

.sim-projects-section .sim-projects-intro {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.sim-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.sim-project-box {
  background: #1e1e2f;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sim-project-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
}

.sim-project-box img {
  width: 100%;
  height: auto;
}

.sim-project-content {
  padding: 20px;
  text-align: left;
}

.sim-project-content h3 {
  font-size: 1.5rem;
  color: #e8930d;
  margin-bottom: 10px;
}

.sim-project-content h4 {
  font-size: 1.1rem;
  color: #0c85da;
  padding:0;
  margin:0;
}

.sim-project-content p {
  font-size: 1rem;
  color: #dcdcdc;
  margin-bottom: 15px;
}

.sim-project-link {
  display: inline-block;
  padding: 10px 20px;
  background: #e8930d;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sim-project-link:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(232, 147, 13, 0.8);
}


   .card-container {

            display: flex;
            gap: 30px;
            flex-wrap: wrap;
            margin-left:4%;
            margin-bottom:50px;
        }

        .card {
            background: #ffffff;
            border: 1px solid #ddd;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            width: 30%;
            text-align: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .card:hover {
            transform: scale(1.03);
            box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
        }

        .card a {
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .card img {
            width: 100%;
            height: auto;
        }

        .card span {
            display: block;
            padding: 10px 0;
            font-weight: bold;
            color: #333;
        }

        .card span:hover {
            color: #007BFF;
        }
        
.highlight {
    background-color: #f9f9f9;
    border-left: 4px solid #007bff;
    padding: 10px;
    margin-top: 20px;
    font-size: 1.1em;
}

.highlight-orange {
    background-color: #fff4e5;
    border-left: 4px solid #ff9800;
    padding: 10px;
    margin-top: 20px;
    font-size: 1.1em;
}  


      .sim-rac-series {
        margin: 20px auto;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .sim-rac-series-content {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
 

    .sim-rac-series-item {
        flex: 1 1 calc(50% - 20px);
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }

    








/* CSS for Sim Racing Series */



.sim-rac-series h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.sim-rac-series-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sim-rac-series-header img {
width:80px;
    height: 80px;
}

.sim-rac-series-body {
    display: flex;
    gap: 20px;
}

.sim-rac-series-img  {
width:100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sim-rac-series-img img {
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sim-content {

    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #555;
    line-height: 1.6;
}

.sim-content p {
    margin: 0 0 10px;
}

.sim-rac-banner {
    margin-top: 40px;
    text-align: center;
}

.sim-rac-banner h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.sim-rac-banner div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.sim-rac-banner img {
    max-width: 10%;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}




.sim-img-detail img {
    max-width: 10%;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}












    
    .sim-rac-series-item {
        padding: 15px;
    }

    .sim-rac-series-item {
        margin: 0 0 10px;
    }

    .sim-rac-series-banner {
        text-align: center;
        margin: 40px 0;
        padding: 20px;
        width:100%;
        float:left;
        color: white;
        border-radius: 8px;
    }


    .sim-rac-series-cta {
        text-align: center;
        margin: 40px 0;
        padding: 20px;
        background: #444;
        color: white;
        border-radius: 8px;
    }

    .sim-rac-series-cta a {
        color: #fff;
        text-decoration: none;
        background: #e94e77;
        padding: 10px 20px;
        border-radius: 5px;
    }

    @media (max-width: 768px) {
        .sim-rac-series-content {
            flex-direction: column;
        }

        .sim-rac-series-item {
            flex: 1 1 100%;
        }

        .sim-rac-series-banner img {
            max-width: 80%;
        }
    }


.sim-image-item {
    width:11%;
    text-align: center; /* Zarovn�n� popisk� na st�ed */
}

.sim-image-item img {
    max-width: 100%; /* P�izp�soben� obr�zk� velikosti jejich kontejner� */
    height: auto; /* Zachov�n� pom�ru stran obr�zku */
    cursor: pointer;
}

.sim-image-caption {
    font-size: 16px; /* Velikost textu popisku */
    text-align: center; /* Zarovn�n� textu na st�ed */
    display: block; /* Zajist�, �e popisek bude na samostatn�m ��dku pod obr�zkem */
    width: 100%; /* Popisek bude zab�rat plnou ���ku sv�ho kontejneru */
}


.content-in-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: var(--background-primary);
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin:20px;
}

.text-container {
    flex: 1;
    padding-right: 20px;
}

.text-container .title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.text-container .indent {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.image-container {
    flex: 0 0 40%;
    text-align: right;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}




.build-equipment {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.build-equipment .title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.build-equipment .indent {
    font-size: 16px;
    line-height: 1.8;
  
    margin-bottom: 15px;
}

.build-equipment .benefits,
.build-equipment .steps {
    font-size: 16px;
    margin: 15px 0;
    padding-left: 20px;
}

.build-equipment .gallery {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.build-equipment .gallery img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.build-equipment .button {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.build-equipment .button:hover {
    background-color: #0056b3;
}

.serie-logo {
margin-left:2%;
width:9%;
float:left;
}

.serie-logo img {
width:50%;
}

.series-logos {
 display: flex;
width:90%;
margin-left:5%;
float:left;
}






.simracing-events {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--background-primary);
}

.title {
    font-weight: bold;
    margin-bottom: 20px;
}

.events-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.event-category {
    flex: 1;
    background: var(--jina-cerna);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-title {
    font-size: 22px;
    color: #007bff;
    margin-bottom: 5px;
}

.category-description {
    font-size: 16px;
    margin-bottom: 15px;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-card {
    display: flex;
    align-items: center;
    border: 1px solid #007bff;
    border-radius: 5px;
    padding: 10px;
    background: var(--box-highlight-dark);
    transition: 0.3s;
    cursor: pointer; 
}

.event-card:hover {
    background: var(--modroucka-box);
}

.event-card img {
    width: 200px;
    height: auto;
    border-radius: 5px;
    margin-right: 10px;
}

.event-info {
margin-left:30px;
}

.event-info h4 {
    font-size: 18px;
    color: #1582bb;
    margin: 0;
}

.event-info p {
    font-size: 14px;
    margin: 5px 0 0;
}


/* Pozad� modalu */
.event-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Tmav� pr�hledn� pozad� */
    backdrop-filter: blur(5px); /* Rozmaz�n� pozad� pro modern� efekt */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Kontejner obsahu modalu */
.event-modal-content {
    background-color: var(--trochu-bila);
    margin: 10% auto;
    padding: 25px;
    border-radius: 15px;
    width: 50%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Siln�j�� st�n pro profesion�ln� vzhled */
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

/* Efektn� otev�en� modalu */
.event-modal.show {
    opacity: 1;
}

.event-modal.show .event-modal-content {
    transform: scale(1);
}

/* Zav�rac� tla��tko */
.event-modal-close {
    float: right;
    font-size: 35px;
    cursor: pointer;
    color: var(--color-primary);
    transition: color 0.3s ease-in-out;
    cursor: pointer; 
}

.event-modal-close:hover {
    color: #d9534f; /* �erven� p�i najet� */
}

/* Obr�zek v modalu */
.event-modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin: 15px 0;
}

/* Textov� obsah */
.event-modal-description {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Tla��tko */
.event-modal-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.event-modal-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}


.games-logo1 {
width:10%;
}

.games-logo1 img {
width:60%;
}

.games-logo2 {
width:20%;
margin-left:3%;
}

.games-logo2 img {
width:100%;

}

.games-logo3 {
width:15%;
margin-left:2%;
}

.games-logo3 img {
width:50%;
}

.games-logo4 {
width:25%;
}

.games-logo4 img {
width:70%;
}

.games-logo5 {
width:20%;
}

.games-logo5 img {
width:70%;
}


.games-logos {
 display: flex;
width:100%;
float:left;
}

.games-logos img {
width:100%;
}







