@font-face {
    font-family: 'Google Sans';
    src: url('GoogleSans-Regular.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Google Sans', sans-serif;
    font-weight: bold;
}

body, html {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
    color: white;
}

#background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
}

/* Gradient overlay for readability */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Clock and Weather */
.clock-weather-container {
    position: absolute;
    bottom: 50px;
    right: 60px;
    z-index: 3;
    display: flex;
    align-items: baseline;
    gap: 15px;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.4);
}

.weather-info {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-display {
    font-size: 7rem;
    letter-spacing: -2px;
}

/* Settings Trigger (Hidden until hover) */
.settings-trigger {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.settings-trigger:hover {
    opacity: 1;
    color: white;
}

/* Settings Modal */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.settings-modal.show {
    opacity: 1;
    pointer-events: all;
}

.settings-content {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
}

.close-btn:hover {
    opacity: 1;
}

.settings-content h2 {
    margin-bottom: 20px;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #ccc;
}

input[type="text"], select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 1rem;
    outline: none;
}

input[type="text"]:focus, select:focus {
    border-color: #4285f4;
}

.input-with-button {
    display: flex;
    gap: 10px;
}

.input-with-button button {
    padding: 0 15px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.input-with-button button:hover {
    background: #3367d6;
}

#weather-status {
    display: block;
    margin-top: 5px;
    color: #aaa;
    font-size: 0.8rem;
}

input[type="file"] {
    color: #ccc;
}

.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.preview-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}
