body{
    font-family:"Ubuntu Mono";
    background-image: url("bg.png");
    background-size: cover;
    height: 100vh;
    overflow:hidden;
    box-sizing: border-box;
}

#loadingScreen{
position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;        
  background-color: #131013; 

  display: flex;
  justify-content: center;
  align-items: center;
  
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loadingScreen.fadeout {
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.wrapperL {
  display: inline-flex;
  justify-content: flex-start;
  width: fit-content; 
  color:white;
}
.Lstatus {
  width:0;
  display:inline-block;
  overflow:hidden;
  font-size:1.5rem;
  white-space:nowrap;
  animation:typing 2s steps(11) forwards;
  }

@keyframes typing {
    from {
        width:0;
    }
    to {
        width:11ch;
    }
}

.notewindow{
    border: solid; 
    display: flex; 
    flex-direction: column; 
    border-radius: 16px; 
    position: absolute; 
    top: calc(50% - 180px); 
    left: calc(50% - 360px); 
    backdrop-filter: blur(4px); 
    background-color: rgba(0, 0, 0, 0.125); 
    border-color:rgb(140, 90, 150);
    width:70%;
    max-height: 70vh;      
    overflow-y: auto;        
    overflow-x: hidden;      
    box-sizing: border-box;
}
.Owindow{
    border: solid; 
    display: flex; 
    flex-direction: column; 
    border-radius: 16px; 
    position: absolute; 
    top: calc(50% - 260px); 
    left: calc(50% - 400px);  
    backdrop-filter: blur(4px); 
    background-color: rgba(0, 0, 0, 0.125); 
    border-color:rgb(140, 90, 150);
    width:60%;
}
#dinoboard{
    background-color: rgb(0, 0, 0);
    border-bottom: 1px solid black;
    border-radius: 20px;
}

.gallery-card:hover {
  transform: translateY(-2px);
  border-color: rgb(140, 90, 150);
filter: drop-shadow(3px 3px 5px rgba(140, 90, 150, 0.4));
}
.gallery-card:active,
.gallery-card.glow-active {
  border-color: rgb(190, 130, 210);
 filter: drop-shadow(3px 3px 5px rgba(140, 90, 150, 0.4));
  transform: scale(0.97);
}

.gallery-card3:hover {
  transform: translateY(-2px);
  border-color: rgb(140, 90, 150);
 filter: drop-shadow(3px 3px 5px rgba(140, 90, 150, 0.4));
}
.gallery-card3:active,
.gallery-card3.glow-active {
  border-color: rgb(190, 130, 210);
  filter: drop-shadow(3px 3px 5px rgba(140, 90, 150, 0.4));
  transform: scale(0.97);
}

.gallery-card2:hover {
  transform: translateY(-2px);
  border-color: rgb(140, 90, 150);
 filter: drop-shadow(3px 3px 5px rgba(140, 90, 150, 0.4));
}
.gallery-card2:active,
.gallery-card2.glow-active {
  border-color: rgb(190, 130, 210);
  filter: drop-shadow(3px 3px 5px rgba(140, 90, 150, 0.4));
  transform: scale(0.97);
}

.gallery-container{
    width:90%;
    margin-left:20px;
    margin-right:20px;
    display:flex;
    flex-direction:row;
    justify-content: space-between;
}


.gallery-container2{
    display:flex;
    justify-content:center;
}

.gallery-card2{
    width: 40vw; 
    width: clamp(200px, 40vw, 400px);
}

.gallery-card{
    width: 15vw; 
    width: clamp(100px, 15vw, 400px);
}


.gallery-card3{
    width: 17vw; 
    width: clamp(100px, 17vw, 400px);
}

.openbutton{
line-height: 1; font-size: 16px; margin-right: 10px;
}

#topbar{
    font-family:"Ubuntu Mono";
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:white;
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    border-top:solid;
    border-color: rgb(140, 90, 150);
    padding-right:10px;
    padding-left:10px;
    padding-bottom:20px;
    background-color: rgba(0, 0, 0, 0.386);
    backdrop-filter: blur(10px);
}
#logo{
    border-radius:10px;
    width:45px;
}
#logo-space{
    padding-left:20px;
    height:30px;
}
#time-space{
    margin-bottom:-10px;
    padding-right:10px;
}

#sidebar {
    z-index: 9999;
    margin-bottom: 71px;
    position: absolute;
    left: 0;
    bottom: 0;
    font-family: "Ubuntu Mono";
    display: none;
    background-color: rgba(118, 117, 117, 0);
    backdrop-filter: blur(10px);
    width: 40%;
    height: 13%;
    border-radius: 16px;
    border: solid;
    border-color: rgb(140, 90, 150);
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    border-top-left-radius: 0px;
    box-sizing: border-box;
    overflow-y: auto; 
}


.sidebar-icons {
    display: flex;
    flex-wrap: wrap;       
    align-content: flex-start;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.desktopApps {
    width: 25%;           
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.desktopApps img {
    width: 100%;
    max-width: 64px;       
    height: auto;
    cursor: pointer;
    box-sizing: border-box;
}

.window{
    border: solid; 
    display: flex; 
    flex-direction: column; 
    border-radius: 16px; 
    position: absolute; 
    top: calc(50% - 180px); 
    left: calc(50% - 360px); 
    backdrop-filter: blur(4px); 
    background-color: rgba(0, 0, 0, 0.125); 
    border-color:rgb(140, 90, 150);

}

.windowheader{
    width: 100%; 
    display: flex; 
    align-items: center; 
    cursor: pointer; 
    justify-content: flex-end; 
    box-sizing: border-box; 
    padding: 8px 14px;
    margin: 0px;
    color:rgb(140, 90, 150);
}

.insidewindow{
    border-radius: 16px;
    width:100%;
}

.selected{
    filter: drop-shadow(0 0 8px rgb(140, 90, 150));
}

  .timercontainer {
            text-align: center;
            background: #56444400;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        .inputcontainer {
            margin-bottom: 20px;
        }
        .inputcontainer input {
            width: 80px;
            padding: 8px;
            font-size: 1.5rem;
            font-family:"Ubuntu Mono";
            background:#ffffff61;
            border: 1px solid #cccccc00;
            border-radius: 5px;
            text-align: center;
        }
        .inputcontainer button {
            padding: 8px 15px;
            font-family:"Ubuntu Mono";
            font-size: 1.5rem;
            background-color: rgba(179, 3, 214, 0.49);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin-left: 5px;
        }
        .timedisplay {
            font-family:"Ubuntu Mono";
            font-size: 4rem;
            font-weight: bold;
            margin-bottom: 20px;
            color: #e8afe7;
        }
        .controls button {
            font-size: 1rem;
            padding: 10px 20px;
            margin: 5px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.2s;
        }
        #startB { 
            background-color: rgba(179, 3, 214, 0.49); 
            color: white;
            border: 1px solid #cccccc00;
        }
        #pauseB { 
            background-color: rgba(179, 3, 214, 0.49); 
            border: 1px solid #cccccc00;
            color: white; 
        }
        #resetB { 
            background-color: rgba(179, 3, 214, 0.49);
            border: 1px solid #cccccc00;
            color: white; 
        }


:root {
  --brand-color: rgb(140, 90, 150);
  --base-color: #3c404f;
  --surface-color: #00000094;
  --text-color: #ff98fa;
  --secondary-text-color: #3c404f;
  --base-transparent-90: rgba(247, 247, 247, 0.9);
  --base-transparent-100: rgba(247, 247, 247, 1);
}

h1 {
    margin-left:20px;
  margin-bottom: 1rem;
  color:rgb(140, 90, 150);
}

button, input, textarea {
  font: inherit;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.add-note-btn {
  background: var(--brand-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  margin-right:20px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.add-note-btn:hover {
  background: rgb(191, 122, 205);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.note-card {
  background: var(--surface-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--surface-color);
  transition: all 0.2s ease;
  position: relative;
}

.note-card:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.note-title {
    margin-left:10px;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-color);
  word-wrap: break-word;
}

.note-content {
    margin-left:10px;
  color: var(--secondary-text-color);
  line-height: 1.6;
  margin-bottom: 1rem;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.note-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.note-card:hover .note-actions {
  opacity: 1;
  visibility: visible;
}

.edit-btn, .delete-btn {
    margin-bottom:10px;
  margin-left:10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  background: var(--base-transparent-90);
  color: var(--text-color);
  border: 1px solid var(--surface-color);
}

.edit-btn:hover {
  background: var(--base-transparent-100);
  transform: scale(1.05);
}

.delete-btn:hover {
  background: #ff5252;
  transform: scale(1.05);
  color: white;
}

dialog {
  margin: auto;
  inset: 0;
  border: none;
  border-radius: 1rem;
  padding: 0;
  background: var(--surface-color);
  color: var(--text-color);
  max-width: 500px;
  width: 90vw;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

.dialog-content {
  padding: 2rem;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dialog-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary-text-color);
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background 0.2s ease;
}

.close-btn:hover {
  background: var(--surface-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--surface-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background: var(--base-color);
  color: var(--text-color);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-color);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.dialog-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.cancel-btn, .save-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.cancel-btn {
  background: var(--base-color);
  color: var(--text-color);
}

.save-btn {
  background: var(--brand-color);
  color: white;
}

.save-btn:hover {
  background: rgb(191, 122, 205);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--secondary-text-color);
}

.empty-state h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.empty-state p {
  font-size: 1rem;
  margin-bottom: 2rem;
}
