#main1
{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.card 
{
  width: 90%;
  max-width: 800px;
  height: auto;
  min-height: 200px;
  margin: 25px auto;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 64px;
  color: white;
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease-in;
}

:root 
{
  --card-bg: linear-gradient(43deg, #091771 0%, #4158D0 46%, #C850C0 70%, #EEC644 100%);
}

.dark-theme
{
  --card-bg: linear-gradient(43deg, #121416 15%, #1F1F1F 46%, #2B1B4D 70%, #A97E2C 100%);
}

.card-content 
{
  padding: 35px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: white;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.card-content .card-title a 
{
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-header);
  transition: 0.3s;
  transform: translateY(0);
  padding: 0;
  cursor: pointer;
}

.card-title a:hover
{
  color: var(--text-header-a);
  transform: translateY(-3px);
}

.card-content .card-para 
{
  color: inherit;
  opacity: 0.8;
  font-size: 18px;
  cursor: default;
}

.card:hover 
{
  transform: rotateY(10deg) rotateX(10deg) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card:before 
{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  z-index: 1;
}

.card:hover:before 
{
  transform: translateX(-100%);
}

.card:after 
{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  z-index: 1;
}

.card:hover:after 
{
  transform: translateX(100%);
}

.peak 
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 700px; 
  min-height: 200px;
  border-radius: 50px;
  background: var(--peak-bg);
  box-shadow: 15px 15px 30px var(--peak-shadow-dark), -15px -15px 30px var(--peak-shadow-light);
  margin: 25px 20px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: var(--peak-text);
  animation: fadeIn 1s ease-in;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  padding: 20px;
}

.peak:hover 
{
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.peak .text 
{
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.peak .nadpis 
{
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.peak .textik 
{
  font-size: 1.2rem;
}

.peak .odkazy 
{
  flex: 0 0 400px;
  height: 200px;
  background-color: var(--peak-bg);
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--peak-odkaz-border);
  box-shadow: 12px 17px 51px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  font-weight: bolder;
  color: var(--peak-text);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.peak .odkazy:hover 
{
  border: 1px solid var(--peak-obh);
  transform: scale(1.05);
}

.peak .odkazy:active 
{
  transform: scale(0.95) rotateZ(1.7deg);
}

.peak .odkazy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #e0e0e0;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  transition: background-color 0.3s ease;
}

.peak .odkazy > * {
  position: relative;
  z-index: 1;
}

body.dark-theme .peak .odkazy::before 
{
  background-color: #292929;
}

.peak .odkazy span 
{
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.odkaz-teoria 
{
  background-image: url('/obrázky/knihy.jpg');
  background-size: cover;
  background-position: center;
}

.odkaz-simulacie 
{
  background-image: url('/obrázky/02_series_rlc_circuitscb.jpg');
  background-size: cover;
  background-position: center;
}

.odkaz-suciastky 
{
  background-image: url('/obrázky/kopa-sracek.jpg');
  background-size: cover;
  background-position: center;
}

.peak:nth-child(even)
{
  flex-direction: row-reverse;
}

.preklik 
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

:root 
{
  --peak-bg: #e0e0e0;
  --peak-shadow-dark: #bebebe;
  --peak-shadow-light: #ffffff;
  --peak-text: #212121;
  --peak-odkaz: #e0e0e0;
  --peak-odkaz-border: white;
  --peak-obh: #212121;
}

.dark-theme 
{
  --peak-bg: #292929;
  --peak-shadow-dark: rgb(25, 25, 25);
  --peak-shadow-light: rgb(60, 60, 60);
  --peak-text: #e0e0e0;
  --peak-odkaz: #212121;
  --peak-odkaz-border: black;
  --peak-obh: white;
}

.marquee-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  width: 100%;
  background: #121212;
  padding: 20px 0;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: flex;
  gap: 20px;
}

.cards {
  flex: 0 0 auto;
  width: 200px;
  height: 120px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Animation - right */
.marquee-right .marquee-content {
  animation: marqueeRight 20s linear infinite;
}

/* Animation - left */
.marquee-left .marquee-content {
  animation: marqueeLeft 20s linear infinite;
}

/* Keyframes */
@keyframes marqueeRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@keyframes marqueeLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 600px)
{
  .peak .odkazy
  {
    display: none;
  }

.peak 
{
  width: 350px;
  height: 200px;
  border-radius: 50px;
  background: var(--peak-bg);
  box-shadow: 15px 15px 30px var(--peak-shadow-dark), -15px -15px 30px var(--peak-shadow-light);
  margin: 25px 20px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  text-align: left;
  color: var(--peak-text);
  animation: fadeIn 1s ease-in;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

.peak .nadpis
{
  font-size: 2rem;
  padding-left: 15px;
  font-weight: 700;
}

.peak .textik
{
  font-size: 1.2rem;
  padding-left: 15px;
}

.peak:hover
{
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
}