html,
body {
  margin: 0%;
  transition: background-color 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: 0 0px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;

  /* Set your single background image globally here */
  /* background-image: url('assets/images/main-background.png'); */

  /* Keep it looking perfect on all screens */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body {
  font-family: serif;
  font-weight: bold;
}

/* Animated backround settings */
.main-background {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;

  background-color: #2200ff;
  background-image:
    radial-gradient(at 80% 20%, rgb(255, 0, 128) 0%, transparent 90%),
    radial-gradient(at 40% 80%, rgb(0, 255, 255) 0%, transparent 90%);

  background-size: 200% 200%;
  animation: moveBg 15s ease infinite alternate;
}

@keyframes moveBg {
  0% {
    background-position: 20% 20%, 80% 80%;
  }

  50% {
    background-position: 80% 20%, 20% 80%;
  }

  100% {
    background-position: 50% 50%, 50% 50%;
  }
}

/* fonts settings */
h1 {
  color: rgb(255, 255, 255);
  text-shadow: 1px 2px 2px rgba(255, 255, 255, 0.103);
  font-family: 'Courier New', Courier, monospace;
  font-size: 30px;
  text-align: center;
}

h1.nav-title {
  font-size: 1.75rem;
  position: absolute;
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
}

.page-title {
  color: rgb(0, 0, 0);
  font-size: 44px;
  text-shadow: 1px 2px 2px rgba(255, 255, 255, 0.103);
  font-weight: 700;
}

.card-title {
  font-weight: bold;
}

.main-text {
  font-size: 20px;
  font-weight: 600;
  color: black;
  text-shadow: 1px 2px 2px rgba(255, 255, 255, 0.103);
  text-decoration: none;
}

/* back button settings */
.back-btn {
  background-color: transparent;
  /* Убираем фон */
  border: 1px solid white;
  /* Рамка */
  color: white;
  /* Цвет текста */
  padding: 8px 16px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: 0.3s;
  margin-right: auto;
  /* Прижимает кнопку к левому краю */
}

.back-btn:hover {
  background-color: white;
  color: #333;
  /* Эффект при наведении */
  text-decoration: none;
}

.back-btn span {
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.back-btn span:after {
  content: '\27ea';
  position: absolute;
  opacity: 0;
  left: -10px;
  transition: 0.5s;
}

.back-btn:hover span {
  padding-left: 10px;
}

.back-btn:hover span:after {
  opacity: 1;
  left: 0;
}

.back-btn:link {
  text-decoration: none;
}

/* card blocks settings */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: auto;
  grid-auto-flow: dense;
  align-items: start;
  gap: 20px;
  margin: 0 auto;
  padding: 0 25px;
}

.portfolio-grid .card {
  flex: 0 0 300px;
  /* Sets a consistent width for your cards */
  max-width: 300px;
}

.glass-card {
  /* margins between the text and the card borders*/
  padding: 10px;

  /* Transparent background with a slight white tint */
  background: rgba(255, 255, 255, 0.2);

  /* The "Frosted" effect */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Required for Safari */

  /* Subtle border to define the glass edge */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  /* Rounded corners look better for glass */

  /* Optional: Add a soft shadow for depth */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* cartoon project page settings */
#cartoon-canvas {
  /* Adding top and left margins */
  margin-top: 44px;
  margin-left: 32px;

  /* Important: This ensures the margin-top actually works */
  display: block;
}

/* mythology notes style */
.myth-notes {
  margin-top: auto;
  width: 100%;
  height: auto;
  display: block;
}

/* video player position settings */
.video-container {
  display: grid;
  justify-content: center;
  /* This centers the content horizontally */
  width: 100%;
  /* Ensures the container spans the full width */
}

.app-header {
  width: 100%;
  padding-top: 70px;
  text-align: center;
  background: rgba(0, 0, 0, 0);
}

#myth-selector {
  padding: 10px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 250px;
}

.content-card {
  width: 80%;
  padding: 1% 1.5%;
  border-radius: 16px;
  text-align: left;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f2e5c4;
  background-image: linear-gradient(90deg, rgba(140, 107, 61, 0.15) 1px, transparent 1px),
    linear-gradient(0deg, rgba(140, 107, 61, 0.15) 1px, transparent 1px),
    linear-gradient(117deg, rgba(254, 255, 255, 0.3) 21%, transparent 27%,
      transparent 42%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.3) 75%,
      transparent 87%, transparent);
  box-shadow: inset 0 0 30px rgba(94, 69, 39, 0.25), 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #2b2013;

  font-weight: 400;
}

.content-card img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

.content-card h2 {
  margin-top: 0;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.navbar {
  position: fixed;
  top: 0;
  height: 60px;
  width: 100%;
  background-color: rgba(26, 26, 26, 0.95);
  display: flex;
  align-items: center;
  padding: 1% 1%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

/* IMPORTANT: Because the navbar is fixed, it doesn't take up space anymore. 
   We must add a margin or padding to the top of our wrapper so the 
   top of our content isn't hidden behind the navbar. */
.wrapper {
  margin-top: 7.5%;
  padding: 10px;
}

/* Control Panel Grid Alignments */
#audio-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 15px;
  flex-direction: row;
}

#audio-controls button {
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
}

/* Disabled button utility layout treatment */
#audio-controls button:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* fonts for content-card, content card h2, h1.nav-title, page-title
    sizes and thickness should be changed in the main blocks of this classes */
.content-card, .content-card h2, h1.nav-title, .page-title {
  font-family: 'Cinzel', serif;
}