html {
-webkit-user-select: none; /* Safari */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixé, fonctionne sur la plupart des navigateurs modernes */
}
#swissphone-container {
display: none;
position: fixed;
bottom: 5%;
right: 5%;
width: 25%;
height: 30%;
animation: fadeInAnimation 0.5s ease-out forwards;
opacity: 0;
}
#swissphone-background {
width: 100%;
height: 100%;
background-image: url('images/BIRDY-4G-LTE.png');
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
@keyframes shakeAnimation {
0% { transform: translate(0, 0); }
20% { transform: translate(-2px, 2px); }
40% { transform: translate(2px, -2px); }
60% { transform: translate(-2px, -2px); }
80% { transform: translate(2px, 2px); }
100% { transform: translate(0, 0); }
}
.shake {
animation: shakeAnimation 0.5s infinite;
}
@keyframes fadeInAnimation {
0% {
opacity: 0;
transform: scale(0.8);
}
100% {
opacity: 1;
transform: scale(1);
}
}
#swissphone-screen {
position: absolute;
top: 21%;
left: 15%;
width: 69%;
height: 37%;
overflow: hidden;
border: 2px solid #000;
background-color: #0c380c;
filter: brightness(0.8) contrast(1.2) saturate(0.7) sepia(0.3) hue-rotate(60deg);
display: flex;
justify-content: center;
align-items: center;
}
#screen-message {
color: #000000;
font-family: monospace, Courier, sans-serif; /* Police monospace pour le style vieux écran */
font-size: 1.0vw; /* Taille de police en fonction de la largeur de la fenêtre */
font-weight: bold;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
}
#reset-button, #disable-button, #enable-button, #volup-button, #voldown-button, #nextsound-button, #backsound-button {
position: absolute;
background-color: transparent;
border: none;
border-radius: 5px;
cursor: pointer;
opacity: 0;
transition: opacity 0.3s;
}
#reset-button:hover, #disable-button:hover, #enable-button:hover, #volup-button:hover, #voldown-button:hover, #nextsound-button:hover, #backsound-button:hover {
opacity: 0.2;
}
#reset-button:before, #disable-button:before, #enable-button:before, #volup-button:before, #voldown-button:before, #nextsound-button:before, #backsound-button:before {
position: absolute;
top: -30px;
left: 50%;
transform: translateX(-50%);
padding: 5px;
background-color: rgba(0, 0, 0, 0.8);
color: #fff;
font-size: 12px;
border-radius: 5px;
visibility: hidden;
opacity: 0;
transition: opacity 0.3s, visibility 0.3s;
}
#reset-button:hover:before, #disable-button:hover:before, #enable-button:hover:before, #volup-button:hover:before, #voldown-button:hover:before, #nextsound-button:hover:before, #backsound-button:hover:before {
visibility: visible;
opacity: 1;
}
#reset-button {
width: 20%;
height: 18%;
bottom: 11%;
left: 67%;
}
#reset-button:before {
content: "Reset";
}
#enable-button {
width: 20%;
height: 18%;
bottom: 11%;
left: 11%;
}
#enable-button:before {
content: "Activer / Désactiver";
}
#volup-button {
width: 15%;
height: 7%;
bottom: 25%;
left: 42%;
}
#volup-button:before {
content: "Vol+";
}
#voldown-button {
width: 15%;
height: 7%;
bottom: 9%;
left: 42%;
}
#voldown-button:before {
content: "Vol-";
}
#nextsound-button {
width: 7%;
height: 15%;
bottom: 11%;
left: 58%;
}
#nextsound-button:before {
content: "Suivant";
}
#backsound-button {
width: 7%;
height: 15%;
bottom: 11%;
left: 35%;
}
#backsound-button:before {
content: "Précédent";
}