:root {
  /*--main-color: #724b39;*/
  --bg-color: #6494ed43;
  --bg-elol: #6494edbe;
  --text-color: black;
  --border-color: rgb(129, 125, 125);
  --secondary-color: lightgray;
  --link-hover: rgba(0, 0, 139, 0.7);
  --link-active: #00478e;

  font-size: 16px;
}

body {
  background-color: var(--border-color);
  margin: 20px 0;
  font-family: Arial, sans-serif;
}

hr {
    border: 0;
  border-top: 1px solid black;
  background: none;
}
.container {
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 2px solid var(--text-color);
  border-radius: 30px;
  box-shadow: 5px 5px 10px black;
  padding: 1rem;
}

.styled-figure {
  position: relative;
  overflow: hidden;
  display: inline-block;
  color: #000;
  font-weight: bold;
}

.styled-figure a:hover,
.styled-figure a:focus {
  color: var(--link-active);
  text-decoration: underline;
}

.styled-figure img {
  border: 4px solid rgba(0, 0, 0, 0.6);  
  border-radius: 8px;
}

.styled-figure figcaption {
  position: absolute;
  top: 95%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-color);
  text-align: center;
  backdrop-filter: blur(6px);  
}

.align-middle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;  
}

.middle-text {
  display: flex;
  flex-direction: column;
  justify-content: center;   
  align-items: center;       
  height: 100%;
}

.middle-text h2 h4{
  text-align: center;
  width: 100%;
  padding-bottom: 20px;
}

.row > .col-12,
.row > .col-md-6 {
  height: auto;
}

.film h3 {
    display: flex;
  flex-direction: column;
  justify-content: center;   
  align-items: center;       
  height: 100%;
  text-decoration: underline;
}

.film .middle-text {
     background-color: var(--secondary-color); 
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    color: var(--text-color);
    text-align: left;
    line-height: 1.6;
}

.welcome {
  padding: 2rem 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  background-color: #6494edbe;
  color: var(--text-color);
  border: 2px solid var(--text-color);
  border-radius: 30px;
  box-shadow: 5px 5px 10px black;
  padding: 1rem;
}

.welcome h1 {
  margin: 0;
  font-size: 2.5rem;
  text-align: center;
  color: var(--text-color);
  line-height: 1.2;
}


.quote-wrapper {
  text-align: center;
  margin: 2rem 0;
}

.styled-quote {
  display: inline-block;
  position: relative;
  max-width: 800px;
  background-color: #e0e0e0;      
  border: 1px solid rgba(0,0,0,0.4); 
  padding: 1.5rem 2rem;
  font-style: italic;
  color: #333;
  line-height: 1.4;
}

.styled-quote::before,
.styled-quote::after {
  font-family: serif;
  font-size: 4rem;
  color: rgba(0,0,0,0.3);
  position: absolute;
}

.styled-quote::before {
  content: "“";
  top: -0.5rem;
  left: -0.5rem;
  color: var(--text-color);
}

.styled-quote::after {
  content: "”";
  bottom: -0.5rem;
  right: -0.5rem;
  color: var(--text-color);
}

.styled-quote p {
  margin: 0;
  text-align: center;
}

.styled-quote .quote-author {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: normal;
  text-align: right;
  color: rgba(0,0,0,0.7);
}

.button-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 0 1rem 0;
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.custom-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--secondary-color);
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  border: 2px solid var(--text-color);
  border-radius: 10px;
  transition: background-color 0.3s, transform 0.2s;
  text-align: center;
  text-decoration: underline;
}

.custom-button:hover,
.custom-button:focus {
  background-color: var(--bg-elol);
  transform: translateY(-2px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.rating-box {
  background-color: #e0e0e0; 
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  border-radius: 10px;
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.stars {
  font-size: 1.8rem;
  color: var(--link-hover);
  letter-spacing: 0.2rem;
}

.button-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.site-footer {
  background-color: var(--secondary-color);
  color: var(--text-color);
  padding: 1rem;
  margin-top: 3rem;
  text-align: center;
  border-top: 2px solid var(--text-color);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--link-hover);
  text-decoration: none;
  font-weight: bold;
}

.site-footer a:hover {
  text-decoration: underline;
  color: var(--link-active);
}

.video-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background-color: #000;
  color: black;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--text-color);
  background-color: black;
  border-radius: 8px;
  color: black;
}

.video-description-link {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  color: var(--link-hover);
  font-weight: bold;
  text-decoration: underline;
}

.video-description-link:hover {
  color: var(--link-active);
}