/* Global Styles ------------------------------------------ */
/* Base styles for the entire document */
body {
    background-color: whitesmoke;
    font-family: Arial, Helvetica, sans-serif;
    color: black;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
}

.page-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Typography ------------------------------------------ */
/* Headings and text */
h1 {
    color: black;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Gill Sans', 'Gill Sans MT', 'Calibri', 'Trebuchet MS', sans-serif
}

h2 {
    text-align: center;
    font-family: 'Gill Sans', 'Gill Sans MT', 'Calibri', 'Trebuchet MS', sans-serif
}

.h2_home {
    font-size: 1.2rem;
    font-weight: bold;
    font-family: Helvetica, Arial, sans-serif;
}

.h2_life {
    font-size: 1.5rem;
    font-family: 'Gill Sans', 'Gill Sans MT', 'Calibri', 'Trebuchet MS', sans-serif
}

p {
    line-height: 1.5;
}

.list-title-home {
    text-align: left;
}

/* Links */
a:link {
    color: blue;
    text-decoration: underline;
}

a:visited {
    color: purple;
    text-decoration: none;
}

a:hover {
    color: darkred;
    text-decoration: underline;
}

a:active {
    color: red;
    text-decoration: underline;
}

/* Images ------------------------------------------ */
/* Styles for different image types */
.img_home,
.img_films_big {
    width: 100%;
    height: auto;
}

.img_films_big {
    object-fit: cover;
}

.img_films_small {
    width: 100%;
    height: calc(50% - 10px);
    object-fit: cover;
    margin-bottom: 10px;
}

.thumbnail {
    margin: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    width: 150px;
}

.thumbnail:hover {
    box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}

/* Buttons ------------------------------------------ */
/* Primary button styles */
.btn-primary {
    background-color: transparent !important;
    border-color: black !important;
    color: black !important;
}

.btn-primary:hover {
    background-color: darkred !important;
    border-color: darkred !important;
    color: white !important;
}

/* Navbar / Header ------------------------------------------ */
/* Navigation bar and branding */
.navbar {
    background-color: rgb(32, 32, 32) !important;
    color: white;
}

.navbar a.nav-link {
    color: rgb(178, 178, 178);
    text-decoration: none !important;
}

.navbar a.nav-link:hover {
    color: white;
    text-decoration: none !important;
}

.navbar a.nav-link.active {
    color: white;
    font-weight: bold;
    text-decoration: none !important;
}

.navbar-brand {
    color: white !important;
    text-decoration: none !important;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Tables ------------------------------------------ */
/* Table styling for borders and alignment */
.table {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: auto;
}

.table caption {
    caption-side: bottom;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Footer ------------------------------------------ */
/* Footer and its links */
footer {
    background-color: #e9ecef;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

footer a {
    text-decoration: none;
    color: darkred;
}

footer a:hover {
    text-decoration: underline;
}

/* Carousel ------------------------------------------ */
/* Styling carousel images */
.carousel-item img {
    object-fit: cover;
    object-position: center;
    height: 70vh;
    overflow: hidden;
}

figcaption {
    color: darkred;
    font-style: italic;
    padding: 1px;
    text-align: center;
}

/* Contact Page ------------------------------------------ */
/* Styles for the contact page background and form */
.contact-page {
    background: url('https://static1.colliderimages.com/wordpress/wp-content/uploads/2022/09/yojimbo.jpg') no-repeat center center fixed;
    background-size: cover;
}

.text-input,
.textarea-input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.text-input:focus,
.textarea-input:focus {
    border-color: darkred;
    outline: none;
}

.textarea-input {
    height: 150px;
    resize: vertical;
}

/* Content Containers ------------------------------------------ */
/* Adding white background and shadow */
.content-container {
    background: rgba(255, 255, 255, 0.95);
    margin: 20px auto;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 1200px;
}

/* Accessibility ------------------------------------------ */
/* High contrast mode */
.high-contrast,
.high-contrast figcaption {
    background-color: black;
    color: white;
    font-size: 1.25rem;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.8;
}

.high-contrast a, .high-contrast .nav-link {
    color: yellow !important;
    text-decoration: underline;
}

.high-contrast a:hover, .high-contrast .active {
    color: orange !important;
}

.high-contrast .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.high-contrast h1,
.high-contrast h2,
.high-contrast h3 {
    font-size: 2rem;
    text-transform: uppercase;
    color: white;
}

.high-contrast caption {
    color: white;
}

.high-contrast .h2_home {
    font-size: 1.5rem;
    text-transform: uppercase;
    color: white;
    font-weight: lighter;
}

.high-contrast button,
.high-contrast .btn {
    background-color: yellow !important;
    color: black !important;
    font-size: 1.25rem;
    border: 2px solid black !important;
    padding: 0.5rem 1rem;
    text-transform: uppercase !important;
    font-weight: bold !important;
}

.high-contrast button:hover,
.high-contrast .btn:hover {
    background-color: orange !important;
    color: white !important;
}

.high-contrast .content-container {
    background-color: black;
}

.high-contrast header, .high-contrast .navbar {
    background-color: black !important;
    color: yellow;
    border-bottom: 3px solid yellow;
}

.high-contrast footer {
    background-color: black;
    color: white;
    border-top: 3px solid yellow !important;
}

.high-contrast .text-body-secondary {
    color: white !important; 
}

.high-contrast .table {
    background-color: black;
    color: white;
    border-color: white;
}

/* Miscellaneous ------------------------------------------ */
/* Ensure rows don't slide sideways */
.row {
    margin-left: 0;
    margin-right: 0;
}

/* Visually hidden for accessibility */
#visually-hidden {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-100%);
    background-color: black;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    text-decoration: none;
    z-index: 1000;
}

#visually-hidden:focus {
    transform: translateY(0);
    outline: 2px solid white;
}

/* Print */
.print {
    display: none;
}