:root {
    /* Variables pour les 5 couleurs du gradient */
    --color1: #4158D0;
    --color2: #C850C0;
    --color3: #FFCC70;
    --color4: #43CBFF;
    --color5: #70FF94;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(-45deg, var(--color1), var(--color2), var(--color3), var(--color4), var(--color5));
    background-size: 800% 800%;
    animation: gradient 90s ease infinite;
    padding: 20px;
    border: 10px solid rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    width: 100%;
    max-width: 600px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.info-box {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    justify-content: space-between;
}

.info-item:last-child {
    margin-bottom: 0;
}

.label {
    margin-right: 10px;
    font-weight: bold;
}

.value {
    font-weight: bold;
    color: rgba(0, 0, 0, 0.2);
}

.unit {
    color: #777;
}

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #2c7be5;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #1a68d1;
}

/* Pilules pour les dimensions */
.pill {
    position: fixed;
    color: rgb(0 0 0 / 50%);
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
}

.pill-top {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.pill-right {
    right: 40px;
    top: 50%;
    transform: translateY(50%) rotate(90deg);
    transform-origin: right center;
}

/* Affichage de la résolution au centre */
.resolution-display {
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

/* Coin d'information en bas à gauche */
.info-corner {
    position: fixed;
    color: rgba(0, 0, 0, 0.2);
}

.info-corner-left {
    bottom: 20px;
    left: 20px;
}

/* Bouton plein écran */
.btn-fullscreen {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
    transition: background-color 0.3s, transform 0.2s;
}

.btn-fullscreen:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
} 