.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0) invert(0);
  background-image: none !important;
  background-color: black !important;
  mask-image: url("data:image/svg+xml;charset=utf8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 8 8'%3e%3cpath stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M5.25 1.75L2.75 4l2.5 2.25'/%3e%3c/svg%3e");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 100% 100%;
}
.carousel-control-next-icon {
  mask-image: url("data:image/svg+xml;charset=utf8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 8 8'%3e%3cpath stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M2.75 1.75L5.25 4 2.75 6.25'/%3e%3c/svg%3e");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 100% 100%;
}

/* Create black arrows using CSS shapes */
.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
  content: '';
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-style: solid;
  border-width: 0.2rem 0.2rem 0 0;
  border-color: black;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev-icon::before {
  left: 0.6rem;
  transform: translateY(-50%) rotate(-45deg);
}

.carousel-control-next-icon::before {
  right: 0.6rem;
  transform: translateY(-50%) rotate(135deg);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* General Input Styles */
textarea,
#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea {
  width: 100%;
  max-width: 100%;
}

/* Specific Field Widths */
#username {
  max-width: 400px;
}

#contactInfo {
  max-width: 300px;
}

#message {
  max-width: 600px;
  min-height: 120px;
}

/* Footer Links */
footer a {
  color: #6895d3;
  text-decoration: underline;
}

footer a:visited {
  color: #2c66b8;
  background-color: transparent;
}

/* Headings */
h2 a {
  color: #074fb4;
  text-decoration: underline;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

h2 a:visited {
  color: #03224d;
  text-decoration: none;
  font-style: italic;
}

aside a {
  color: #074fb4;
  text-decoration: underline;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

aside a:visited {
  color: #03224d;
  text-decoration: none;
  font-style: italic;
}

h1 {
  text-align: center;
  background-color: #ffffff;
  color: #000;
  padding: 10px;
  text-shadow: 3px 5px 6px rgb(76, 76, 76);
  border-radius: 5px 5px 0 0;
}

h2 {
  color: rgb(110, 54, 54);
  font-family: MyFont, sans-serif;
}

main h2:before {
  content: '🎞️';
  padding-right: 10px;
}

h2.forras:before {
  content: '📚';
  padding-right: 10px;
}

h5{
    font-family: MyFont, sans-serif;
    color: #000000;;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Layout Sections */
#main {
  background-color: burlywood;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

#bg {
  background-color: #de8e52;
}

#content {
  margin: 3%;
}

#strat {
  max-width: 95%;
}

#mainContent,
#sideContent {
  float: left;
  display: inline;
  width: 49%;
}

/* Table Styles */
table {
  border-collapse: collapse;
  background-color: #584c39;
  caption-side: bottom;
}

/* Font Face */
@font-face {
  font-family: 'MyFont';
  src: url('../font/Type Machine.ttf') format('truetype');
}

/* Global Styles */
html {
  background-image: url("../media/hatter.png");
  background-attachment: fixed;
  background-size: cover;
}

body {
  font-family: MyFont, sans-serif;
  margin: 30px auto;
  padding: 15px 20px;
  background-color: #ffffffde;
  color: #000;
  line-height: 1.6;
  border-radius: 10px;
  border: 2px solid black;
  max-width: 1000px;
  font-size: 1rem;
}

/* Paragraphs */
p {
  margin-bottom: 15px;
  text-align: justify;
}

figcaption,
footer p {
  text-align: center;
}

/* Images */
img {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 10px auto;
  border-radius: 5px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Audio and Video */
audio,
video {
  display: block;
  margin: 15px auto;
  max-width: 100%;
}

/* Code Blocks */
pre {
  background: #272822;
  color: #f8f8f2;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

/* Special Blocks */
#bevezeto {
  border: 1px dotted gray;
  padding: 10px;
  background-color: #faf4e3;
  column-count: 2;
  column-gap: 30px;
  border-radius: 5px;
}

#bevezeto ol {
  padding-left: 0;
  margin-left: 20px;
}

#bevezeto li:before {
  content: '🎞️';
  padding-right: 10px;
}

/* Iframes */
iframe {
  display: block;
  margin: 0 auto;
  width: 100%;
  border: none;
}

/* Responsive Design */
@media (min-width: 769px) {
  table {
    float: right;
    margin-left: 20px;
  }
}

@media (max-width: 768px) {
  img,
  video,
  audio {
    max-width: 100%;
  }

  #bevezeto {
    column-count: 1;
  }

  table {
    float: none;
    margin: 0 auto;
  }

  h1 {
    font-size: 1.3rem;
  }
}
