﻿
#splash {
     font-family: 'Prompt', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  background: #009FA5 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2380d4e8" fill-opacity="0.3" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path><path fill="%2380d4e8" fill-opacity="0.2" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,202.7C672,203,768,181,864,170.7C960,160,1056,160,1152,170.7C1248,181,1344,203,1392,213.3L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center;
 background-size: 100% auto;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

    #splash.fade-out {
        opacity: 0;
    }

.splash-content {
    text-align: center;
    padding: 40px;
    max-width: 900px;
    width: 90%;
}



.splash-content h1 {
   
    color: white;
    font-size: 30px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.splash-content h2 {
    color: white;
    font-size: 30px;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.thai-subtitle {
    color: white;
    font-size: 23px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.book-container {
    margin: 40px auto;
}

.book-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

    .book-image:hover {
        transform: translateY(-10px);
    }

.button-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 45px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border: 3px solid white;
    color: white;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 220px;
    display: inline-block;
}

    .btn:hover {
        background-color: white;
        color: #00b4d8;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .btn:active {
        transform: translateY(-1px);
    }

* Responsive for Tablet */
@media (max-width: 768px) {
    .splash-content

{
    padding: 30px 15px;
}

.splash-content h1 {
    font-size: 24px;
    margin-bottom: 3px;
}

.splash-content h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.thai-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
}

.book-container {
    margin: 30px auto;
}

.book-image {
    max-width: 220px;
}

.btn {
    padding: 15px 35px;
    font-size: 14px;
    min-width: 180px;
}

.button-container {
    gap: 20px;
    margin-top: 30px;
}

}

/* Responsive for Mobile */
@media (max-width: 480px) {
    .splash-content {
        padding: 20px 15px;
        width: 95%;
    }

        .splash-content h1 {
            font-size: 20px;
            margin-bottom: 2px;
            line-height: 1.3;
        }

        .splash-content h2 {
            font-size: 20px;
            margin-bottom: 8px;
            line-height: 1.3;
        }

    .thai-subtitle {
        font-size: 13px;
        margin-bottom: 25px;
        line-height: 1.4;
    }

    .book-container {
        margin: 25px auto;
    }

    .book-image {
        max-width: 180px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }

    .button-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 25px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        min-width: auto;
        padding: 14px 30px;
        font-size: 13px;
        border: 2px solid white;
    }
}

/* Responsive for Very Small Mobile */
@media (max-width: 360px) {
    .splash-content {
        padding: 15px 10px;
    }

        .splash-content h1 {
            font-size: 18px;
        }

        .splash-content h2 {
            font-size: 18px;
        }

    .thai-subtitle {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .book-image {
        max-width: 160px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 12px;
        max-width: 260px;
    }

    .button-container {
        gap: 12px;
        margin-top: 20px;
    }
}

/* Fix for very tall mobile screens */
@media (max-height: 700px) and (max-width: 480px) {
    .splash-content {
        padding: 15px 10px;
    }

        .splash-content h1 {
            font-size: 18px;
            margin-bottom: 2px;
        }

        .splash-content h2 {
            font-size: 18px;
            margin-bottom: 5px;
        }

    .thai-subtitle {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .book-container {
        margin: 15px auto;
    }

    .book-image {
        max-width: 140px;
    }

    .button-container {
        margin-top: 15px;
        gap: 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}
