﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    overflow: hidden;
    min-height: 100vh;
    width: 100%;
}

/* Page Navigation */
.page {
    display: none;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.page.active {
    display: flex;
    z-index: 10;
}

/* HOME PAGE */
#homePage {
    padding: 0;
    flex-direction: column;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

.container {
    max-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
    padding: 20px;
    margin: 0;
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(255, 100, 200, 0.8);
    color: #ff64c8;
    flex-shrink: 0;
}

/* Elements Container - Allows random positioning */
.elements-container {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - 100px);
    perspective: 1000px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* ===== 12 FANCY BUTTONS ===== */
.fancy-btn {
    position: absolute;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.fancy-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.fancy-btn:active {
    transform: scale(0.95);
}

.btn-label {
    display: block;
    transition: transform 0.2s ease;
}

.fancy-btn:hover .btn-label {
    transform: rotate(10deg) scale(1.2);
}

/* Button Size Variations - Each button has unique size */
.btn-style-1 {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #764ba2;
}

.btn-style-2 {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: 2px solid #f5576c;
}

.btn-style-3 {
    width: 75px;
    height: 75px;
    font-size: 2rem;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: 2px solid #00f2fe;
}

.btn-style-4 {
    width: 85px;
    height: 85px;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    border: 2px solid #38f9d7;
}

.btn-style-5 {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    border: 2px solid #fee140;
}

.btn-style-6 {
    width: 95px;
    height: 95px;
    font-size: 2.4rem;
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    border: 2px solid #330867;
}

.btn-style-7 {
    width: 65px;
    height: 65px;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border: 2px solid #fed6e3;
}

.btn-style-8 {
    width: 110px;
    height: 110px;
    font-size: 2.8rem;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%);
    border: 2px solid #ff6a88;
}

.btn-style-9 {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #2e2e78 0%, #6a5acd 100%);
    border: 2px solid #6a5acd;
}

.btn-style-10 {
    width: 90px;
    height: 90px;
    font-size: 2.3rem;
    background: linear-gradient(135deg, #ff6348 0%, #ff7f50 100%);
    border: 2px solid #ff7f50;
}

.btn-style-11 {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    background: linear-gradient(135deg, #91eae9 0%, #86a8e7 100%);
    border: 2px solid #86a8e7;
}

.btn-style-12 {
    width: 105px;
    height: 105px;
    font-size: 2.6rem;
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    border: 2px solid #f12711;
}

/* ===== 2 MOVING METERS ===== */
.meter {
    position: absolute;
    width: 120px;
    text-align: center;
}

.meter-label {
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffaa00;
    font-weight: bold;
}

.meter-body {
    width: 120px;
    height: 80px;
    background: radial-gradient(circle at 50% 100%, #222, #111);
    border: 3px solid #ffaa00;
    border-radius: 50% 50% 0 0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.5);
}

.meter-needle {
    position: absolute;
    width: 3px;
    height: 50px;
    background: linear-gradient(to top, #ffaa00, #ffee00);
    bottom: 10px;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(var(--angle));
    animation: meterMove 3s infinite ease-in-out;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.8);
}

.meter-scale {
    position: absolute;
    bottom: 5px;
    width: 100%;
    font-size: 0.6rem;
    color: #666;
}

@keyframes meterMove {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) rotate(90deg); }
}

/* ===== 3 DIALS ===== */
.dial {
    position: absolute;
    width: 100px;
    text-align: center;
}

.dial-label {
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00ff88;
    font-weight: bold;
}

.dial-body {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, #333, #111);
    border: 4px solid #00ff88;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5), inset -5px -5px 15px rgba(0, 0, 0, 0.8);
}

.dial-center {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #00ff88;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.dial-indicator {
    position: absolute;
    width: 2px;
    height: 35px;
    background: linear-gradient(to top, #00ff88, transparent);
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg);
    animation: dialSpin 4s linear infinite;
    border-radius: 2px;
}

@keyframes dialSpin {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

/* ===== 4 SWITCHES ===== */
.switch {
    position: absolute;
    width: 70px;
    text-align: center;
}

.switch-label {
    font-size: 0.7rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff00ff;
    font-weight: bold;
}

.switch-toggle {
    width: 50px;
    height: 70px;
    background: linear-gradient(to right, #1a1a2e, #16213e);
    border: 3px solid #ff00ff;
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    margin: 0 auto;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.switch-toggle::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #ff00ff, #ff88ff);
    border-radius: 3px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: switchFlip 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.7);
}

@keyframes switchFlip {
    0%, 100% { transform: translate(-50%, -50%) rotateX(0deg); }
    50% { transform: translate(-50%, -50%) rotateX(45deg); }
}

/* ===== 2 PLUG SOCKETS ===== */
.plug-socket {
    position: absolute;
    width: 90px;
    text-align: center;
}

.socket-label {
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00ffff;
    font-weight: bold;
}

.socket-holes {
    width: 70px;
    height: 50px;
    background: linear-gradient(135deg, #222, #111);
    border: 2px solid #00ffff;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 0 auto;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9);
}

.hole {
    width: 12px;
    height: 20px;
    background: radial-gradient(ellipse, #000, #1a1a1a);
    border: 1px solid #00ffff;
    border-radius: 2px;
    position: relative;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
}

.hole::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), transparent);
    animation: socketGlow 1.5s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes socketGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* ===== PICTURE PAGE ===== */
.picture-page {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow: hidden !important;
}

.page.active.picture-page {
    display: flex !important;
}

.home-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #764ba2;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.home-btn:active {
    transform: translateY(-1px);
}

.picture-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    flex-grow: 1;
}

.picture-frame {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
}

.picture-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

/* Fancy Frame Decorations */
.frame-decoration {
    position: absolute;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
}

.frame-top {
    top: -15px;
    left: -15px;
    right: -15px;
    height: 15px;
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8), inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

.frame-bottom {
    bottom: -15px;
    left: -15px;
    right: -15px;
    height: 15px;
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8), inset 0 -2px 5px rgba(255, 255, 255, 0.2);
}

.frame-left {
    top: -15px;
    left: -15px;
    bottom: -15px;
    width: 15px;
    background: linear-gradient(180deg, #ff00ff, #00ffff, #ff00ff);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8), inset 2px 0 5px rgba(255, 255, 255, 0.2);
}

.frame-right {
    top: -15px;
    right: -15px;
    bottom: -15px;
    width: 15px;
    background: linear-gradient(180deg, #ff00ff, #00ffff, #ff00ff);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8), inset -2px 0 5px rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .fancy-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .meter, .dial, .switch, .plug-socket {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    .fancy-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    h1 {
        font-size: 1.4rem;
    }

    .meter, .dial, .switch, .plug-socket {
        transform: scale(0.7);
    }

    .picture-page {
        padding: 80px 10px 20px;
    }

    .picture-image {
        max-height: 60vh;
    }
}
