/* Base (Light Mode) */
body {
    font-family: 'Arial', sans-serif;
    background-color: #ffeee2; /* Light pastel background */
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Skip Link Styles */
.skip-link {
    position: absolute;
    left: -9999px; /* Hide off-screen */
    top: 10px; /* Position above content */
    background-color: #fee1dd; /* Optional: background for visibility */
    color: #000; /* Optional: text color */
    padding: 8px; /* Optional: padding for comfort */
    border-radius: 4px; /* Rounded corners for aesthetics */
    z-index: 1000; /* Ensure it appears above other content */
}

.skip-link:focus {
    left: 10px; /* Move back on focus for visibility */
}

/* Existing Styles */
.profile img {
    border-radius: 50%;
    width: 20vw;
    max-width: 150px;
    height: auto;
    object-fit: cover;
    border: 4px solid #000;
}

.container {
    width: 90%;
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffeee2;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 2px solid #000;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header h1, header p {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.link-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

.tile {
    display: block;
    width: 100%;
    max-width: 800px;
    height: 60px;
    background-color: #ffeee2;
    color: #000;
    text-decoration: none;
    padding: 4%;
    border: 2px solid #000;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-size: 1.8vw;
    max-font-size: 22px;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(100px);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.tile-left {
    transform: translateX(-100px);
}

.show {
    opacity: 1;
    transform: translateX(0);
}

.tile:hover {
    transform: scale(1.05);
    background-color: #f8bbd0;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a; /* Dark background */
        color: #fff; /* White text */
    }

    .container {
        background-color: #282828; /* Darker container background */
        border: 2px solid #fff; /* White border */
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); /* Soft white shadow */
    }

    .tile {
        background-color: #3b3b3b; /* Dark tile color */
        color: #fff; /* White text */
        border: 2px solid #fff; /* White outline */
    }

    .tile:hover {
        background-color: #555; /* Slightly lighter hover effect */
    }
}

/* Media Queries for smaller screens */
@media (max-width: 768px) {
    .profile img {
        width: 25vw;
        max-width: 100px;
    }

    .tile {
        font-size: 3.5vw;
        max-font-size: 18px;
    }

    header h1 {
        font-size: 4.5vw;
        max-font-size: 22px;
    }

    header p {
        font-size: 3vw;
        max-font-size: 16px;
    }
}

@media (max-width: 480px) {
    .tile {
        height: auto;
        padding: 12px;
    }

    header h1 {
        font-size: 5vw;
        max-font-size: 18px;
    }

    header p {
        font-size: 3.5vw;
        max-font-size: 14px;
    }
}

/* Warning Banner Styles */
.warning-banner {
    position: fixed;
    top: -100px; /* Hidden above the viewport */
    left: 0;
    right: 0;
    background-color: red;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 9999;
    transition: top 0.5s ease;
}

/* Show the banner by sliding down */
.warning-banner.show {
    top: 0; /* Slide the banner down */
}

/* Close Button Styles */
.close-btn {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
}

.close-btn:hover {
    color: #f8bbd0; /* Optional: Change color on hover */
}