@font-face {
    font-family: 'Unkempt-Bold';
    src: url(fonts/Unkempt-Bold.ttf) format('truetype');
}

/* @font-face {
    font-family: 'Courgette-Regular';
    src: url(fonts/Courgette-Regular.ttf) format('truetype');
} */
html {
    overflow: hidden;width: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;    
    /*font-family: 'Amatic SC', cursive; /* Use Amatic SC font */
    font-family: 'Unkempt-Bold';
    color: #FFF;
    overflow-x: hidden;
    overflow-y:scroll;
    background: url('img/fable-hero1.png') no-repeat center center fixed;
    background-size: cover;
    text-shadow: 2px 2px 5px rgba(0,0,0,1);    
    position:fixed;  
    -webkit-overflow-scrolling: touch;
}

/*
h1,h2,h3,h4 {
    font-family: 'Amatic SC', cursive;
}
*/

header {
    padding-top: 1em;
    width: 100%;
    text-align: center;
}

.hero {  
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

nav {
    width: 100%;
    padding: 0.5em 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.75); /* semi-transparent overlay for legibility */
    /*box-shadow: 2px 2px 4px rgba(255,255,255, 0.5);*/
    z-index: 1000;
}

.nav-links a, header h1 a {    
    text-decoration: none;    
    color:#fff;    
}

.nav-links {
    display: flex;
    gap: 20px;
}

.form-container {
    display: flex;
    justify-content: center;
    width: 100%;
    color: #fff;
    /*background-color: rgba(0, 0, 0, 0.75);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.5);    */
}

.hero-content {    
    flex-direction: column;
    align-items: center;
    
    width: 100%;
    max-width: 800px;
    /*background: url('img/drawer_header.png') no-repeat center center;*/
}

h1 {
    color: #FFF; /* Gold color for the title */
    margin: 0.5em 0;
    font-size: 8em;
    text-shadow: 2px 2px 4px #000; /* Text shadow for better readability */    
}

.tagline {
    color: #FFF; /* Khaki color for the tagline */
    margin-bottom: 1em;
    font-size: 3em;    
}

p {
    color:#FFF;
    font-size: 1.8em;
}

.email-registration {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;    
    padding: 20px;
    border-radius: 10px;    
}

::placeholder {
  color: #FFF;
  opacity: 1; /* Firefox */
}

.email-registration input {   
    font-family: 'Unkempt-Bold', cursive;
    box-shadow: 4px 4px 8px rgba(0,0,0, 0.75);
    color: #FFFFFF; /* White text */
    border-radius: 20px; /* Rounded edges for the button */
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 1.2em; 
    margin-bottom: 15px;
    text-align: center;
    width: 300px;    
}

.email-registration button {
    font-family: 'Unkempt-Bold', cursive;
    background-color: #9a1709; /* A light salmon color that suits the background */
    color: #FFFFFF; /* White text */
    border-radius: 20px; /* Rounded edges for the button */
    border: none;
    padding: 10px;
    font-size: 1.2em; /* Increase font size for better legibility */
    cursor: pointer;
    width:300px;
    transition: background-color 0.3s;    
    box-shadow: 2px 2px 4px rgba(0,0,0,0.75);
    margin-bottom: 15px;
}

.email-registration button:hover {
    background-color: #3e0904; /* A slightly darker shade for the hover state */
}

section {
    max-width: 800px;    
    margin: 2rem auto;    
    text-align: center;    
    color: #FFF;    
    margin: 2rem auto;    
    text-align: center;   
    margin-bottom: 100px;
    /* background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    padding: 20px; */
}

h2 {    
    font-size: 2.5em;    
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.features-grid h3 {
    font-size: 2em;
}

.feature-item {    
    padding: 1rem;    
    /* background-color: rgba(0, 0, 0, 0.5); /* semi-transparent overlay for legibility
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);     */
      
    text-align: center;    
    background-color: rgba(0, 0, 0, 0.75); /* semi-transparent overlay for legibility */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255,255,255, 0.5);
    padding: 20px;
}
.feature-img {
    height: 300px;
    width: 300px;
    margin:auto;
    border-radius: 10px;
}

[data-img="feat1"] {
    background: url('img/feat1.png') no-repeat center center;
    background-size: cover;    
}
[data-img="narrated"] {
    background: url('img/narrated.png') no-repeat center center;
    background-size: cover;    
}
[data-img="nurture"] {
    background: url('img/nurture.png') no-repeat center center;
    background-size: cover;    
}
[data-img="feat3"] {
    background: url('img/feat3.png') no-repeat center center;
    background-size: cover;    
}
[data-img="feat4"] {
    background: url('img/feat4.png') no-repeat center center;
    background-size: cover;    
}

[data-img="premium1"] {
    background: url('img/premium1.png') no-repeat center center;
    background-size: cover;    
}
[data-img="premium2"] {
    background: url('img/premium2.png') no-repeat center center;
    background-size: cover;    
}
[data-img="premium3"] {
    background: url('img/premium3.png') no-repeat center center;
    background-size: cover;    
}

footer {
    background-color: rgba(0, 0, 0, 0.75); /* semi-transparent overlay for legibility */
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

footer p {
    font-size: 1.5em;
}

.social-links a {
    margin: 0 0.5rem;
    color: #fff;
    text-decoration: none;
}

.social-links a:hover {
    text-decoration: underline;
}

.app-links {
    margin: 0 0.5rem;
    color: #fff;
    text-decoration: none;
}

.app-links a:hover {
    text-decoration: underline;
}


#success {
    font-size: 2em;    
}
#error {
    font-size: 2em;   
    colour: #9a1709;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    nav {
        width:100%;
    }
    .features-grid {
        grid-template-columns: 1fr; /* Stack features on small screens */
      }
    
    .email-registration input{
        width: calc(100% - 40px);        
    }
    .email-registration button {
        width: calc(100% - 25px); /* Full width minus padding */
    }

    section {
        max-width: 325px;
    }
    
    .feature-img {
        height: 250px;
        width: 250px;
    }

    p {
        color:#FFF;
        font-size: 1.2em;
    }
    .hero-content {
        max-width: 325px;
    }

    h1 {
        font-size: 4em;
    }
    h2 {
        font-size: 2.25em;
    }

    .tagline {
        font-size: 1.5em;
    }
}

/* Style adjustments when the hamburger menu is active */
.is-active .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 60px; /* Adjust the top value as needed */
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
}