/*
 *  DOCUMENT STYLES
 */

 :root {
    --light-beige: #F9F5EB;
    --dark-beige: #E4DCCF;
    --red: #EA5455;
    --heading-gray: #607274;
    --body-gray: #525252;

    --ff-sans: "Inter", sans-serif;
    --ff-serif: "Playfair Display", serif;
    }

body {
    font-family: 'Inter', sans-serif;
    background: var(--light-beige);
    color: var(--body-gray);
    margin: 0;
    
}

.before,
.after {
  width:100%;
  height:500px;
  background-repeat:no-repeat;
  background-size: cover;
  background-position: center;
  position: absolute;
  top:0;
  left:0;
  pointer-events:none;
  overflow: hidden;
}

.scroll-image{
  height:100%;
}

.after{
  width:125px;
}

.scroller{
  width: 100px;
  height:50px;
  position: absolute;
  left:100px;
  top:50%;
  transform:translateY(-50%);
  border-radius:50%;
  background-color: transparent;
  opacity:0.9;
  pointer-events:auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroller:hover{
  opacity:1;
}

.scroll-wrapper {
    height: 500px;
}

.scrolling{
  pointer-events:none;
  opacity:1;
  z-index: 1;
}

.scroller__thumb{
  /* width:100%;
  height:100%;
  padding:5px; */
  width: 100%;
  height: 100%;
}

.scroller__text {
    font-family: var(--ff-sans);
    fill: #fff;
    font-size: 12px;
    text-anchor: middle;
    dominant-baseline: central;
    text-shadow: 1px 1px 2px #000; /* Drop shadow for readability */
  }
  

.scroller:before,
.scroller:after{
  content:" ";
  display: block;
  width: 2px;
  height: 230px;
  position: absolute;
  left: 50%;
  margin-left: -3.5px;
  z-index: 30;
  transition:0.2s;
  background: var(--dark-beige);
}
.scroller:before{
  top:100%;
}
.scroller:after{
  bottom:100%;
}


/* 
 *HEADER AND NAV STYLES 
 */


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 0.5em;
    /* background-color: var(--light-beige); */
    min-height: 50px;
    
}

.dashboard-header {
    font-weight: 500;
    letter-spacing: -1px;
    margin: 0;
    font-size: 48px;
    font-family: var(--ff-serif);
    line-height: 64px;
    color: var(--heading-gray);
}

.past-uploads-header {
    font-weight: 500;
    letter-spacing: -1px;
    margin: 0;
    font-size: 30px;
    font-family: var(--ff-serif);
    line-height: 64px;
    color: var(--body-gray);
}

.logo {
    flex-shrink: 0; 
    font-family: var(--ff-serif);
    font-size: 1.5em;
    text-decoration: none;
    color: var(--red);
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1; 
    padding: 0 20px;
}




.main-nav .nav-link {
    font-size: 16px;
    line-height: 24px;
    margin-right: 32px;
    text-decoration: none;
    color: var(--heading-gray);
    transition: color 0.2s ease-in-out;
}

.dashboard-link {
    text-decoration: none;
    color: var(--heading-gray);
    transition: color 0.2s ease-in-out; 
}

.dashboard-link:hover {
    color: var(--red);
 
}

button {
    border-radius: 8px;
    background-color: var(--red);
}

button:hover {
    background-color: #aa4040;
    transition: background-color 0.15s ease-in-out;
}

.nav-link {
    margin: 0 15px;
}

.main-nav .nav-link.active, .main-nav .nav-link:hover {
    /* color: var(--body-gray); */
    color: var(--red);
}

.signup-login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    flex-shrink:0;
}

.signup-login-button {
    background-color: var(--red);
    padding: 0.5em 2em;
    /* border: none; */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: white;
    font-size: 18px;
    font-family: var(--ff-sans);
    font-weight: 500;
    transition: background-color 0.3s;
}

.signup-login-button:hover {
    background-color: darken(#ea5455, 10%);
}

.signup-login-text {
    color: white;
    font-size: 18px;
    font-family: var(--ff-sans);
    font-weight: 500;
    line-height: 27px;
}

.signup-login-icon {
    width: 24px;
    height: 24px;
    /* Icon styles */
}

.signup-login-icon::before, 
.signup-login-icon::after, 
.signup-login-icon div {
    content: '';
    position: absolute;
    border: 1.5px white solid;
    /* Additional styles for icon shapes */
}

/* 
 * HERO STYLES
 */

 .hero-bg {
    background: url(../img/hero-bg5.jpg);
    background-position: center;
    background-size: cover;
    border-bottom: 1px solid var(--heading-gray);
 }

.hero-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 3em 0 3em 2em;
    max-width: 68em;
    margin:auto;
    overflow: hidden;
}

/* .hero-container:after {
        position: absolute;
        top: -0 !important;
        left: 0;
        content: " ";
        background-size: 100% 100px;
        width: 100%;
        height: 100px;
        float: left;
        z-index: 99;
    
} */



.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}


.hero-section{
    display: flex;
    gap: 52px;
    padding: 1em;
    align-items: center;
    position: relative;
    user-select: none;
}

.hero-images {
    width: 487px;
    height: 488.17px;
    flex-shrink: 0; /* Prevents shrinking */
    overflow: hidden; /* Hide parts of the image that overflow */

}

.hero-images img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Adjust as needed: cover, contain, etc. */
}


.hero-image-overlay {
    position: relative;
    text-align: center;
    width: 487px;
    height: 488.17px;
}

.hero-image-overlay img {
    object-fit: cover;
    width: 100%;
    max-height: 100%;
}

.hero-title {
    font-size: 64px;
    font-family: var(--ff-serif);
    font-weight: 700;
    line-height: 64px;
    color: var(--heading-gray);
    letter-spacing: -2px;
    text-shadow: .05em .05em 0 var(--dark-beige);
}

.hero-title .accent {
    color: var(--red);
}

.hero-title .emoji-1 {
    display: none; 
}


.hero-description {
    font-size: 18px;
    color: var(--body-gray);
    line-height: 26px;
    font-weight: 300;
    max-width: 500px;
}

.upload-button {
    background: var(--red);
    color: white;
    padding: 1em 2em;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    font-family: var(--ff-sans);
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;

}

.upload-button:disabled {
    background: var(--body-gray);
    color: gray;
    border: none;
    text-decoration: line-through;
}


#photo-upload {
    font-size: 1rem;
    overflow: visible;
}

  .file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    /* width: 450px; */
    max-width: 100%;
    padding: 2em;
    border: 1px dashed var(--body-gray);
    border-radius: 3px;
    margin: 1em auto;
    justify-content: center;
    transition: 0.2s;
  }

  .is-active {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--body-gray);
    padding: 4em;
  }
  
  .file-message {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 1em;
  }
  #photo-upload {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
    &:focus {
      outline: none;
    }
  }


/* 
 * ABOUT STYLES
 */
.about-section {
    display: grid;
    justify-content: center; 
    align-items: center; 
    gap: 52px;
    padding: 1em 3em 3em 3em;
    background-color: var(--dark-beige);
}

.benefits-section {
    display: grid;
    justify-content: center; 
    align-items: center; 
    gap: 52px;
    padding: 1em 3em 3em 3em;
    background-color: var(--light-beige);
}

.dashboard-upload-section  {
    max-width: 48em;
    margin:auto;
    padding: 1em 2em;
}

.previous-touchup-table-section {
    background: var(--dark-beige);
    min-height:300px;
}

.previous-touchup-table{
    max-width: 48em;
    margin:auto;
    padding: 1em 2em; 
}

.table-loading {
    font-family: var(--ff-serif);
}




.cta-section {
    padding: 1em 3em 3em 3em;
    background-color: var(--red);
}

.cta {
    color: var(--light-beige);
    font-size: 2em;
    max-width: 500px;
    margin:auto;
}

.cta button {
    color: var(--body-gray);
    background: var(--light-beige);
    padding: 1em 4em;
    font-size: 18px;
    font-family: var(--ff-sans);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta button:hover {
    color: var(--red);
    background-color: #ffffff;
    
}


.about-content {
    max-width: 68em;
    margin: 0;
    flex: 1;
    min-height:500px; 
    
}



.overlay-img {
    mix-blend-mode: overlay;
}

.about-right {
    display: grid;
    justify-content: center;
    align-content: center;
    gap: 0;
    max-width: 500px;
}

.about-text h2 {
    font-size: 48px;
    color: var(--body-gray);
    font-family: var(--ff-serif);
    text-transform: capitalize;
    font-weight: 500;
    letter-spacing: -1px;
    margin:0;
    text-shadow: 0.05em .05em 0 var(--light-beige);
}

.about-text {
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    grid-template-areas: "image content";

}

.about-text > div:first-child {
    grid-area: image;
}

.about-text > div:last-child {
    grid-area: content;
}


.about-text p, .benefit p {
    color: #525252;
    font-size: 18px;
    font-family: var(--ff-sans);
    line-height: 26px;
    font-weight: 300;
}

.benefits-container {
    display: flex;
    gap: 24px;
}

.benefit {
    flex-grow: 1;
    max-width: 500px;
    margin:auto;
}

.benefit h3 {
    font-size: 20px;
    color: var(--body-gray);
    font-family: var(--ff-serif);
    font-weight: 500;
}

.benefit-title {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

.cta h3 {
    font-size: 1.5em;
    font-family: var(--ff-serif);
    font-weight: 500;
    margin:0;
    text-shadow: 0.03em .03em 0 var(--body-gray);
}

.cta p {
    font-size: 18px;
    padding: 1em 0;
    line-height: 26px;
    font-weight: 300;
}

.learn-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #607274;
    font-size: 18px;
    font-family: var(--ff-sans);
}

.learn-more-icon {
    width: 18px;
    height: 18px;
    background: linear-gradient(#607274, #607274) no-repeat center;
    border-left: 1.5px solid #607274;
    border-bottom: 1.5px solid #607274;
    transform: rotate(-45deg);
}

.toggle-switch {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.toggle-switch label {
    margin-left: 10px;
    cursor: pointer;
    color: #007bff;
    user-select: none;
}

p {
    font-family: var(--ff-sans);
    line-height: 26px;
    font-size: 18px;
}

.error-message {
    color: red;
    margin: 10px 0;
    display: none;
}

#auth-button {
    margin: 20px 0;
}

.hide {
    display: none;
}


input[type="email"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="email"]:invalid {
    background-color: rgba(255, 0, 0, 0.157)
}

#preview {
    display: grid;
    justify-content: center;
    padding:1em;
}

#preview img {
    max-width: 25em;
}

.credits {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    padding: 2em 0;
    width: 100%;
    grid-gap: 1em;
    align-items: center;
}

#user-credits {
    grid-column: 1 / 2;
    text-align: center;
    font-family: var(--ff-serif);
}

#images-table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
}
.images-table-body{
    text-align: center;
}

tr:nth-child(even) {
    background-color: var(--dark-beige);
}

tr {
    height: 2.5em;
    border-width: 1px 0;
    border-color: black;
}

tr:first-child {
    border-top: none;
  }
tr:last-child {
    border-bottom: none;
}

th {
    font-weight: 400;
    font-size: 14px;
}

thead {
    background-color: var(--red);
    color: var(--light-beige);
    font-weight: 400;
}

#toast-container {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.toast {
    /* position: fixed;
    min-width: 400px;
    max-width: 95%;
    top: 32px;
    left: 50%;
    transform: translateX(-50%); */
    background-color: var(--red);
    color: white;
    padding: 1em 1em;
    border-radius: 5px;
    /* z-index: 1000; */
    animation: fadeinout 5s;
    text-align: center;
    margin-top: 10px;
    transition: margin-top 0.3s;


    opacity: 0.9;
}

/* .toast-success {
    background-color: green;
} */

@keyframes fadeinout {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}


@keyframes highlightFade {
    from {
        background-color: #f0f0f0; /* Lighter background color */
    }
    to {
        background-color: transparent; /* Default background color */
    }
}

.new-row-highlight {
    animation: highlightFade 4s; /* Adjust the time as needed */
}


/* Responsive Design */
@media (max-width: 970px) {
    .about-section {
        flex-direction: column;
    }
    .about-text {
        grid-template-columns: 1fr;
        grid-template-areas: 
            /* "content" */
            "image"
            "content";
    } 

    .benefits-container {
        flex-direction: column;
    }
}

@media (max-width: 970px) {
    .hero-container {
        grid-template-columns: 1fr;
        padding: 1em;
    }
    .hero-section {
        display:none;
    }
    .hero {
        max-width: 500px;
        margin: auto;
    }
    .about-section {
        padding: 1em;
    }
    .upload-button {
        width: 100%;
    }

    .main-nav .nav-link {
        margin-right: 8px;
    }


}

@media (max-width: 650px) {
    .main-nav {
        display: none;
    }
}


@media (max-width: 491px) {
    .hero-title .emoji-1 {
        display: inline; /* Show the emoji next to "Bring old photos" on smaller screens */
    }
    .hero-title .emoji-2 {
        display: none;
    }
    .credits {
        display: inline-block;
        text-align: center;
    }
}