← Kapat
style.css
/* Genel Stiller */
body {
font-family: Arial, sans-serif;
height: 100vh;
margin: 0;
background-color: #2b2b2b;
color: #fff;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
#icerik {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
/* Veri Alanı */
#veriAlani {
width: 60px;
height: 16px;
border: 2px solid #444;
border-radius: 12px;
background-color: #1e1e1e;
padding: 10px;
overflow-y: auto;
text-align: center;
font-size: 12px;
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
display: block;
margin-left: auto;
margin-right: auto;
}
/* Kumanda */
.kumanda {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
gap: 3vw;
background-color: #1e1e1e;
padding: 20px;
border-radius: 20px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
position: relative;
width: 80vw;
}
/* Düğme Stilleri */
.butonlar {
display: grid;
grid-template-columns: 10vw 10vw 10vw;
grid-template-rows: 10vw 10vw 10vw;
}
.butonlar button {
width: 10vw;
height: 10vw;
font-size: 20px;
font-weight: bold;
border: none;
border-radius: 35%;
background-color: #4caf50;
color: white;
cursor: pointer;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
transition: transform 0.2s, background-color 0.3s;
}
.butonlar button:hover {
background-color: #3e8e41;
transform: scale(1.1);
}
.butonlar button:active {
transform: scale(0.9);
background-color: #2e7033;
}
#ileriBtn {
grid-column: 2;
grid-row: 1;
}
#geriBtn {
grid-column: 2;
grid-row: 3;
}
#sagBtn {
grid-column: 3;
grid-row: 2;
}
#solBtn {
grid-column: 1;
grid-row: 2;
}
/* Çubuk Alanı */
.cubuk-alani {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
padding: 10px;
background-color: #2b2b2b;
border: 2px solid #444;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
width: -webkit-fill-available;
}
.cubuk-alani input[type="range"] {
-webkit-appearance: none;
width: 100%;
height: 6px;
background: #444;
border-radius: 5px;
outline: none;
transition: background 0.3s;
}
.cubuk-alani input[type="range"]:hover {
background: #555;
}
.cubuk-alani input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 32px;
height: 32px;
background: #4caf50;
border-radius: 50%;
cursor: pointer;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.cubuk-alani input[type="range"]::-moz-range-thumb {
width: 16px;
height: 16px;
background: #4caf50;
border-radius: 50%;
cursor: pointer;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.cubuk-alani p {
font-size: 14px;
font-weight: bold;
margin: 0;
color: #ddd;
}
#dikey-cubuk-alani {
width: 3vw;
height: 70vh;
display: grid;
align-items: center;
justify-content: center;
gap: 20px;
place-items: center;
/* İçeriği yatay ve dikey olarak ortalar */
grid-template-columns: 8vw;
grid-template-rows: 60vh 5vh;
}
/* Dikey Çubuk */
#dikey-cubuk {
transform: rotate(-90deg);
width: 60vh;
}