* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding-top: 70px;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 0;
    background: #1a1a1a;
    color: #fff;
    background: linear-gradient(135deg, #1a1a1a, #2d1f2f);
    min-height: 100vh;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
}

.sticky-nav {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: clamp(0.5rem, 2vw, 1rem);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 700px;
    width: 100%;
    flex-wrap: nowrap;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.nav-links {
    display: flex;
    gap: clamp(0.3rem, 1vw, 1rem);
    align-items: center;
    width: 200px;
    justify-content: center;
    flex: 1;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #412463;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    max-width: 300px;
}

.nav-link:hover {
    color: #fff;
    background-color: #311c49;
    transform: scale(1.05);
}

#profilePicture {
    display: flex;
    justify-content: center;
    width: 80px;
    flex-shrink: 0;
    margin: 0 20px;
}

#profilePicture img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#profilePicture img:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Added styles from newindex.html */
.container {
    max-width: min(1200px, 90vw);
    margin: 2rem auto;
    padding: clamp(15px, 3vw, 25px);
    background: rgba(47, 49, 54, 0.185);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

#links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link {
    display: flex;
    align-items: center;
    padding: clamp(0.8rem, 2vw, 1.2rem);
    background-color: #412463;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    justify-content: center;
    font-size: clamp(0.9rem, 2vw, 1rem);
    gap: clamp(0.5rem, 2vw, 1rem);
}

.link:hover {
    background-color: #311c49;
    transform: scale(1.05);
}

.link i {
    margin-right: 10px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

@media (max-width: 600px) {
    .sticky-nav {
        flex-direction: row;
        padding: 0.5rem;
        gap: 0.3rem;
    }
    
    .nav-links {
        gap: 0.3rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    #profilePicture img {
        width: clamp(30px, 4vw, 35px);
        height: clamp(30px, 4vw, 35px);
    }

    .container {
        padding: 10px 15px;
        margin: 1rem auto;
    }

    .time-inputs label[for="timeFormat"],
    #timeFormat {
        width: 100%;
        margin-left: 0;
    }

    .time-inputs label[for="timeFormat"] {
        margin-top: 15px;
        text-align: center;
        display: flex;
        justify-content: center;
        height: auto;
    }

    #timeFormat {
        margin: 0 auto;
        width: auto;
    }

    .timestamp-row {
        grid-template-columns: 40px 1fr auto;
    }
    
    .result {
        display: none;
    }
}

/* Timestamp Page Specific Styles */
.timestamp-container {
    background: rgba(64, 68, 75, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 4px;
    padding: 4px;
    margin: 0 auto;
    max-width: 800px;
}

.timestamp-row {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid #202225;
}

.timestamp-row:last-child {
    border-bottom: none;
}

.format {
    font-family: 'Inter';
    background: rgba(47, 49, 54, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
}

.preview {
    color: #ffffff;
}

.result {
    flex: 1;
    text-align: center;
    font-family: 'Inter';
    background: rgba(47, 49, 54, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    overflow-x: auto;
    margin-left: 10px;
    margin-right: 20px;
}

.copy-btn {
    flex-shrink: 0;
    font-family: 'Inter';
    background-color: #412463;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background-color 0.1s, transform 0.1s;
    width: clamp(70px, 15vw, 80px);
    text-align: center;
}

.copy-btn:hover {
    background-color: #311c49;
    transform: scale(1.05);
}

/* Add all other timestamp-specific styles here */
/* ... rest of the timestamp styles ... */

.format-guide {
    background-color: #2f3136;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 500px;
    margin: 20px auto;
    text-align: center;
}

.time-inputs {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.time-inputs label {
    margin-right: 8px;
    color: #ffffff;
    display: flex;
    align-items: center;
    height: 35px;
}

.time-inputs select {
    padding: 8px;
    border: 1px solid #412463;
    border-radius: 4px;
    background-color: rgba(65, 36, 99, 0.3);
    color: #ffffff;
    height: 35px;
}

.preview-box {
    flex: 1;
    margin-right: 10px;
    background: rgba(47, 49, 54, 0.8);
    width: 140px;
    border-radius: 4px;
    padding: 8px;
}

.timezone-preview {
    margin-top: 20px;
}

.timezone-preview h3 {
    text-align: center;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
}

.timezone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.timezone-item {
    background: rgba(64, 68, 75, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.timezone-label {
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.timezone-time {
    color: #dcddde;
    font-family: 'Inter';
    margin: 2px 0;
    font-size: clamp(0.85rem, 1.8vw, 1rem);
}

.centered-small {
    text-align: center;
    font-size: 0.8em;
    margin-top: -20px;
}

select, input {
    font-family: 'Inter';
}

/* Make sure all other timestamp styles are included */
.time-label {
    margin-right: 8px;
    margin-left: 15px;
    color: #ffffff;
    line-height: 35px;
    display: flex;
    align-items: center;
    height: 35px;
    margin-top: 10px;
}

.time-inputs .time-label:first-child {
    margin-left: 0;
}

#ampm-label {
    margin-left: 0px;
}

h1 {
    text-align: center;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.content-wrapper {
    display: flex;
}

.input-section {
    width: 100%;
    text-align: center;
}

.datetime-input {
    width: 100%;
    align-items: center;
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
}

input[type="datetime-local"],
input[type="date"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #412463;
    border-radius: 4px;
    background-color: rgba(65, 36, 99, 0.3);
    color: #ffffff;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 0.8;
}

select:focus, 
input[type="date"]:focus,
input[type="datetime-local"]:focus {
    border-color: #311c49;
    outline: none;
}

/* Rest of your timestamp-specific styles */
/* ... (copy all remaining styles from the <style> section) ... */

/* Base font size using viewport width */
:root {
    font-size: calc(14px + 0.4vw);  /* Responsive base font size */
}

/* Update form elements for timestamp page */
input, select, button {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    padding: clamp(4px, 1vw, 8px) clamp(8px, 1.5vw, 12px);
}

h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    text-align: center;
}

h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

/* Download page styles */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.download-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(0.8rem, 2vw, 1.2rem);
    background-color: #412463;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    text-align: center;
}


.download-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.download-item h2 {
    color: #fff;
    margin: 0.5rem 0;
}

.download-item .description {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
}

.download-button {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background-color: rgba(26, 26, 26, 0.95);
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.download-button:hover {
    background-color: rgba(26, 26, 26, 0.8);
    transform: scale(1.05);
}

.download-button i {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

/* Join Page Specific Styles */
.input-group {
    margin-bottom: 1.2rem;
}

.input-field {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #202225;
    border-radius: 4px;
    background-color: rgba(65, 36, 99, 0.3);
    color: #ffffff;
    box-sizing: border-box;
    font-family: inherit;
    text-align: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #ffffff;
    margin: 1rem 0;
}

.timestamp-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #202225;
}

.time-select {
    padding: 0.5rem;
    border: 1px solid #202225;
    border-radius: 4px;
    background-color: rgba(65, 36, 99, 0.3);
    color: #ffffff;
    font-family: inherit;
}

.timezone-display {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
    color: #8e9297;
    font-size: 0.9em;
    text-align: center;
}

.timestamp-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background-color: rgba(65, 36, 99, 0.3);
    border-radius: 4px;
    margin: 1rem 0;
}

.button-group {
    display: flex;
    gap: clamp(0.3rem, 1vw, 1rem);
    align-items: center;
    width: 300px;
    margin: 1.5rem auto;
    justify-content: center;
}

.button-group .link {
    width: 100%;
    max-width: 400px;
}

/* Add styling for nav-link when inside timestamp-row */
.timestamp-row .nav-link {
    width: 300px;  /* Match button-group width */
    margin: 0 auto;  /* Center the button */
    display: block;  /* Ensure proper margin centering */
} 