body {
    background-image:url(hatter.png);
    background-repeat: repeat;
    background-size: cover;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

.font-size-control {
    position: static;
    width: auto;
    top: 1.5rem;
    right: 1.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 0.3rem;
    box-shadow: 0 0.125rem 0.3rem rgba(0,0,0,0.2);
    z-index: 50;
    flex-wrap: wrap;
    display: flex;
}

.font-size-control label {
    margin-right: 1.5rem;
    width: auto;
    font-size: 0.875rem;
}

.font-size-btn {
    background-color: #f8f8f8;
    border: 0.06rem solid #ddd;
    padding: 0.3rem 10px;
    margin: 0 0.180rem;
    cursor: pointer;
    border-radius: 0.180rem;
    font-size: 0.7rem;
}

.font-size-btn.active {
    background-color: #a41e65;
    color: white;
}

.large-text {
    font-size: 120%;
}

.large-text .main-title {
    font-size: 2.75rem;
}

.large-text h2 {
    font-size: 1.8rem;
}

.large-text .summary-title {
    font-size: 1.8rem;
}

.large-text summary {
    font-size: 1.2rem;
}

.large-text p, 
.large-text .summary-text, 
.large-text details p, 
.large-text caption,
.large-text td,
.large-text th,
.large-text .wikipedia {
    font-size: 120%;
}

.skip-links {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1001;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
}

.visually-hidden:focus,
.visually-hidden:active {
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: fixed;
    top: 0.3rem;
    left: 0.3rem;
    z-index: 1001;
    background-color: #a41e65;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 0.3rem;
    box-shadow: 0 0 0.6rem rgba(0, 0, 0, 0.25);
    text-decoration: none;
    font-weight: bold;
}

header {
    color: rgb(0, 0, 0);
    padding: 10px;
    text-align: center;
}

header h1{
    background-color: white;
    border-radius: 5px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-title {
    text-align: center;
    color: #a41e65;
    font-size: 36px;
    margin: 30px 0;
}

.content-section {
    display: flex;
    margin: 1.5rem 0;
    gap: 1rem;
}

.movie-poster {
    width: 100%;
    max-width: 350px;
    padding: 0;
    margin: 0 auto 1rem auto;
}

.movie-poster img{
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.poster-placeholder {
    width: 100%;
    height: 400px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movie-trailer {
    width: 60%;
}

.movie-trailer h2{
    background-color: white;
    width: 15rem;
    border-radius: 5px;
}

video {
    width: 100% !important;
    height: auto;
    border-radius: 5px;
}

.movie-trailer summary {
    cursor: pointer;
    background-color: #ffffff;
}

.movie-trailer details {
    background-color: #ffffff;
    border-radius: 10px;
    padding-right: 5px;
}

.trailer-title {
    margin-top: 0;
    margin-bottom: 15px;
}

.trailer-placeholder {
    width: 100%;
    height: 300px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movie-summary {
    margin: 30px 0;
    border-radius: 8px;
}

.summary-title {
    width: 15rem;
    margin-bottom: 15px;
    background-color: #ffffff;
    border-radius: 8px;
}

.summary-text {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
    line-height: 1.5;
    background-color: #ffffff;
    border-radius: 8px;
}

.info-section {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.info-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.info-section caption {
    width: auto;
    max-width: 100%;
    text-align: left;
    color: #000000;
    border-bottom: 1px solid #ddd;
}

.info-section b {
    border-bottom: 1px solid #ddd;
    border-radius: 5px;
    width: auto;
    background-color: #ffffff;
}

.info-section details {
    margin-bottom: 5px;
    border-radius: 5px;
    background-color: #ffffff;
    overflow: hidden;
}

.info-section summary {
    background-color: #ffffff;
    cursor: pointer;
}

.info-section summary:hover {
    background-color: #eaeaea;
}

.info-section details p {
    padding: 10px;
    background-color: #ffffff;
    margin: 5px 0 0 0;
    border-radius: 3px;
}

.info-section th, .info-section td {
    border: 1px solid #444;
    padding: 10px;
    text-align: center;
    background-color: #ffffff;
}

.info-section th {
    background-color: #333;
    color: white;
    width: 10%;
}

table td:nth-child(5), table th:nth-child(5) {
    width: 4%;
}

.info-section meter {
    width: 70%;
    height: 10px;
    margin-right: 10px;
}

.wikipedia {
    margin-left: 2rem;
    text-align: left;
    background-color: #ffffff;
    border-radius: 5px;
    width: 50%;
}

a:link {
    color: rgb(116, 21, 84);
}

a:visited {
    color: hotpink;
}

  a:hover {
    color: rgb(114, 157, 172);
}
  
a:active {
    color: blue;
}

footer {
    background-color: #f8f8f8;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    color: #000000;
    margin-top: 50px;
}

.heart {
    color: #ff1493;
}

.movie-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.movie-navigation a {
    margin: 0.3rem;
    padding: 0.6rem 1rem;
    flex-grow: 0;
    flex-shrink: 1;
    min-width: 120px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 5px;
    color: #333;
}

.movie-navigation a.active {
    background-color: #a41e65;
    color: white;
    font-weight: bold;
    border-color: #ffffff;
}

.nyomtatas {
    display: none;
}

@media (max-width: 576px) {
    .movie-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .movie-navigation a {
        width: 100%;
        margin: 0.2rem 0;
        text-align: center;
    }
    
    .content-section {
        flex-direction: column;
    }
    
    .wikipedia {
        margin: 1rem;
        text-align: center;
    }
}

/* Tablet */
@media (min-width: 577px) and (max-width: 768px) {
    .content-section {
        flex-direction: column;
    }
    
    .movie-poster {
        width: 80%;
        margin: 0 auto 1rem auto;
    }
    
    .movie-trailer {
        width: 100%;
    }
}

/* Kisebb laptopok */
@media (min-width: 769px) and (max-width: 992px) {
    .content-section {
        flex-direction: row;
    }
    
    .movie-poster {
        width: 40%;
        padding-right: 1.5rem;
    }
    
    .movie-trailer {
        width: 55%;
    }
}

/* Laptopok és asztali gépek */
@media (min-width: 993px) {
    .container {
        max-width: 1200px;
    }
    
    .content-section {
        flex-direction: row;
    }
    
    .movie-poster {
        width: 40%;
        padding-right: 30px;
    }
    
    .movie-trailer {
        width: 60%;
    }
}