@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}

html, body {
height: 100%;
width: 100%;
}

body {
display: flex;
justify-content: center;
align-items: center;
color: white;
background-image: url('./Leonardo_Phoenix_A_visually_captivating_hightech_background_fo_3.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
position: relative;
overflow: hidden;
font-family: "Roboto", sans-serif;
}



.toolbar {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.toolbar button {
    padding: 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}


.container {
padding: 40px;
position: absolute;
left: 90%;
top: 90%;
transform: translate(-50%, -50%);
background-color: rgba(0, 0, 0, 0.7);
border-radius: 10px;
width: 20%;
display: flex;
/* align-items: center;
justify-content: center; */
flex-direction: column;
text-align: center;
border: 2px solid cyan;
box-shadow: 0 0 10px cyan;

}

h1 {
font-size: 20px;
color: cyan;
text-shadow: 0 0 10px cyan;
}

p {
color: white;
font-size: 15px;
margin-top: 10px;
}

.btn {
margin-top: 20px;
padding: 9px 24px;
font-size: 1.2em;
cursor: pointer;
color: black;
background-color: cyan;
border: 2px solid cyan;
border-radius: 5px;
transition: background-color 0.3s, transform 0.2s;
font-weight: bold;
box-shadow: 0 0 10px cyan;
}

.btn:hover {
background-color: #00a3a3;
transform: scale(1.05);
}

/* Chatbot Styling */
.chatbot-btn {
position: fixed;
bottom: 20px;
right: 20px;
background: cyan;
color: black;
border: none;
padding: 12px 20px;
border-radius: 50px;
cursor: pointer;
font-size: 18px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
transition: background 0.3s;
font-weight: bold;
}

.chatbot-btn:hover {
background: #00a3a3;
}

.chatbot-container {
display: none;
position: fixed;
bottom: 80px;
right: 20px;
width: 320px;
background: black;
color: cyan;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
padding: 15px;
border: 2px solid cyan;
}

.chatbot-header {
font-weight: bold;
text-align: center;
font-size: 18px;
padding: 8px;
border-bottom: 2px solid cyan;
}

.chatbot-messages {
height: 200px;
overflow-y: auto;
padding: 10px;
border: 1px solid cyan;
border-radius: 5px;
background: #111;
color: cyan;
}

.chatbot-input {
width: 100%;
padding: 10px;
margin-top: 10px;
border: 1px solid cyan;
border-radius: 5px;
background: black;
color: cyan;
font-size: 16px;
}

.chatbot-input::placeholder {
color: rgba(0, 255, 255, 0.5);
}

/*********************ending of chat boat code ******************************/

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Arial Black";
    color: rgb(25, 25, 25);
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(9, 9, 9, 0.866), rgba(5, 241, 241, 0.625), black);
}

input {
    display: none;
}

h2 {
    color: orchid;
}

#flip_book {
    position: relative;
    width: 450px;
    height: 620px;
    transition-duration: 1s;
    perspective: 2000px;
}

.front_cover,
.back_cover {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 2.5px 5px 5px 2.5px;
    background-image: url(./images/flip_book_edge_shading.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgb(220, 20, 60);
    box-shadow: 0 0 5px 0 rgb(25, 25, 25, 0.25);
}

.front_cover {
    position: absolute;
    cursor: pointer;
    transform-origin: center left;
    transition: transform 0.5s;
    z-index: 99;
}

.front_cover label {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page {
    position: absolute;
    top: 10px;
    left: 1px;
    width: 400px;
    height: 600px;
    border-radius: 0 5px 5px 0;
    background-color: white;
    transform-origin: left;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition-duration: 0.5s;
}


.front_page, .back_page {
width: 100%;
padding: 20px;
background: #f5f5f5;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}

h2 {
text-align: center;
font-size: 24px;
font-weight: bold;
margin-bottom: 15px;
color: black;
}

p {
font-size: 16px;
line-height: 1.6;
color: rgba(62, 56, 56, 0.91); /* Text opacity effect */
text-align: justify;
font-family: Georgia, 'Times New Roman', Times, serif;
}


.front_page {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.front_page label {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 100;
}

.back_page {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    z-index: 100;
}

.back_page label {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 100;
}

.edge_shading {
    position: absolute;
    width: 288px;
    height: 400px;
    z-index: 98;
}

front_content {
    position: absolute;
    top: 1px;
    width: 287px;
    height: 398px;
    border-radius: 0 5px 5px 0;
    z-index: 97;
}

.back_content {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 287px;
    height: 398px;
    border-radius: 5px 0 0 5px;
    z-index: 97;
}

.back_cover {
    position: relative;
    z-index: -1;
}

#page1 {
    z-index: 8;
}

#page2 {
    z-index: 5;
}

#page3 {
    z-index: 4;
}

#page4 {
    z-index: 3;
}

#page5 {
    z-index: 2;
}

#cover_checkbox:checked~#flip_book {
    transform: translateX(144px)
}

#cover_checkbox:checked~#flip_book .front_cover {
    transform: rotateY(-180deg);
    transition: transform 1.5s, z-index 0.5s 0.5s;
    z-index: 1;
}

#cover_checkbox:checked~#flip_book #cover {
    position: absolute;
    width: 80%;
    height: 80%;
}

#page1_checkbox:checked~#flip_book #page1 {
    transform: rotateY(-180deg);
    z-index: 2;
}

#page2_checkbox:checked~#flip_book #page2 {
    transform: rotateY(-180deg);
    z-index: 3;
}

#page3_checkbox:checked~#flip_book #page3 {
    transform: rotateY(-180deg);
    z-index: 4;
}

#page4_checkbox:checked~#flip_book #page4 {
    transform: rotateY(-180deg);
    z-index: 5;
}

#page5_checkbox:checked~#flip_book #page5 {
    transform: rotateY(-180deg);
    z-index: 6;
}

.snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Snowflake animation */
.snowflake {
    position: absolute;
    top: -10px;
    background: white;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(0);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
    


}
