* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body {
    background-image: url("https://1985.is/system/theme/Material/images/public-page/paul-earle-wVjd0eWNqI8-unsplash-low.jpg");
    background-size: cover;
    max-width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    transition: background-image 0.3s ease;
}
.main {
    background: rgba(255, 255, 255, 0.44);
    border-radius: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 30vw;
    padding: 20px;
    height: auto; /* Allow height to adjust */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1;
}

.main.hidden {
    opacity: 0;
    visibility: hidden;
}

.header {
    grid-column: 1 / -1;  /* Make header span both columns */
    grid-row: 1;      /* Place in first row */
    margin-bottom: 0;
}

.grid-item {
    background: rgba(255, 255, 255, 0.44);
    border-radius: 16px;
    position: relative; /* For absolute positioning of content */
    padding-top: 100%;  /* Maintain square aspect ratio */
    overflow: hidden;
    margin: 0;
}

.grid-item > * {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-item:hover {
    transform: scale(1.02);
}

.grid-item:active {
    transform: scale(0.98);
}

/* Remove specific grid-row assignments */
.grid-item:nth-child(3),
.grid-item:nth-child(4) {
    grid-row: auto;
}

.display-1 {
    font-size: 6rem;
    font-weight: 100;
    margin: 0;
}
.display-2 {
    font-size: 5rem;
    font-weight: 100;
    margin: 0;
    grid-column: 1 / -1;  /* Make title span both columns */
}
.display-3 {
    font-size: 4rem;
    font-weight: 200;
    margin: 0;
}
.display-4 {
    font-size: 3.5rem;
    font-weight: 200;
    margin: 0;
}
.display-5 {
    font-size: 3.25rem;
    font-weight: 200;
    margin: 0;
}
.display-6 {
    font-size: 3rem;
    font-weight: 200;
    margin: 0;
}
.logo-arrange {
    margin-top: 10%;
    margin-bottom: 10%;
}
.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.lighttext {
    color: white;
}
.mys-logo {
    background: linear-gradient(45deg, #2b00a1, #1a1a1a) !important;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #2b00a1; /* Fallback */
}

body.dark-mode .mys-logo {
    background: linear-gradient(45deg, #2b00a1, #ffffff) !important;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cursor-glow {
    pointer-events: none;
    position: absolute;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, 
        rgba(255,255,255,0.95) 0%, 
        rgba(255,255,255,0.65) 30%, 
        rgba(255,255,255,0) 60%);
    transform: translate(-50%, -50%);
    transition: all 0.05s ease;
    opacity: 0;
    mix-blend-mode: overlay;
}

/* Update in main.css */
.settings-item {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
}

.settings-icon {
    width: 24px;
    height: 24px;
    color: rgba(0, 0, 0, 0.7);
    transition: transform 0.2s ease;
}

.settings-item:hover .settings-icon {
    transform: rotate(45deg);
}

.settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 255, 255, 0.44);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    width: 80vw;
    height: 80vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
}

.settings-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.settings-content {
    padding: 2rem;
    height: 100%;
    position: relative;
}

.close-settings {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.7);
}

.settings-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1999;
}

.settings-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Add to main.css */
.no-transition {
    transition: none !important;
}

/* Add to main.css */
body.dark-mode {
    background-color: #1a1a1a;
}

body.dark-mode::before {
    background: rgba(0, 0, 0, 0.5);
}

body.dark-mode .main,
body.dark-mode .grid-item,
body.dark-mode .settings-panel {
    background: rgba(20, 20, 20, 0.65);
    transition: background 0.3s ease, transform 0.2s ease-in-out;
}

body.dark-mode .settings-icon,
body.dark-mode .close-settings,
body.dark-mode .display-2 {
    color: rgba(255, 255, 255, 0.7);
}

.settings-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.settings-label {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.7);
}

body.dark-mode .settings-label {
    color: rgba(255, 255, 255, 0.7);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Update dark mode styles in main.css */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    z-index: 0;
    pointer-events: none;
    transition: background 0.3s ease;
}

/* Optional: add transition for text color changes */
.settings-icon,
.close-settings,
.display-2,
.settings-label {
    transition: color 0.3s ease;
}

/* Add to main.css */
body.no-transition,
body.no-transition::before,
body.no-transition * {
    transition: none !important;
}

/* Add to main.css */
body.dark-mode .cursor-glow {
    background: radial-gradient(circle, 
        rgba(118, 118, 118, 0.6) 0%, 
        rgba(118,118,118,0.3) 30%, 
        rgba(118,118,118,0) 60%);
    mix-blend-mode: screen;
}

/* Update in main.css */
body.gradient-bg {
    background-image: linear-gradient(135deg, #D6EFFF 0%, #FDE2E9 100%);
    background-size: 100% 100%;
    transition: background-image 0.3s ease;
}

body.dark-mode.gradient-bg {
    background-image: linear-gradient(135deg, #374B60 0%, #4A5D73 100%);
}

/* Remove all other gradient-related styles */

/* Add to main.css */
.subtitle {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.7);
    margin-top: -1rem;
}

body.dark-mode .subtitle,
body.dark-mode .grid-item {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .main {
        width: 90vw;
        height: 90vh;
        grid-template-columns: 1fr; /* Stack on mobile */
        grid-template-rows: auto auto repeat(4, 1fr);
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .main {
        width: 50vw;
    }
}

/* Adjust responsive breakpoints */
@media screen and (max-width: 1200px) {
    .main {
        width: 50vw;
        height: 85vh;
    }
}