/* Basic styling for layout */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #c2c2c2;
    transition: background-color 0.3s ease;
}
body.dark-mode {
    background-color: #0c0c0c;
    color: #fff;
}
header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}
.container {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    margin-bottom: 60px;
}
.container.dark-mode {
    background-color: #333;
    color: #fff;
}
.game-area {
    padding: 20px;
    border-top: 1px solid #ccc;
    margin-top: 20px;
}
.challenge {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}
.challenge.dark-mode {
    background-color: #666;
    color: #fff;
}
.preview-container {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
}
.preview {
    width: 100%;
    height: 100vh;
    border: none;
}
footer {
    text-align: center;
    padding: 10px 0;
    background-color: #333;
    color: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
    transition: background-color 0.3s ease;
}
footer.dark-mode {
    background-color: #0c0c0c;
    color: #fff;
}
.theme-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    z-index: 100;
}
.theme-toggle.dark-mode {
    color: #fff;
}
.save {
    color: white;
    background-color: #333;
    border-radius: 10px;
    border: none;
    margin-top: 20px;
    padding: 2px 8px;
}
.save:hover {
    background-color: #707070;
}
.save.dark-mode {
    color: #333;
    background-color: white;
}
.save.dark-mode:hover {
    background-color: #333;
    color: white;
}
.previewBtn {
    color: white;
    background-color: #333;
    border-radius: 10px;
    border: none;
    margin-top: 20px;
    padding: 2px 8px;
}
.previewBtn:hover {
    background-color: #707070;
}
.previewBtn.dark-mode {
    color: #333;
    background-color: white;
}
.previewBtn.dark-mode:hover {
    background-color: #333;
    color: white;
}
.version {
    text-align: right;
    color: #000;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-weight: bolder;
    font-size: 12px;
}
.version.dark-mode {
    color: #ffffff;
}
.author {
    margin-bottom: -30px;
    text-align: left;
    color: #000;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-weight: bolder;
    font-size: 12px;
}
.author.dark-mode {
    color: #ffffff;
}
.hidden {
    display: none;
}
.logo {
    width: 80px;
    margin: 10px;
    margin-bottom: -10px;
    border-radius: 50px;
    box-shadow: #e101ff7c -4px 0 5px, #21a2f87a 4px 0 5px, #e101ff7a 0 4px 5px, #21a2f87c 0 -4px 5px, black 0 0 50px;
}

.css.dark-mode, .html.dark-mode{
    background-color: #333;
    color: orange;
}
.html, .css{
    width: 100%;
    height: 100%;
}

/* Responsive styling for mobile devices */
@media (max-width: 600px) {
    .container, .game-area, .challenge, .preview-container {
        padding: 10px;
        margin: 10px;
    }
    .preview {
        height: 50vh;
    }
    .html, .css{
        width: 100%;
        height: 100%;
    }
}
