/* Import Monofett font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Monofett&display=swap');
/* Import Monofett and Roboto from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Monofett&family=IBM+Plex+Mono:wght@400;700&display=swap');

body {
    font-family: 'IBM Plex Mono', sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

header {
    position: relative;
    background: #007bff;
    color: white;
    padding-bottom: 50px;
    padding-top: 40px;
   
}

/* Back to Home Button (Top Left) */
.home-btn {
    font-family: 'IBM Plex Mono', monospace;
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.home-btn:hover {
    background-color: #004099;
}

/* Navigation Bar at the Bottom of Header */
.tab-bar {
    display: flex;
    justify-content: flex-end; /* Aligns Next Phase button to the right */
    align-items: center;
    background-color: #007bff;
    padding: 10px 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Buttons */
.tab-btn {
    font-family: 'IBM Plex Mono', monospace;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #0056b3;
    transition: background-color 0.3s ease;
    text-align: center;
}

/* Ensure Next Phase Button is Aligned to the Right */
.next-btn {
    margin-left: auto; /* Pushes button to the right */
}

/* Ensure Previous Phase Button is Aligned to the Left */
.prev-btn {
    margin-right: auto; /* Pushes button to the Left */
}

.tab-btn:hover {
    background-color: #004099;
}



.website-name {
    font-family: 'Monofett', cursive; /* Apply Monofett font */
    font-size: 48px; /* Adjust the font size */
    color: white; /* Set the text color to white */
    text-decoration: none; /* Remove underline */
    margin-bottom: 10px; /* Add spacing below the website name */
    display: block; /* Forces it to take the full width and be on its own line */

}

.website-name:hover {
    opacity: 1; /* Add hover effect */
    transform: scale(1.04); /* Slight zoom effect */
}


.lesson {
    background: white;
    color: black;
    margin: 20px auto;
    padding: 20px;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align:left;
    position: relative; /* Required for absolute positioning of the button */
    padding-left: 30px;
    margin-bottom:30px;
    border:1px solid #ccc;
    overflow:visible;
    perspective: 1000px; /* Enable 3D perspective for flipping */
}
.lesson h2{
    font-size: 24px;
    font-weight: bold;
    text-align:center;

}
.lesson h3{
    
    font-size: 18px;
    font-weight: bold;
}

.phase {
    background-color: #007bff; /* Button background */
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: 3px solid white; /* White border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow */
}

.phase h2 {
    font-size: 34px;
    font-weight: bold;
}

.phase p {
    font-size: 18px;
    opacity: 0.9;
}

.phase-btn {
    display: block; /* Make the anchor tags block-level elements */
    text-decoration: none;
    margin: 20px auto; /* Center the buttons horizontally */
    padding: 20px; /* Adjust padding as needed */
    width: 80%; /* Set a width relative to the parent */
    max-width: 1000px; /* Maximum width */
    border-radius: 8px;
    position: relative;
}

.phase:hover {
    background-color: #0056b3; /* Darker shade for hover effect */
    transform: scale(1.02); /* Slight zoom effect */
}



.btn {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    background: #0056b3;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.btn:hover {
    opacity: 0.8;
}

.speakButton {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007bff; /* Blue background */
    color: white; /* White icon */
    border: none; /* Remove border */
    border-radius: 50%; /* Make it a circle */
    width: 40px; /* Set width */
    height: 40px; /* Set height */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.speakButton:hover {
    background-color: #003d80; /* Darker blue on hover */
}

.speakButton i {
    font-size: 18px; /* Icon size */
    color: white; /* Ensure icon stays white */
}


.collapsible {
    cursor: pointer; /* Change cursor to pointer to indicate clickability */
    padding: 15px; /* Add padding inside the header */
    background-color: #f1f1f1; /* Light gray background */
    border-bottom: 1px solid #ccc; /* Add a border at the bottom */
    border-radius: 8px;
    margin: 0; /* Remove any default margin */
    width: 95%; /* Make the header span the full width */
    box-sizing: border-box; /* Include padding and border in the width */
    font-size: 24px; /* Increase font size for better visibility */
    font-weight: bold; /* Make the text bold */
}

.collapsible:hover {
    background-color: #ddd; /* Darker background on hover */
    transform: scale(1.02); /* Slight zoom effect */
}

.content {
    padding: 0 10px; /* Add padding to the content */
    max-height: 0; /* Initially hide the content */
    overflow: hidden; /* Hide overflowing content */
    transition: max-height 0.3s ease-out; /* Smooth transition */
}

.content.open {
    max-height: 100000px; /* Expand the content (adjust as needed) */
}

/* Blue Tab Styles */
.tab {
    position: absolute;
    left: -50px; /* Position outside the lesson section */
    top: 20px; /* Adjust as needed */
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 5px 0 0 5px;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}


/* Main Content and Additional Content */
.main-content,
.additional-content {
    transition: transform 0.5s ease-out;
    backface-visibility: hidden;
}

.additional-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
    padding: 20px;
    box-sizing: border-box;
    transform: rotateY(180deg); /* Initially hidden */
}

/* Flipped State */
.lesson.flipped .main-content {
    transform: rotateY(180deg); /* Flip main content */
}

.lesson.flipped .additional-content {
    transform: rotateY(0deg); /* Show additional content */
}

.title{
    font-size: 48px;
    color:#333;
    padding:20px;
    flex:10;
    display:block;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    padding: 20px;
    margin-top: 40px; /* Add spacing above the footer */
    
}

.footer-content {
    display: flex;
    justify-content: space-between; /* Space out the sections */
    max-width: 1200px; /* Limit the width of the footer */
    margin: 0 auto; /* Center the footer */
    padding: 0 20px; /* Add horizontal padding */
}

.footer-section {
    flex: 1; /* Make sections take up equal space */
    margin: 0 20px; /* Add spacing between sections */
}

.footer-section h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-section p {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style-type: none; /* Remove default bullet points */
    padding: 0;
}

.footer-section ul li {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-section ul li strong {
    font-weight: 700;
}

.footer-section ul li a {
    color: #007bff;
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}


.gear-icon {
    font-size: 10rem; /* Big gear icon */
    color: #777272; /* Dark gray color */
    animation: spin 4s linear infinite; /* Spinning animation */
}

.coming-soon-text {
    margin-top: 20px;
    font-size: 2rem;
    color:#777272; /* Gray color */
    font-weight: bold;
}

/* Spinning animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Theme Toggle Switch */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
}

.theme-toggle-label {
    position: relative;
    display: inline-block;
    width: 80px; /* Increased width to accommodate both icons */
    height: 30px;
    background-color: #ccc;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.theme-toggle-label .fas {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color:#007bff; /* Dark color for icons */
    transition: color 0.3s ease;
    z-index: 1; /* Ensure icons are above the slider */
}

.theme-toggle-label .fa-sun {
    left: 10px; /* Position sun icon on the left */
}

.theme-toggle-label .fa-moon {
    right: 10px; /* Position moon icon on the right */
}

.theme-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Add shadow for better visibility */
    z-index: 2; /* Ensure slider is above the background */
}

#theme-toggle-checkbox {
    display: none;
}

#theme-toggle-checkbox:checked + .theme-toggle-label {
    background-color: #333;
}

#theme-toggle-checkbox:checked + .theme-toggle-label .fa-sun {
    color: #fff; /* Light color for sun icon in dark mode */
}

#theme-toggle-checkbox:checked + .theme-toggle-label .fa-moon {
    color: #fff; /* Light color for moon icon in dark mode */
}

#theme-toggle-checkbox:checked + .theme-toggle-label .theme-toggle-slider {
    transform: translateX(50px); /* Move slider to the right */
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #333;
    color: #f4f4f4;
}

body.dark-mode header {
    background-color: #222;
    color: #fff;
}

body.dark-mode .tab-bar{
    background-color: #222;
    color: #fff;
}

body.dark-mode .next-btn {
    background-color: #444;
}

body.dark-mode .prev-btn {
    background-color: #444;
}

body.dark-mode .home-btn {
    background-color: #444;
}

body.dark-mode .phase {
    background-color: #444;
    border-color: #555;
}

body.dark-mode .phase:hover {
    background-color: #555;
}

body.dark-mode .lesson{
    background-color: #222;
    border-color: #555;
    color: white;
}

body.dark-mode .additional-content{
    background-color: #222;
    border-color: #555;
}

body.dark-mode .collapsible{
    background-color: #444;
}

body.dark-mode .speakButton{
    background-color:#777272;
}

body.dark-mode .tab{
    background-color: #444;
}

body.dark-mode footer {
    background-color: #222;
    color: #fff;
}

body.dark-mode .footer-section ul li a {
    color: #007bff;
}

body.dark-mode .footer-section ul li a:hover {
    color: #0056b3;
}

