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;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
    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;
    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 0.625rem;
    margin: 0 0.180rem;
    cursor: pointer;
    border-radius: 0.180rem;
    font-size: 0.7rem;
}

.font-size-btn.active {
    background-color: #9d155e;
    color: white;
}

.large-text {
    font-size: 120%;
}

.large-text .main-title {
    font-size: 2.75rem;
}

.large-text .movie-title {
    font-size: 1.5rem;
}

.large-text .intro-text,
.large-text .question-text,
.large-text form,
.large-text .radio-group p,
.large-text label {
    font-size: 120%;
}

.skip-links {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1001;
}

.visually-hidden {
    position: absolute;
    width: 0.063rem;
    height: 0.063rem;
    margin: -0.063rem;
    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: #FF1493;
    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 {
    outline-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    padding: 0.625rem;
    text-align: left;
    border-radius: 0.313rem;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1.25rem;
}

.nav-menu {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.25rem 0;
}

.nav-button {
    border-radius: 0.3rem;
    padding: 0.625rem 1rem;
    margin: 0 0.3rem;
    text-align: center;
    background-color: #f8f8f8;
    border: 0.063rem solid #ddd;
    text-decoration: none;
    flex: 0 1 auto;
    min-width: 120px;
    color: #333;
}

.nav-button.active {
    background-color: #a41e65;
    color: white;
    font-weight: bold;
    border-color: #ffffff;
}

.main-title {
    background-color: rgb(255, 255, 255);
    border-radius: 1rem;
    width: auto;
    text-align: center;
    color: #a81563;
    font-size: 2.25rem;
    margin: 1.8rem auto;
    margin-left: 12.5rem;
    margin-right: 12.5rem;
}

.intro-text {
    background-color: rgb(255, 255, 255);
    border-radius: 1rem;
    border: 0.063rem solid #ddd;
    padding: 1rem;
    margin-bottom: 1.8rem;
    text-align: justify;
    line-height: 1.5;
}

.movie-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2.5rem auto;
    margin-left: 7.5rem;
    margin-right: 8rem;
}

.movie-card {
    width: 100%;
    max-width: 13rem;
    margin: 0 auto;
    text-align: justify;
}

.movie-placeholder {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.movie-placeholder figcaption {
    width: 10rem;
}

.movie-title {
    background-color: rgb(255, 255, 255);
    border-radius: 1rem;
    font-size: 1rem;
    text-align: center;
    margin: 0.625rem 0;
    padding: 0.313rem;
    text-decoration: none;
}

img {
    border: 0.063rem solid #ddd;
    border-radius: 0.3rem;
    padding: 0.3rem;
    max-width: 100%;
}

img:hover {
     box-shadow: 0 0 0.125rem 0.063rem rgba(0, 140, 186, 0.5);
}

.question-section {
    background-color: rgb(255, 255, 255);
    border-radius: 1rem;
    padding: 1.25rem;
    margin: 1.8rem 0;
}

.question-text {
    font-style: italic;
    margin-bottom: 1.25rem;
    padding: 0.313rem;
    text-align: left;
}

form {
    margin: 1.25rem 0;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: inline-block;
    width: 6.25rem;
    margin-right: 1rem;
}

input[type="text"], input[type="email"], textarea {
    padding: 0.313rem;
    width: 20rem;
    height: 1rem;;
}

textarea {
    width: 20rem;
    height: 6.25rem;
}

.radio-group {
    margin: 1.25rem 0;
    width: 30rem;
    display: block;
    padding: 0.625rem;
}

.radio-option {
    margin-bottom: 0.625rem;
    
}

.radio-option label {
    width: 6rem;
    margin-left: 0.625rem;
    text-align: left;
    display: inline;
}

.button-group {
    margin-top: 1.25rem;
    text-align: left;
}

.form-group label[for="subscribe"] {
    width: 100%;
    max-width: 100%;
    display: inline-block;
    margin-left: 0.625rem;
    margin-right: 0;
    text-align: left;
    vertical-align: top;
}

button {
    padding: 0.625rem 1.25rem;
    margin: 0 0.625rem;
    cursor: pointer;
}

footer {
    background-color: #f8f8f8;
    padding: 0.625rem;
    text-align: center;
    font-size: 0.75rem;
    color: #000000;
    margin-top: 3.2rem;
}

.heart {
    color: #ff1493;
}

@media (max-width: 576px) {
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-button {
        width: 100%;
        margin: 0.2rem 0;
    }
    
    .radio-group {
        width: 100%;
    }
    
    .button-group {
        display: flex;
        flex-direction: column;
    }
    
    button {
        margin: 0.3rem 0;
        width: 100%;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .movie-grid {
        justify-content: space-around;
    }
    
    .radio-group {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .container {
        width: 95%;
    }
}

@media (min-width: 993px) {
    .container {
        max-width: 75rem;
    }
    
    .form-group {
        flex-direction: row;
        align-items: center;
    }
    
    .form-group label {
        width: 6.25rem;
        margin-right: 1rem;
        margin-bottom: 0;
    }
}