body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: fixed;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.light-mode {
    background-color: #f5f5f5;
    color: #333333;
}

.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.floating-btn img {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.floating-btn:hover {
    transform: scale(1.1); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); 
    opacity: 1;
}

.floating-btn:not(:hover) {         
    transform: none;
    opacity: 0.6;
}

.top-bar {
    display: flex;
    height: 5%;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    padding: 8px;
    color: white;
    z-index: 100;
    opacity: 0.5;
    box-shadow: 0 0 10px white;
    position: fixed;
    width: 100%;
    box-sizing: border-box;
}

.top-bar .left img {
    width: 40px;
    height: 40px;
    border-radius: 20%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.top-bar .centre h1 {
    font-family: 'Press Start 2P', sans-serif;
    justify-content: space-between;
    font-size: clamp(12px, 4vw, 20px);
    color: #ff7300;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    margin: 0;
}

.top-bar .right {
    display: flex;
    align-items: center;
}

.material-icons {
    color: white;
    font-size: 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    background-color: transparent;
    user-select: none;
}

.material-icons:hover {
    color: #ff7300;
    background-color: transparent;
}

.toggle-sidebar {
    margin-right: 5px;
    text-shadow: 0px 0px 5px black, 0 0 8px white;
}

.three-dots {
    margin-right: 5px;
    text-shadow: 0px 0px 5px black, 0 0 8px white;
}

.poup-menu {
    position: fixed;
    right: -100%;
    border-radius: 5px;
    background-color: black;
    padding: 10px;
    transition: right 0.3s ease;
    overflow-y: auto;
    opacity: 0.5;
    z-index: 100;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.poup-menu.open {
    right: 0;
}

.poup-menu button {
    display: flex;
    width: 100%;
    padding: 2px;
    align-items: center;
    font-family: 'Anton', sans-serif;
    font-size: clamp(14px, 3vw, 20px);
    color: black;
    text-shadow: 0px 0px 5px white, 0 0 8px white;
    background-color: #ffb200;
    margin: 10px 0;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.poup-menu button i {
    font-size: 18px;
    color: black;
    margin: 0 10px;
    text-shadow: 0px 0px 5px white, 0 0 8px black;
    transition: color 0.3s ease, transform 0.3s ease;
}

.poup-menu button:hover {
    background-color: #4CAF50;
    color: white;
}

.poup-menu button:hover i {
    color: white;
    transform: scale(1.1);
}

.sidebar {
    position: fixed;
    right: -100%;
    width: 40%;
    max-width: 300px;
    height: calc(100% - 60px);
    border-radius: 5px;
    background-color: black;
    padding: 10px;
    transition: right 0.3s ease;
    overflow: auto;
    opacity: 0.5;
    z-index: 100;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.sidebar.open {
    right: 0;
}

.sidebar h3 {
    font-family: 'Audiowide', sans-serif;
    font-size: clamp(14px, 3vw, 20px);
    color: #ff7300;
    text-shadow: 0px 0px 5px #333, 0 0 8px black;
}

.sidebar h4 {
    display: flex;
    align-items: center;
    font-family: 'Anton', sans-serif;
    font-size: clamp(10px, 2vw, 14px);
    color: white;
    text-shadow: 0px 0px 5px black, 0 0 8px black;
    margin: 0;
}

.sidebar h4 i {
    font-size: 18px;
    color: white;
    margin: 0 10px;
}

.sidebar p {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Anton', sans-serif;
    font-size: 12px;
    color: #a3a395cc;
    margin: 0;
}

.sidebar button {
    display: flex;
    width: 100%;
    padding: 2px;
    align-items: center;
    font-family: 'Audiowide', sans-serif;
    font-size: clamp(12px, 3vw, 18px);
    color: black;
    text-shadow: 0px 0px 5px white, 0 0 8px white;
    background-color: #ffb200;
    margin: 10px 0;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar button i {
    font-size: 18px;
    color: black;
    margin: 0 10px;
    text-shadow: 0px 0px 5px white, 0 0 8px black;
    transition: color 0.3s ease, transform 0.3s ease;
}

.sidebar button:hover {
    background-color: #4CAF50;
    color: white;
}

.sidebar button:hover i {
    color: white;
    transform: scale(1.1);
}

.main-content {
    width: 100%;
    height: 100%;
    flex-direction: column; 
    align-items: center; 
    text-align: center;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    justify-content: center;
    height: 100vh; 
    overflow-y: auto; 
    padding: 20px;
    box-sizing: border-box;
    opacity: 0.5;
    padding-top: 60px;
}

.frame {
    width: 100%;
    max-width: 800px;
    height: auto;
    padding: 10px 15px;
    background-color: transparent;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
}

.profile-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile-box img {
    width: 200px;
    height: 200px;
    max-width: 80%;
    border-radius: 20%;
    margin-top: 30px;
    margin-bottom: 50px;
    box-shadow: 
        0 0 20px rgba(255, 69, 0, 0.8),  
        0 0 40px rgba(255, 140, 0, 0.6), 
        0 0 60px rgba(255, 215, 0, 0.4), 
        0 0 80px rgba(255, 69, 0, 0.3);
    animation: flameGlow 3s infinite alternate;
}

@keyframes flameGlow {
    0% {
        box-shadow: 
            0 0 15px rgba(255, 69, 0, 0.7),  
            0 0 30px rgba(255, 140, 0, 0.5), 
            0 0 50px rgba(255, 215, 0, 0.3), 
            0 0 70px rgba(255, 69, 0, 0.2);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(255, 99, 71, 0.9),  
            0 0 50px rgba(255, 165, 0, 0.7), 
            0 0 70px rgba(255, 223, 0, 0.5), 
            0 0 90px rgba(255, 99, 71, 0.4);
    }
    100% {
        box-shadow: 
            0 0 20px rgba(255, 69, 0, 0.8),  
            0 0 40px rgba(255, 140, 0, 0.6), 
            0 0 60px rgba(255, 215, 0, 0.4), 
            0 0 80px rgba(255, 69, 0, 0.3);
    }
}

.profile-box .text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile-box .text p {
    margin: 5px;
    margin-bottom: 30px;
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: #ff6347;
    font-family: 'Lobster', cursive;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.profile-box .text p strong {
    font-size: clamp(1.5rem, 6vw, 3rem);
    color: #ff9d00;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    text-align: center;
    font-family: 'Anton', cursive;
    margin-bottom: 30px;
}

.description { 
    width: 100%;
    height: 100%;
    margin: 5px;
    text-align: center;
    align-items: center;
    justify-content: center;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.description p {
    margin: 10px 0;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #ff6347;
    font-family: 'Lobster', sans-serif;
}

.description h2 {
    margin: 10px;
    font-size: clamp(1.5rem, 6vw, 3rem);
    color: #ff9d00;
    font-family: 'Anton', sans-serif;
}

.description h3 {
    margin: 10px 5px;
    font-size: clamp(1rem, 4vw, 2rem);
    color: #e9c013;
    font-family: 'Lobster', sans-serif;
}

.example {
    width: auto;
    height: auto;
    padding: 20px;
    text-align: center;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Anton', cursive;
    color: #ff9d00;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.api-display {
    margin-top: 20px;
}

#api-url {
    font-family: 'Roboto', sans-serif;
    background-color: black;
    color: white;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: clamp(12px, 3vw, 16px);
}

.response-box {
    margin-top: 10px;
    padding: 10px;
    color: white;
    font-family: 'Roboto', sans-serif;
    background-color: black;
    border: 1px solid #333;
    border-radius: 5px;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
    font-size: clamp(12px, 3vw, 14px);
}

.notification {
    display: none; 
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
    color: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    font-size: 16px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s;
    max-width: 80%;
    text-align: center;
}

.notification.show {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .sidebar {
        width: 70%;
    }
    
    .profile-box img {
        width: 150px;
        height: 150px;
    }
    
    .frame {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 85%;
    }
    
    .top-bar .centre h1 {
        font-size: 14px;
    }
    
    .profile-box img {
        width: 120px;
        height: 120px;
    }
}
