@import url("./sidebarUtility/verBox.css");
@import url('./sidebarUtility/sidebarUtility.css');
@import url('./sidebarUtility/sidebar.css');


@import url("./homepage/style/banner.css");
@import url("./homepage/style/updateCard.css");
@import url("./homepage/style/projectCard.css");
@import url("./homepage/style/articleCard.css");
@import url("./homepage/style/animeCard.css");

body {
  visibility: visible;
}

* {
  box-sizing: border-box;
}
/* Website Default */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex; 
  flex-direction: row;
  overflow-x: hidden;
}

/* Button Design */
button {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}


/* CSS FOR MOBILE SIZE */
@media (width <= 780px) {
  body {
    flex-direction: column;
  }

  /* Sidebar CSS for Mobile Size */
  .sidebar {
    display: flex;
    position: relative;
    padding: 0 20px;
    margin: 10px;
  }
  
  strong {
    font-size: 2.5rem;
  }
}

/* Sidebar CSS for Dekstop Size */
@media only screen and (min-width: 780px){
  .sidebar {
    width:auto;
    position: relative;
    margin-left: 2%;
    padding: 0 12px;
    margin-top: 1.5%;
    margin-bottom: 1.5%;
  }
}

  /* Main Content Overall next to the Sidebar */
  .maincontent {
    margin: 20px;
    border-radius: 16px;
    padding: 16px;
    /* background: rgba(255, 255, 255, 0.068); */
    color: rgb(255 255 255 / 95%);
    overflow-x: hidden;
    width: calc(100% - 48px); 
    box-sizing: border-box; 
    width: 95%;
  }
  
  /* switch settings 👇 */
  
  .ui-switch {
    /* switch */
    --switch-bg: rgb(135, 150, 165);
    --switch-width: 48px;
    --switch-height: 20px;
    /* circle */
    --circle-diameter: 32px;
    --circle-bg: rgb(0, 56, 146);
    --circle-inset: calc((var(--circle-diameter) - var(--switch-height)) / 2);
  }
  
  .ui-switch input {
    display: none;
  }
  
  .slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: var(--switch-width);
    height: var(--switch-height);
    background: var(--switch-bg);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
  }
  
  .slider .circle {
    top: calc(var(--circle-inset) * -1);
    left: 0;
    width: var(--circle-diameter);
    height: var(--circle-diameter);
    position: absolute;
    background: var(--circle-bg);
    border-radius: inherit;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTkuMzA1IDEuNjY3VjMuNzVoMS4zODlWMS42NjdoLTEuMzl6bS00LjcwNyAxLjk1bC0uOTgyLjk4Mkw1LjA5IDYuMDcybC45ODItLjk4Mi0xLjQ3My0xLjQ3M3ptMTAuODAyIDBMMTMuOTI3IDUuMDlsLjk4Mi45ODIgMS40NzMtMS40NzMtLjk4Mi0uOTgyek0xMCA1LjEzOWE0Ljg3MiA0Ljg3MiAwIDAwLTQuODYyIDQuODZBNC44NzIgNC44NzIgMCAwMDEwIDE0Ljg2MiA0Ljg3MiA0Ljg3MiAwIDAwMTQuODYgMTAgNC44NzIgNC44NzIgMCAwMDEwIDUuMTM5em0wIDEuMzg5QTMuNDYyIDMuNDYyIDAgMDExMy40NzEgMTBhMy40NjIgMy40NjIgMCAwMS0zLjQ3MyAzLjQ3MkEzLjQ2MiAzLjQ2MiAwIDAxNi41MjcgMTAgMy40NjIgMy40NjIgMCAwMTEwIDYuNTI4ek0xLjY2NSA5LjMwNXYxLjM5aDIuMDgzdi0xLjM5SDEuNjY2em0xNC41ODMgMHYxLjM5aDIuMDg0di0xLjM5aC0yLjA4NHpNNS4wOSAxMy45MjhMMy42MTYgMTUuNGwuOTgyLjk4MiAxLjQ3My0xLjQ3My0uOTgyLS45ODJ6bTkuODIgMGwtLjk4Mi45ODIgMS40NzMgMS40NzMuOTgyLS45ODItMS40NzMtMS40NzN6TTkuMzA1IDE2LjI1djIuMDgzaDEuMzg5VjE2LjI1aC0xLjM5eiIgLz4KPC9zdmc+");
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    -o-transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    box-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12);
    ;
  }
  
  .slider .circle::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    border-radius: inherit;
    -webkit-transition: all 500ms;
    -o-transition: all 500ms;
    transition: all 500ms;
    opacity: 0;
  }
  
  /* actions */
  
  .ui-switch input:checked+.slider .circle {
    left: calc(100% - var(--circle-diameter));
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTQuMiAyLjVsLS43IDEuOC0xLjguNyAxLjguNy43IDEuOC42LTEuOEw2LjcgNWwtMS45LS43LS42LTEuOHptMTUgOC4zYTYuNyA2LjcgMCAxMS02LjYtNi42IDUuOCA1LjggMCAwMDYuNiA2LjZ6IiAvPgo8L3N2Zz4=");
  }
  
  .ui-switch input:active+.slider .circle::before {
    -webkit-transition: 0s;
    -o-transition: 0s;
    transition: 0s;
    opacity: 1;
    width: 0;
    height: 0;
  }
  
  /* pop-up screen when enter website */
#popupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 999;
    /* Add a transition for smooth fading */
    transition: opacity 0.3s ease-in-out;
    opacity: 0; /* Initially hidden */
}

#popupContainer {
  color:white;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9); /* Start slightly smaller */
    background-color: rgb(3, 44, 149);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
    /* Add a transition for the pop-in effect */
    transition: transform 0.3s ease-in-out;
}

/* CSS to show the popup with animation */
#popupOverlay.show {
    display: block; /* Make it visible */
    opacity: 1; /* Fade in */
}

#popupContainer.show {
    display: block; /* Make it visible */
    transform: translate(-50%, -50%) scale(1); /* Pop to full size */
}

.popup-button {
  background-color: #28a745; 
  color: white;
  border: none; 
  padding: 12px 28px; 
  border-radius: 8px; 
  font-size: 1.05rem; 
  font-weight: 600; 
  cursor: pointer; 
  transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.2s ease; /* Smooth transitions for hover effects */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
  letter-spacing: 0.5px; 
  text-transform: uppercase;  
}

.popup-footer {
  display: flex;
  justify-content: center;
}

.popup-button:hover {
  background-color: #218838; /* Darker green on hover */
  transform: translateY(-2px); /* Lifts the button slightly on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* More pronounced shadow on hover */
}

.popup-button:active {
  background-color: #1e7e34; /* Even darker green when clicked */
  transform: translateY(0); /* Pushes the button down when active */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Flatter shadow when active */
}