*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #222222;
    font-family: Arial, sans-serif;
    overflow: hidden;
    color: #f8f8f8;
}
span#signed p {
    padding-left: 1.5em;
    font-size: .9em;
    margin-top: .6em;
}
button {
    border: none;
    cursor: pointer;
}
div#screens {
    color: aliceblue;
}
details div {
    position: relative;
    padding: .5em;
    padding-left: 1.3em;
    max-width: 100%;
    background: #3e3e3e;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-flex;
    gap: .5em;
    box-sizing: border-box;
}
details div::before {
    left: .3em;
    content: '';
    height: .7em;
    width: .7em;
    display: block;
    background: red;
    border-radius: 50%;
    position: absolute;
    top: 0.7em;
    margin-right: 1em;
}
.tabs {
    display: inline-flex;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    height: 3em;
    align-items: center;
    background: #3e3e3e;
    margin: .5em 0;
    border-radius: 1em;
}

.tab-button {
    padding: 0 20px;
    background-color: #3e3e3e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    flex: 1;
    height: 100%;
}

.tab-button.active {
    background-color: #666;
}
.tab-button[data-target=cssEditor].active {
  border-radius: 0;
}
main {
    flex: 1;
    gap: 0;
    display: flex;
    flex-direction: column;
}
.editor-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.editor {
    display: none;
    width: 100%;
    height: 150px;
    /* padding: 10px; */
    font-family: monospace;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #555;
    box-sizing: border-box;
    overflow: hidden;
}

.editor.active {
    display: block;
}

.samsung-phone {
    width: 330px;
    height: 680px;
    background-color: #222222;
    border-radius: 35px;
    border: 5px solid #3e3e3e;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5), 0 5px 10px rgba(0, 0, 0, 0.5);
    position: absolute;
    cursor: move;
    z-index: 10;
    right: 3em
}

.screen {
    width: 90%;
    height: 90%;
    background-color: #f8f8f8;
    border-radius: .5em;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.screen iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.fullscreen-button {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3e3e3e;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Mobile styles */
@media (max-width: 767px) {
    .samsung-phone {
        width: 100%;
        height: 50vh;
        position: fixed;
        bottom: 0;
        left: 0;
        border-radius: 0;
        z-index: 10;
        border: none;
    }

    .fullscreen-button {
        display: block;
    }
    .screen {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .editor-container {
        flex-grow: 1;
    }
}

/* Responsive layout for larger screens */
@media (min-width: 768px) {
    body {
        flex-direction: row;
        gap: 20px;
    }

    .editor-container {
    flex-grow: 1;
    position: relative;
}

    .editor {
        
        height: 90vh;
    }

    

    .fullscreen-button {
        display: none;
    }
}

/* Existing styles... */

.menu {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#menuButton {
    padding: 10px 20px;
    color: white;
    border: none;
    background: transparent;
    cursor: pointer;
    
    z-index: 100;
    width: 100%;
}

.menu-options {
    display: none;
    position: fixed;
        bottom: 3em;
    left: 16vw;
    /* transform: translateX(-50%); */
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgb(0 0 0 / 10%);
    z-index: 100;
    overflow: hidden;
}

.menu-options button, label {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #f8f8f8;
    border: none;
    border-bottom: 1px solid #333;
    text-align: left;
    cursor: pointer;
}

.menu-options button:last-child {
    border-bottom: none;
}

.menu-options button:hover {
    background-color: #f0f0f0;
}

.console-container {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 10px;
    height: 70vh;
    overflow-y: auto;
    border: 1px solid #333;
    width: 30vw;
    display: none;
    border-radius: .3em;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 9999;
}
#consoleToggle {
    display: none;
}
#customConsole {
   background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 10px;
    max-height: 90vh;
    overflow-y: auto;
    font-family: monospace;
    font-size: 14px;
}
label[for=consoleToggle] {
    color: #222222;
    padding-left: 1.5em;
    font-size: .9em;
}
#consoleToggle:checked ~ .console-container {
    display: block;
}
/* Styles for different types of console messages */
.console-log {
    color: #9cdcfe; /* Light blue for log messages */
}

.console-warn {
    color: #dcdcaa; /* Yellow for warning messages */
}

.console-error {
    color: #f48771; /* Red for error messages */
}

.install-button {
    position: fixed;
    bottom: 3em;
    right: 49vw;
    top: 40vh;
    height: 3em;
    padding: 0 2em;
    background: #f8f8f8;
    font-weight: 700;
}
/* Deployment popup styles */
.deployment-popup {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* Toggle button styles */
#showDeploymentPopupBtn {
    margin: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#showDeploymentPopupBtn:hover {
    background-color: #0056b3;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal-content {
    background-color: #101010;
    margin: 15% auto;
    padding: 20px;
    border: 4px solid #999;
    width: 80%;
    height: 78vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
input#appTitle {
    height: 3em;
    background: #101010;
    border: 2px solid #f8f8f8;
    padding: 0 1em;
    border-radius: .4em;
}
textarea#appDescription {
    height: 7em;
    border: 1px solid #f8f8f8;
    background: #101010;
    border-radius: .4em;
    padding: 1em;
}
#tagsContainer label {
    background: transparent;
    margin-bottom: 1em;
}
form#publishForm {
    display: flex;
    flex-direction: column;
    width: 60%;
    gap: .7em;
}
.modal button[type=submit] {
    border: 2px solid #f8f8f8;
    background: #101010;
    color: #f8f8f8;
    height: 3em;
    width: 10em;
    align-self: end;
    justify-self: end;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    align-self: end;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.sign-in {
  height: 3em;
  background: #f8f8f8;
  border: none;
  width: 90%;
  border-radius: .6em;
  margin-top: .7em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1em;
  font-weight: bold;
}

.sidebar {
    height: 100vh;
    border-right: 1px solid #999;
    width: 15%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sidebar h1 {
  color: aliceblue;
  padding: .5em 1em;
  border-bottom: 1px solid #999;
  margin-bottom: .5em;
}

.sidebar .footer button {
  text-align: left !important;
  padding-left: 1.5em;
}
.sidebar .footer button:hover {
  background: #333 !important;
}
.sidebar .footer .sign-in:hover {
  background: #f8f8f8 !important;
}
.sidebar .menu-options button:hover {
  background: #f8f8f8 !important;
}
div#screens {
    width: 100%;
    color: aliceblue;
    /* flex: 100%; */
    display: block;
    /* flex-grow: 1; */
    /* position: absolute; */
    z-index: 10;
    height: 70%;
}
#publishBtn {
  height: 3em;
  width: 100%;
  background: transparent;
  border: none;
  color: #f8f8f8;
}
button.notification-button.notification-button-visible {
    display: none;
}
.screen-list button {
    border: none;
    background: transparent;
    color: #f8f8f8;
}
.screen-header {
    display: flex;
    align-items: center;
    font-weight: bold;
    padding: .2em 1.5em;
    gap: 1em;
}
details {
    margin-left: 1em;
    margin-bottom: .5em;
}



  summary {
            list-style: none;
            outline: none;
            padding: 10px;
            border-bottom: 1px solid #333;
            cursor: pointer;
            position: relative;
        }

        summary::before {
            content: '';
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-top: 5px solid #f8f8f8; /* Arrow color */
            transition: transform 0.3s ease; /* Smooth transition */
        }

        details[open] summary::before {
            border-top: none;
            border-bottom: 5px solid #333; /* Arrow color when open */
            transform: translateY(-50%) rotate(180deg); /* Rotate for open state */
        }
        .history-item button{
          margin-left: .3em;
        }
        
        #concepts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1em;
}
.image {
  height: 15em;
  width: 100%;
  border-radius: 1em;
  overflow: hidden;
  position: relative;
  display: flex;
}
.image img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
}
.concept-item {
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.slide-up {
  height: 100%;
  width: 100%;
  background: rgb(255, 2555, 255, 0.8);
  position: absolute;
  top: 100%;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: .2s;
}
.meta-data {
    z-index: 10;
    font-weight: bold;
    align-self: end;
    width: 100%;
    padding: 0 1em;
    color: aliceblue;
}
.image:hover .slide-up {
  top: 0;
  left: 0;
}
#toggleApps:checked ~ .apps-popup {
  top: 10vh;
  left: 5vw;
}
#toggleApps {
  display: none;
}
.useConcept {
    border: 2px solid #222222;
    color: #222222;
    font-weight: bold;
    height: 3em;
    width: 70%;
    border-radius: 9999px;
    background: #f8f8f8;
}
label[for=toggleApps] {
    background: #3e3e3e;
    border: none;
    height: 3em;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 12em;
    border-radius: .6em;
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 1em;
}
.apps-popup {
  height: 80vh;
  width: 90vw;
  background: #111;
  top: 100vh;
  left: 5vw;
  position: fixed;
  z-index: 9999;
  padding: 1em 2em;
  transition: ease-in-out .2s;
      border: 4px solid #999;
}

#tagsContainer {
    margin: 15px 0;
}

.tag {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.tag.selected {
    border-color: #f8f8f8;
    background: #f8f8f8; /* Optional: Change background color for selected tags */
    color: #222222; /* Optional: Change text color for selected tags */
}

.custom-file-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#customFileInputBtn {
    padding: 8px 16px;
    background-color: #f8f8f8;
    color: #222;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#customFileInputBtn:hover {
    background-color: #0056b3;
}

#fileName {
    font-size: 14px;
    color: #333;
}
input, textarea {
  color: #f8f8f8;
}

.filters ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    gap: 1em;
    height: 4em;
    align-items: center;
    border-bottom: 1px solid #f8f8f8;
    margin-bottom: .5em;
}
li.filter-tag {
    background: #f8f8f8;
    width: 100%;
    height: 2em;
    border-radius: 9999pc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #222222;
    font-weight: 700;
    flex-direction: column;
    cursor: pointer;
    transition: .2s;
}
li.filter-tag:hover {
  transform: scale(1.01);
}
li.filter-tag.active::after {
  content: '';
  height: .1em;
  width: 1em;
  background: #222;
  display: block;
}