/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400&display=swap');

/* General body and font styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #000;
    color: white;
    margin: 0;
    padding: 0;
    overflow-y: scroll;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Center content class for alignment */
.center-content {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

/* Text input styles */
input[type="text"] {
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    background-color: #2f2f2f;
    color: white;
    width: 90%;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Focused input field style */
input[type="text"]:focus {
    outline: none;
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.3);
}

/* Button styles */
button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Open button style */
#openNewTabButton {
    background-color: #3498db; /* Blue color */
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

/* Settings button style */
#bookmarksButton,
#settingsButton {
    font-size: 1.5em;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    padding: 8px;
    margin-left: 8px;
    transition: all 0.3s ease;
    transform: translateY(4px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Hover and active states for buttons */
button:hover {
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
}

button:active {
    box-shadow: 0 0 15px #5dade2;
}

/* Settings menu styles */
#settingsMenu {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    width: 300px;
    text-align: left;
    z-index: 2;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Close button for the settings menu */
#closeMenu {
    float: right;
    cursor: pointer;
    color: #aaa;
}

/* Label styles for form elements */
label {
    color: #bbb;
    margin-bottom: 5px;
    display: block;
}

/* Input fields for title and favicon in settings */
#titleInput, #faviconInput {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: none;
    background-color: #333;
    color: white;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

/* Toggle button styles */
.toggle-button {
    background-color: #3498db; /* Blue */
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-right: 8px;
    margin-bottom: 12px; /* Added vertical margin to space buttons */
}

/* Active state for the toggle button */
.toggle-button.active {
    background-color: #e74c3c; /* Red */
}

/* Reset button style */
#resetButton {
    background-color: #e74c3c; /* Red color */
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin-top: 20px; /* Added margin top to space out the reset button */
}

/* Separator line style */
.separator {
    border-top: 2px solid #3498db; /* Blue */
    margin: 20px 0;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Section header style */
.section-header {
    font-size: 1.5em;
    color: white;
    margin-top: 40px;
    margin-bottom: 10px;
}

/* Paragraph text style */
.paragraph {
    font-size: 0.75em;
    color: white;
    margin-top: 2.5px;
    margin-bottom: 5px;
}

/* Adjust margins for sections */
.center-content {
    margin-top: 60px;
}

/* Buttons */
.url-button {
    background-color: #3498db;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hover effect for buttons */
.url-button:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5), 0 10px 15px rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* Active effect for buttons */
.url-button:active {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
}
iframe.time {
  pointer-events: none;
}

#bookmarksMenu {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: white;
    border: 2px solid #444;
    border-radius: 12px;
    padding: 20px;
    z-index: 9999;
    width: 70%;
}

#bookmarksMenu span {
    position: absolute;
    top: 8px;
    right: 12px;
    cursor: pointer;
    font-size: 18px;
}

#bookmarksList {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.bookmark-button {
    background-color: #3e3e3e;
    color: white;
    border: 0px;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.3s ease;
    
}

/* Fading glow effect on hover */
.bookmark-button:hover {
    background-color: #515151;
    box-shadow: 0 0 5px #dadada, 0 0 10px #dadada, 0 0 15px #dadada;
}



.context-menu {
    position: absolute;
    background-color: #222;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 6px;
    display: none;
    z-index: 10000;
}

.context-menu button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: white;
    text-align: left;
    padding: 6px;
    cursor: pointer;
}




.changelog {
    width: 80vw;      /* 80% of viewport width */
    max-width: 480px; /* optional max width */
    margin: 5px auto;   /* center horizontally */
}

/* Label for the dropdown */
#settingsMenu label[for="modeSelect"] {
    color: #bbb;
    margin-top: 12px;
    margin-bottom: 6px;
    display: block;
    font-weight: 400;
}

/* Proxy Mode dropdown */
#modeSelect {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background-color: #2f2f2f;
    color: white;
    font-family: 'Roboto', sans-serif;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    margin-bottom: 12px;
    appearance: none; /* remove default arrow for most browsers */
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Focus effect on dropdown */
#modeSelect:focus {
    outline: none;
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.3);
}

/* Add a subtle glow on hover */
#modeSelect:hover {
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.15);
}