body {
    background-image: url('preang_background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Gamja Flower', cursive;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

button {
    transition: box-shadow 0.3s, transform 0.3s;
}

button:active {
    box-shadow: none;
    transform: scale(0.95);
}



#intermediate-page h2 {
    text-shadow: -2px -2px 0 #af11df, 2px -2px 0 #af11df, -2px 2px 0 #af11df, 2px 2px 0 #af11df;
    font-size: 2.8em;
    margin-bottom: 10px;
    white-space: normal;
}

#intermediate-page h3 {
    text-shadow: -2px -2px 0 #176178, 2px -2px 0 #176178, -2px 2px 0 #176178, 2px 2px 0 #176178;
    font-size: 1.5em;
    margin-bottom: 10px;
    white-space: normal;
}

#intermediate-page {
    color: #e4e1e1;
    background-color: rgba(71, 61, 58);
    width: 80%;
    margin: 0 auto;
    text-align: center;
    align-items: center;
    padding: 20px;
    border: 2px solid #e4e1e1;
    border-radius: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#main-container {
    text-align: center;
    display: flex;
    justify-content: center;
}

.main-img {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #CCCCCC;
    filter: brightness(90%);
    width: 50%;
    min-width: 280px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    border-radius: 10px;
}

#daily-fortune,
#zodiac-fortune,
#star-fortune,
#tarot-fortune {
    margin-right: 5px;
    margin-left: 5px;
}

.fortune-option {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


.fortune-option:hover {
    background-color: rgba(50, 46, 44, 0.95);
}


.fortune-option img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.fortune-option p {
    margin: 0;
    font-size: 1.5em;
}




#input-container {
    display: flex;
    align-items: center;
    padding-left: 10px;
    padding-bottom: 10px;
    padding-right: 10px;
    background-color: #fff;
}

#nameInput {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 16px;
    background-color: #fff;
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.2);
}

#nameInput::placeholder {
    color: #ccc;
}

#fortuneBTN {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0px 0px 4px 2px rgba(0.2, 0.2, 0.2, 0.2);
}

#red,
#blue,
#yellow,
#green,
#orange,
#white,
#black,
#relations {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
    margin-right: 5px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0px 0px 4px 2px rgba(0.2, 0.2, 0.2, 0.2);
}

#bg,
#bg1,
#bg2,
#bg3 {
    background-color: #12acea;
    color: #fff;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
    margin-right: 5px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0px 0px 4px 2px rgba(0.2, 0.2, 0.2, 0.2);
}


#retryButton,
#btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0px 0px 4px 2px rgba(0.2, 0.2, 0.2, 0.2);
}


.chat-container {
    position: relative;
    width: 90%;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);

}

.chat-container h2 {
    text-shadow: -1px -0px #000000, 0px 1px 4px #000000, 1px 0px 4px #000000, 0px -1px #000000;
    font-size: 2em;
    margin-bottom: 20px;
    white-space: normal;
    color: #ffffff;
    text-align: center;
}



.chat-messages {
    padding: 10px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0px 2px 5px rgba(0.2, 0.2, 0.2, 0.2) inset;
}


#buttonselect {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    border-top: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

#buttonselect p {
    display: flex;
    align-items: center;
    text-align: center;
    margin-left: 10px;
    margin-right: 10px;
    font-weight: bold;
    font-size: 1.2em
}

#buttonbgselect {
    display: flex;
    white-space: nowrap;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    border-bottom: none;
    align-items: center;
}

#buttonbgselect p {
    display: flex;
    align-items: center;
    text-align: center;
    margin-left: 10px;
    margin-right: 10px;
    font-weight: bold;
    font-size: 1.2em
}

.user-message-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.server-message-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.message-box {
    background-color: #007bff;
    color: #fff;
    border-radius: 10px;
    padding: 10px;
    max-width: 70%;
    word-wrap: break-word;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
}

.server-message-box {
    background-color: #f0f0f0;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
}

.server-message-box img {
    width: 100px;
    height: 173px;
    border: 2px solid #b729f0;
    border-radius: 10px;
}

.intro-container {
    color: #e4e1e1;
    background-color: #1c1c1c;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    margin-left: 30px;
    margin-right: 30px;
    border: 2px solid #e4e1e1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.intro-container h2 {
    text-align: center;
    font-size: 2em;
}

.intro-container p {
    color: #f6ff00;
    text-shadow: -1px -1px 0 #e4840f, 1px -1px 0 #e4840f, -1px 1px 0 #e4840f, 1px 1px 0 #e4840f;
    font-size: 1.5em;
}

.intro-container img {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #CCCCCC;
    width: 70%;
    min-width: 300px;
    margin-bottom: 20px;
    border-radius: 10px;
}



#loader {
    font-size: 25px;
    text-align: center;
}

.date-dropdown {
    display: flex;


}

#date-year {
    vertical-align: middle;
    margin-left: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    color: #333;
}

#date-month,
#date-day {
    vertical-align: middle;
    margin-left: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    color: #333;

}

#hourSelect {
    margin-left: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    color: #333;
}


#sex {
    margin-left: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    color: #333;
}

#date-year:hover,
#date-month:hover,
#date-day:hover,
#hourSelect:hover,
#sex:hover {
    border-color: #007bff;
}

.text-element {
    padding-top: 5px;
}

label {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 25px;
    padding-left: 5px;
}

.label1 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    min-width: 50px;
}

@media (max-width: 360px) {
    .label1 {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .special {
        flex-direction: column;
        align-items: flex-start;
    }
}


select option {
    text-align: center;
    font-family: "Noto Sans", sans-serif;
}

.selected {
    background-color: #007bff;
    color: #fff;
}

.hidden {
    display: none !important;
}


#backButton {
    width: 10%;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 10px;
}



.info-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.info-text {
    position: absolute;
    top: 50px;
    right: 10px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 999;
    font-size: 1.2em;
    font-family: Arial, sans-serif;
}


#cardContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.myTarot {
    width: 300px;
    height: 520px;
    border: 2px solid #b729f0;
    border-radius: 10px;
    box-shadow: 0 0 20px #b729f0;
    animation: float 2s ease-in-out infinite;

    transform-style: preserve-3d;
    backface-visibility: hidden;
    perspective: 1000px;
    
}

.cardName {
    margin-top: 10px;
    font-weight: bold;
    font-size: 32px;
    color: #ffffff;
    text-shadow: -1px -1px 0 #f00, 1px -1px 0 #f00, -1px 1px 0 #f00, 1px 1px 0 #f00;
}



@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}


.rotate-card {
    animation: rotate 1s ease-in-out;
    transform: rotateY(1440deg);
}

@keyframes rotate {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(1440deg);
    }
}


#StartInfo {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
    margin-right: 15px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 30px;
    box-shadow: 0px 0px 4px 2px rgba(0.2, 0.2, 0.2, 0.2);
}

#ReTry {
    background-color: #e214e5;
    color: #fff;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
    margin-right: 5px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 30px;
    box-shadow: 0px 0px 4px 2px rgba(0.2, 0.2, 0.2, 0.2);
}


.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    
}

.bannerad {
    width: 320px;
    height: 100px;

}

.bannerad2 {
    width: 90%;
    min-width: 320px;
    max-width: 970px;
    height: 100px;

}

@media (min-width:500px) { .bannerad { width: 468px; height: 60px; } }
@media (min-width:800px) { .bannerad { width: 728px; height: 90px; } }