/* CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

/* Remove list styling for lists */
ul, ol {
    list-style: none;
}

/* Remove anchor text decoration */
a {
    text-decoration: none;
}

/* Remove default button styles */
button {
    border: none;
    padding: 0;
    margin: 0;
    overflow: visible;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: normal;
}

/* Remove default input styles */
input, select {
    border: none;
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    line-height: normal;
}

/* Remove default text area styles */
textarea {
    overflow: auto;
    vertical-align: top;
    resize: vertical;
}

/* Main Styles */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

li{
    margin-top: 1.5rem; 
    vertical-align: center;
}

body {
    line-height: 1;
    font-family: 'Josefin Sans', sans-serif;
    background-size: contain;
    background-image: url('https://imjustkevin.com/images/paper_texture.png');
    background-repeat: repeat;
    background-size: 55%;
    overflow-x: hidden;
    padding: 0 3.5rem;
    padding-bottom: 2%;
}

p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.3rem;
    color: #0e0d0d;
}

h1 {
    font-family: 'Josefin Sans', bold;
    font-size: 3.25rem;
    line-height: 3.25rem;
    font-weight: 600;
    color: #0e0d0d;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 500;
    font-size: 3.125rem;
    color: #0e0d0d;
}

h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: bold;
    font-size: 2rem;
    color: #0e0d0d;
    padding-bottom: .5rem;
}

h4 {
    font-size: 2rem;
    color: #0e0d0d;
    padding-bottom: .5rem;
}

ul.other-works {
    list-style-type: none;
    padding: 0;
    margin-top: -1.7rem;
}

ul.other-works li {
    font-weight: 500;
    display: block;
    font-size: 100%;
    margin-top: 1.95rem;
}

ul.other-works li strong {
    font-weight: 700;
}

ul.other-works li:before {
    content: "•"; /* You can use any other symbol or none */
    margin-right: 5px;
}

/* Table Styles */
caption {
    padding-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background-color: rgba(245, 245, 220, 0.2);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #0e0d0d;
}

th {
    background-color: rgba(245, 245, 220, 0.4);
    
}

tr:hover {
    background-color: rgba(245, 245, 220, 0.2);
}

.small-movie-poster-img {
    max-width: 100px; /* Adjust the max-width as needed */
    height: auto;
    margin-right: 10px; /* Adjust the margin as needed */
}

/* Responsive table styling */
@media only screen and (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        margin-bottom: 1rem;
    }

    td {
        border: none;
        position: relative;
        padding-left: 50%;
    }

    td:before {
        position: absolute;
        top: 0;
        left: 0;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: bold;
    }
}


/* Button */
button {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    font-style: italic;
    color: #0e0d0d;
    border: 0.2rem solid transparent; /* Initially transparent border */
    background-color: rgba(245, 245, 220, 0.2);
    padding: .5rem 1rem; /* Increase padding for a larger button */
    box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.5);
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 1s ease, transform 0.3s ease, font-weight 0.3s ease, box-shadow 0.5s ease;
    border-radius: 0.5rem; /* Add border-radius for a slightly rounded shape */
}

button:hover {
    background-color: rgba(245, 245, 220, 0.4);
    box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.3);
    font-weight: bold;
    transform: scale(1.1);
    border-radius: 0.5rem; /* Maintain border-radius on hover */
}

/* Grid Settings */
:root {
    --grid-max-width: 100%;
    --grid-gutter: clamp(0.31rem, calc(-0.14rem + 2.27vw), 1.25rem);
    --grid-columns: 12;
}

.u-container {
    width: 100%;
    max-width: var(--grid-max-width);
    padding-inline: var(--grid-gutter);
    margin-inline: auto;
    box-sizing: border-box;
}

/* Page Transition */

.fade-in {
    animation: fadeIn 1s ease-in-out;
  }
  
  .fade-out {
    animation: fadeOut 1s ease-in-out;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes fadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }

/* Nav */
nav {
    display: none;
    justify-content: center;
    padding-bottom: 0.4rem; /* Reduce padding */
    margin-bottom: 2rem; /* Reduce margin */
    margin-top: -.5rem;
    position: relative;
    background-image: url('https://imjustkevin.com/images/paper_texture.png');
    background-repeat: repeat;
    background-size: 55%;
    z-index: 1000;
}

nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05); /* Adjust the opacity (0.3 for slight darkness) */
    z-index: -1;
}

nav.visible {
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-image: url('https://imjustkevin.com/images/paper_texture.png'); /* Set the background image */
    background-repeat: repeat;
    background-size: 55%;
    z-index: 1000;
}

nav ul {
    display: flex;
    margin: 0;
    padding: .6rem;
    list-style: none;
}

nav ul li {
    margin-left: 1rem;
}

nav a {
    color:  #0e0d0d;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.2);
    bottom: .3rem;
    padding-left: .5rem;
    padding-right: .5rem;
    border-radius: 0.5rem; /* Add border-radius for a slightly rounded shape */
    margin-top: 0.8rem; /* Adjust margin */
    margin-bottom: 0.8rem; /* Adjust margin */
}

nav a::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0.25em;
    background: repeating-linear-gradient(45deg, #c83c44, #c83c44 10px, #5595d6 10px, #5595d6 20px, #59aa82 20px, #59aa82 30px, #f0db21 30px, #f0db21 40px); /* Use solid color stripes */
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

nav a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Form Styles */

    .email-button {
        padding: .5rem;  /* Adjust the margin as needed */
        margin-top: -.2rem;
        margin-bottom: -.5rem;
    }

    .form-container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        margin-bottom: 5rem;
        width: 80%;
        max-width: 40rem;
        padding: 2rem;
        border-radius: 2rem;
        box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
        background-color: rgba(245, 245, 220, 0.2);
    }

    .form-container input {
        margin-bottom: 1rem;
        padding: 0.2rem;
    }

    .form-container input::placeholder {
        color: #999; /* Customize the color */
        font-style: italic; /* Customize the font style */
        text-align: center;
    }


/* Container Styles */
/* Common styles for container */
.container, .container-left, .container-right {
    box-sizing: border-box;
    overflow: hidden;
    margin-bottom: 5rem;
    width: 80%;
    max-width: 80rem;
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
    background-color: rgba(245, 245, 220, 0.2);
}

/* Center the containers horizontally initially */
.container, .container-left, .container-right {
    margin-left: auto;
    margin-right: auto;
}

/* Styles specific to container-left */
.container-left {
    float: left; /* Left align */
    margin-right: 2rem;
}

/* Styles specific to container-right */
.container-right {
    float: right; /* Right align */
    margin-left: 2rem;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .container, .container-left, .container-right {
        width: 90%; /* Adjust the width for smaller screens */
        margin-left: auto;
        margin-right: auto;
    }

    .container-left, .container-right {
        float: none; /* Remove float for smaller screens */
        margin-left: auto;
        margin-right: auto;
    }
}


.portrait-container {
    width: 30%; /* Adjust the width of the portrait container */
    margin-right: 2rem; /* Add margin for spacing */
    float: left; /* Float the portrait container to the left */
}

.text-container {
    width: calc(70% - 2rem); /* Adjust the width of the text container and consider the margin */
    float: left; /* Float the text container to the left */
}

.portrait-img {
    width: 100%; /* Set the width of the portrait image to 100% of its container */
    max-width: 90%; /* Ensure the image doesn't exceed its container's width */
    height: auto; /* Allow the height to adjust proportionally */
    margin-top: .7rem;
    border-radius: 2rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
}

#bio-container p {
    margin-bottom: 10px; /* Adjust the value to control the space between paragraphs */
    padding-right: .5rem;
}

.movie-poster-img {
    width: 47%; /* Adjust as needed */
    float: left;
    margin-right: 1.5rem; /* Adjust as needed */
    border-radius: 1rem;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.3);
}

.slideshow-container-movieposter {
    width: 47%;
    float: left;
    margin-right: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.3);
}

/* Adjust the text alignment for container-left */
.container-left h1,
.container-left p {
    text-align: left;
}

.opening-section {
    height: 100vh; /* Full height of the viewport */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    justify-content: center;
    text-align: center;
    position: relative; /* Ensure positioning context for the image */
    margin-bottom: 15rem;
    flex-wrap: nowrap; /* Prevent flex items from wrapping */
}

.large-image-left {
    position: absolute;
    left: 0;
    top: 30rem;
    height: 70%;
    width: auto;
    z-index: -1;
    mix-blend-mode: darken;
    opacity: 0; /* Set initial opacity to 0 for the fade-in effect */
    animation: fadeIn 1s ease-out forwards; /* Animation definition */
}

@keyframes fadeIn {
    from {
        opacity: 0; /* Start with opacity 0 */
    }
    to {
        opacity: 1; /* End with opacity 1 */
    }
}


.large-logo {
    width: 80%; /* Adjust the width of the logo as needed */
    max-width: 600px; /* Set a maximum width if needed */
    top: -5rem;
    margin: 0 auto; /* Center the logo horizontally */
    display: block;
    position: relative;
    z-index: 1;
}


.screencaps-container {
    display: flex;
    flex-direction: row;
    overflow: visible; /* Change from hidden to visible */
    position: relative; /* Add relative positioning */
    border-radius: 1rem;
    border-width: 1rem;
}

.screencap-img {
    width: 100%;
    border-radius: 1rem;
    border-color: #0e0d0d;
    margin-right: 5px; /* Add margin-right to create spacing between images */
    box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.3);
    margin-bottom: .5rem;
}

/* Add this style to ensure proper positioning and visibility of slideshow containers */
.slideshow-container {
    position: relative;
    overflow: hidden;
}

/* Adjustments for the screencaps container within the slideshow container */
.screencaps-container {
    display: flex;
    flex-direction: row;
    overflow: visible;
    position: relative;
    border-radius: 1rem;
    border-width: 1rem;
    width: 100%; /* Adjust to take 100% width */
    max-width: 100%; /* Ensure it doesn't exceed its parent's width */
    margin-left: auto;
    margin-right: auto;
}

.screencap-img {
    width: 100%;
    height: auto;
}


/* Ensure that the slideshow container and its content are centered */
.container .slideshow-container,
.container-left .slideshow-container,
.container-right .slideshow-container {
    margin-left: auto;
    margin-right: auto;
}


/* Arrows and Dots Styles */
.arrow,
.dots-container {
    position: absolute;
    text-align: center;
    bottom: 10px;
}

.arrow {
    font-size: 30px;
    padding: .5rem;
    text-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
}

.arrow-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.arrow-right {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.dots-container {
    position: absolute;
    text-align: center;
    bottom: 1rem; /* Adjust the position from the bottom */
    left: 50%; /* Center the dots horizontally */
    transform: translateX(-50%); /* Center the dots horizontally */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #747474da;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0.3rem rgba(82, 82, 82, 0.5);
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #ffffff;
    box-shadow: 0 0 0.3rem rgba(0, 0, 0, 1);
}

/* Footer Styles */

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-image: url('https://imjustkevin.com/images/paper_texture.png');
    background-repeat: repeat;
    background-size: 55%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    background-image: url('https://imjustkevin.com/images/paper_texture.png');
    background-repeat: repeat;
    background-size: 55%;
    position: relative;
    z-index: 1;
}

.footer-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    z-index: -1;
}

.footer-container.visible {
    opacity: 1;
}

/* Copyright Styles */
.copyright {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #0e0d0d;
    text-align: center;
    position: fixed;
    bottom: 1.5rem;
    left: 0; /* Ensure left alignment */
    width: 100%;
    opacity: 0;
    z-index: 999;
}

.copyright::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.copyright.visible {
    opacity: 1;
}

/* Media Queries for Responsive Design */

/* iPad Air and tablets */
@media only screen and (max-width: 1024px) {
    body {
        padding: 0 2rem; /* Adjust padding for smaller screens */
    }

    .container, .container-left, .container-right {
        width: 90%; /* Adjust the width for smaller screens */
        margin-left: auto;
        margin-right: auto;
    }

    .form-container
    {
        margin-bottom: 8rem;
    }

    .portrait-container,
    .text-container {
        width: 100%; /* Full width for smaller screens */
        margin-right: 0; /* Remove right margin */
        margin-left: auto; /* Center text containers horizontally */
    }

    .opening-section {
        margin-bottom: 10rem; /* Reduce margin for smaller screens */
    }

    .large-image-left {
        top: 50%;
        height: 40%; /* Set the image height to match the opening section */
    }
    
    .large-logo {
        width: 80%; /* Adjust the width of the logo as needed */
        top: -15%;
    }

    .arrow,
    .dots-container {
        bottom: 5px; /* Adjust the position from the bottom */
    }

    .footer-container {
        height: 90px; /* Reduce height for smaller screens */
    }

    /* Adjustments for mobile and tablet styles */
    .movie-poster-img,
    .slideshow-container-movieposter {
        width: 100%; /* Set the width to 100% for smaller screens */
        float: none; /* Remove float for stacking elements */
        margin-right: 0; /* Remove right margin */
        margin-bottom: 1.5rem; /* Add bottom margin for spacing */
    }

    .slideshow-container-movieposter {
        margin-right: 0; /* Remove margin for stacking elements */
    }
}

/* Phones */
@media only screen and (max-width: 600px) {
    body {
        padding: 0 1rem; /* Adjust padding for smaller screens */
        background-size: 100%; /* Adjust background size */
    }

    .container, .container-left, .container-right {
        width: 100%; /* Full width for phones */
        margin: 0; /* Remove margin */
        margin-bottom: 10%;
        padding: 1rem; /* Add padding for better spacing */
    }

    .portrait-container,
    .text-container {
        width: 100%; /* Full width for phones */
        margin-right: 0; /* Remove right margin */
        margin-left: auto; /* Center text containers horizontally */
    }

    .opening-section {
        margin-bottom: 3rem; /* Reduce margin for phones */
    }

    .large-image-left {
        top: 55%;
        height: 40%; /* Set the image height to match the opening section */
    }
    
    .large-logo {
        width: 80%; /* Adjust the width of the logo as needed */
        top: -15%;
    }

    .arrow,
    .dots-container {
        bottom: 6%; /* Adjust the position from the bottom */
    }

    /* Adjustments for mobile and tablet styles */
    .movie-poster-img,
    .slideshow-container-movieposter {
        width: 100%; /* Set the width to 100% for phones */
        float: none; /* Remove float for stacking elements */
        margin: 0; /* Remove margin */
        margin-bottom: 1rem; /* Add bottom margin for spacing */
    }

    .slideshow-container-movieposter {
        margin-right: 0; /* Remove margin for stacking elements */
    }

    .footer-container {
        height: 90px; /* Reduce height for phones */
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .footer-container::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.05);
        z-index: -1;
    }

    .footer-container.visible {
        opacity: 1;
    }

    /* Adjust the position of the copyright text */
    .copyright {
        bottom: 1.5%; /* Adjust the bottom position */
        left: 0; /* Center the text horizontally */
        right: 0; /* Center the text horizontally */
        width: 100%; /* Ensure full width */
        text-align: center; /* Center the text */
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
        text-align: center; /* Center align the content */
        background-color: transparent;
    }

    thead {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        margin-bottom: 1rem;
    }

    th, td {
        border: none;
        position: relative;
        padding-left: 0; /* Remove left padding */
        text-align: center; /* Center align the content */
    }

    tr:hover {
        background-color: transparent; /* Remove background color on hover */
    }

    th:before, td:before {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%; /* Take up full width */
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: bold;
        background-color: none;
        text-align: center; /* Center align the content */
    }

    h4 {
        text-align: center;
        font-size: 1.5rem;
    }

    .copyright {
        font-size: .75rem;
    }

    caption {
        text-align: center; /* Center align the table caption */
    }
}