.ref {
    display: none;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #c98bd5;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #c98bd5;
}

#container {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

#drag-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: transparent;
    cursor: grab;
}

#drag-background:active {
    cursor: grabbing;
}

/* .phone-frame {
    position: absolute;
    width: 35rem; 
    height: 73.75rem; 
    background: linear-gradient(135deg, #111, #222, #111);
    border-radius: 3.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 .25rem 1.25rem rgba(0, 0, 0, 0.7);
    transform-origin: center;
    transition: transform 0.3s ease; 
} */

/* Power off: Screen fades to black */
.screen-off {
    background: black !important;
    position: relative;
}

/* Power on: Screen fades back in */
.screen-on {
    animation: fade 0.5s ease-in-out forwards;
}

/* Fade-in animation (powering on) */
@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hide all app elements inside */
.screen-off * {
    visibility: hidden;
}

/* Prevent accidental clicks when the screen is off */
.screen-off .app-screen {
    display: none !important;
}

/* Notch */
.notch {
    position: absolute;
    width: 10rem;
    height: 1.875rem;
    background: black;
    border-radius: 1.25rem;
    z-index: 10;
}

.volume-buttons {
    position: absolute;
    left: -0.4375rem;
    top: 15.625rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    z-index: -1;
}

.volume-up,
.volume-down {
    width: 0.5rem;
    height: 5.625rem;
    background: #1f1f20;
    border-radius: 0.25rem;
}

.power-button, .volume-up, .volume-down {
    box-shadow: inset -0.125rem -0.125rem 0.25rem rgba(180, 180, 180, 0.2),
                inset 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

.phone {
    width: 33.5rem;
    height: 72.625rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 3.125rem;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 5rem rgba(255, 255, 255, 0.2),
                0 0.5rem 1.25rem rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.time-display {
    position: absolute;
    top: 0.9375rem;  
    left: 3.75rem; 
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: white; 
    font-weight: bold;
    z-index: 3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.home-screen {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 1.25rem;
    padding: 2.5rem;
    margin-top: 2.5rem;
    height: 100%;
    justify-items: center;
}

.app {
    width: 6.25rem;
    height: 6.25rem;
    background-color: white;
    border-radius: 1.375rem;
    display: inline-block;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    transition: transform 0.2s ease-in-out;
    flex-direction: column;
    text-align: center;
}

.app:active {
    transform: scale(0.9);
}

.app-name {
    margin-top: 0.3125rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    color: white;
    font-weight: bold;
}

.app-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: none;
    overflow: hidden;
    border-radius: 3.125rem;
}

.app img {
    width: 100%;
    height: 100%;
    border-radius: 1.125rem;
}

.app:hover {
    transform: scale(1.1);
}

/* Specific Background Colors for Each App */
.aboutme {
    background-color: #2ecc71;
}

.weather {
    background-color: #3498db;
}

.music {
    background-color: #c967e2;
}

.claybeats {
    background-color: #ecbd67;
}

.calculator {
    background-color: #000000;
}

.settings {
    background-color: #737373;
}


.swipe-bar {
    position: absolute;
    bottom: 0.9375rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6.25rem;
    height: 0.3125rem;
    background: rgba(255, 255, 255);
    border-radius: 0.3125rem;
    cursor: grab;
    transition: opacity 0.2s ease-in-out;
    user-select: none; /* Prevent text selection */
    box-shadow: 0 .25rem 1.25rem rgba(0, 0, 0, 0.67);
}

/* Hide scrollbars inside iframes */
.frame {
    position: absolute;
    width: 100%;
    height: 110%;
    border: none;
    transform: translateY(-3.125rem);
}

.aboutmeframe {
    width: 104%;
    height: 110%;
}

.musicframe {
    width: 100%;
    height: 108%;
}

.carframe {
    width: 100%;
    height: 105%;
}

.weatherframe {
    width: 100%;
    height: 109%;
}

.calframe {
    width: 100%;
    height: 109%;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(100px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(100px); }
}

.settings-container {
    padding: 20px;
    color: #000; /* Default text color */
    background-color: #eeeeee; /* Default background color */
    border-radius: 20px;
    margin: 40px;
    box-shadow: 0 4px 10px rgba(242, 242, 242, 0.1);
}

.settings-header {
    text-align: center;
    margin-bottom: 20px;
}

.settings-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.settings-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0; /* Divider line */
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
}

.settings-item span {
    font-size: 16px;
    color: #000; /* Item text color */
}

.settings-value {
    color: #888; /* Lighter text for values */
    font-size: 18px; /* Larger arrow icon */
}

/* Brightness and Volume Sliders */
input[type="range"] {
    width: 100px;
    margin-left: 10px;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #007bff;
}

input:checked + .slider:before {
    transform: translateX(16px);
}

.wallpaper-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.wallpaper-preview {
    width: 300px;
    height: 600px;
    background-size: cover;
    background-position: center;
    margin-bottom: 10px;
    border-radius: 10px;
}

.wallpaper-modal select {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

.wallpaper-modal button {
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
}

.wallpaper-modal button:hover {
    background-color: #0056b3;
}

.mobile-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.mobile-message h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #c98bd5;
}

.mobile-message p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    max-width: 80%;
}



.continue-button {
    margin-top: 2rem;
    padding: 12px 24px;
    background-color: #c98bd5;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.continue-button:active {
    transform: scale(0.95);
}