/* styles */

html, body, main {
    max-width:100%;
}

body {
    color: #fff;
    background: #3B1E54;
}

footer .border-top {
    border-top:1px solid rgba(255,255,255,0.2)!important
}

h1 {
    font-family: 'LittleMonster';
    font-size: 4.5rem;
}

.create-section .btn-primary {
    background: #F4A261;
    border-color: #F4A261;
    transition: background-color 0.3s ease;
}

.create-section .btn-primary:hover {
    background-color: #E76F51;
}

.story-image {
    background-size: cover;
    background-position: center;
    height: 95vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.story-image h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 4.5rem;
    max-width: 90%;
    font-family: 'LittleMonster';
}

.hero-image {
    background-image: url('/images/logo.png'); /* Replace with your image URL */
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-image h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 2rem;
    max-width: 90%;
}

.create-page + script + .footer {
    display:none;
}

.create-section {
    height:100vh;
    width:100%;
    max-width:500px;
    padding:1rem;
    margin-left:auto;
    margin-right:auto;
    background: #8967B3;
    display:none;
}

.create-section .brand-logo {
    float:right;
    display:block;        
    width:100px;
    height:100px;
    background-image:url(../images/logo.png);
    background-size:contain;
    background-position:center center;
    background-repeat:no-repeat;
    margin-right:12px;
    color:transparent;
}

.create-section h2 {
    padding-top:1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.create-section h1 {
    padding-top:1rem;
}

.create-section p.lead {
    color:rgba(255,255,255,0.7);
}

.create-section .text-control {
    background-color:rgba(255,255,255,0.5);
    border:1px solid #C5BAFF;
    color:black;
}

.create-section .text-control::placeholder {
    color:rgba(0,0,0,0.3);
}

.create-section .btn-primary {
    min-width:200px;
}

.create-section .button-group {
    margin-bottom:2rem;
}

#main-progress {
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    height:20px;
    background:#1e091e;
    margin:0;
}

#main-progress::before {
    display:block;
    content:"";
    width:94%;
    height:10px;
    background:rgba(255,255,255,0.3);
    border-radius:5px;
    position:absolute;
    margin-left:3%;
    margin-top:5px;
}

#main-progress span {
    display:block;
    width:43%;
    height:10px;
    background:#cb80ab;
    border-radius:5px;
    position:absolute;
    margin-left:3%;
    margin-top:5px;
}

#story-loading {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    background:rgba(45, 0, 66, 0.8);
    backdrop-filter: blur(10px);
    margin:0;
    text-align:center;
    display:none;
}

/* To use for the story text */
.story-container {
    padding: 10px;
    background-color: #EAF4FF;
    font-size: 1.25rem;
    font-weight: 400;
    color: #333333!important;
}

@media (min-width: 400px) { 
    #main-progress, #story-loading {
        width:400px;
        margin-left:calc(50vw - 200px);
    }
}


/*  LARGE SCREEN 
    ========================================================= */
@media (min-width: 768px) { 
    .brand-title {
        width:100vw;
        height:100vh;
        background-size:cover;
        background-position:center center;
    }
    .navbar.nav-home {
        transform:none;
    }
    .navbar-nav.nav-home.me-auto {
        margin-top:0px;
        margin-left:44px;
    }
    .navbar h1 a {
        margin-right:44px;
    }    
    .hero-section {
        min-height:100vh;
    }
    .hero-brand {
        margin-top:15vh;
        width:30vw;
        height:30vw;
        transform:none;
    }
    .hero-brand::before {
        width:15vw;
        height:15vw;
    }
    .hero-section .lead {
        font-size:1.25rem;
    }
    .hero-section .display-5 {
        font-size: calc(1.425rem + 2.1vw);
        line-height: 1.2;
    }    
}

#android-warning {
    position:fixed;
    xtop:56px;
    bottom:0;
    width:100%;
    text-align:center;
    padding:8px;
    background:#fec40f;
    font-weight:600;
    color:black;
}
#android-warning p {
    margin-bottom:0;
}
@media (min-width: 575px) { 
    .video-row {
        width:600px;
        margin-left:auto;
        margin-right:auto;
    }
    .video-row div {
        width:240px;
        height:426px;
    }
    .video-row div:first-child {
        margin-left:30px;
        margin-right:30px;
    }
    .video-row div::before {
        width:60px;
        height:60px;
        margin-top:342px;
        margin-left:12px;
    }
}

@font-face {
    font-family: 'LittleMonster';
    #src:  url('/fonts/LittleMonster.otf') format('opentype');
    src:  url('/fonts/Storytime.ttf') format('truetype');
}
