
/* Base Styles & Mobile First Reset */
*{
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: #111;
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
overflow: hidden;
background-image:url('images/dealornodeal4.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-position: left;
background-size: 100% 100%;
}
h1 {
font-size: 1.5rem;
margin-bottom: 5px;
text-align: center;
letter-spacing: 2px;
}
/* Score & Lives Header Banner */
.metrics-bar {
display: flex;
gap: 25px;
font-family: monospace;
font-size: 1.2rem;
margin-bottom: 12px;
}
.metric-box span {
color: #ff5722;
font-weight: bold;
}
.metric-box {
color: black;
font-weight: bold;
}
/* Game Arena Canvas Container */
.game-wrapper {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
}
canvas {
background-color: #000;
border: 4px solid #fff;
display: block;
max-width: 95vw;
max-height: 65vh;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}
/* Desktop Controls Visual Cue */
.controls-info {
font-family: sans-serif;
margin-top: 15px;
font-size: 0.9rem;
color: #474747;
text-align: center;
}
/*
Mobile Controls Console Overlay
*/
.mobile-touch-deck {
display: none;
position: absolute;
bottom: -120px;
width: 100%;
justify-content: space-between;
padding: 0 5px;
z-index: 10;
}
.btn-group {
display: flex;
gap: 8px;
width: 48%;
}
.touch-pad {
height: 65px;
background-color: rgba(255, 255, 255, 0.15);
border: 2px solid #fff;
color: #fff;
font-size: 1.1rem;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
border-radius: 12px;
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
}
.half-btn {
width: 48%;
}
.fire-btn {
background-color: rgba(255, 0, 0, 0.2);
border-color: #ff3333;
}
.touch-pad:active {
background-color: rgba(255, 57, 34, 0.3);
border-color: #ff5722;
}
.fire-btn:active {
background-color: rgba(255, 0, 0, 0.5);
border-color: #ff3333;
}
#main {
height: fit-content;
width: fit-content;
}
#olka {
color: white;
font-size: 30px;
padding-left: 20px;
margin-top: auto;
margin-bottom: auto;
}
#cas, #cass, #cassa, #cussa {
margin-left: auto;
margin-right: auto;
width: 100%;
}
#jeal {
background-color: black;
height: 110px;
width: 200px;
border: 15px solid rgb(18, 125, 187);
margin-top: 10px;
margin-left: auto;
margin-right: auto;
border-radius: 20px;
align-content: center;
animation-duration: 2s;
animation-fill-mode: forwards;
animation-timing-function: linear;
animation-name: nama;
animation-iteration-count: infinite;
}
@keyframes nama {
25% {border-right: 15px solid rgb(0, 47, 255);}
50% {border-bottom: 15px solid rgb(0, 47, 255);}
75% {border-left: 15px solid rgb(0, 47, 255);}
100% {border-top: 15px solid rgb(0, 47, 255);}
}
@keyframes nama2 {
25% {border-right: 15px solid yellow;}
50% {border-bottom: 15px solid yellow; }
75% {border-left: 15px solid yellow;}
100% {border-top: 15px solid yellow; }
}
#ddbtn {
height: 50px;
width: 330px;
display: grid;
grid-template-columns: 50% 50%;
column-gap: 10px;
margin-left: auto;
margin-right: auto;
margin-top: 20px;
}
#dealbtn {
background-color: rgb(66, 165, 245);
font-weight: 545;
font-size: 16px;
color: black;
border-radius: 10px;
height: 100%;
width: 100%;
}
#nodealbtn {
background-color: red;
font-weight: 545;
font-size: 16px;
color: black;
border-radius: 10px;
height: 100%;
width: 100%;
}
#dealbtn:hover, #nodealbtn:hover {
opacity: 0.6;
}
#rrbtn {
height: 50px;
width: 330px;
display: grid;
grid-template-columns: 50% 50%;
column-gap: 10px;
margin-left: auto;
margin-right: auto;
margin-top: 20px;
}
#realbtn {
background-color: rgb(66, 165, 245);
font-weight: 535;
font-size: 16px;
color: black;
border-radius: 10px;
height: 100%;
width: 100%;
}
#norealbtn {
background-color: red;
font-weight: 535;
font-size: 16px;
color: black;
border-radius: 10px;
height: 100%;
width: 100%;
}
#realbtn:hover, #norealbtn:hover {
opacity: 0.6;
}
#offer {
background-color: transparent;
display:none;
height: 250px;
width: 416px;
margin-left: auto;
margin-right: auto;
margin-top: 80px;
}
#big {
height: 100px;
width: fit-content;
background-color: transparent;
font-size: 70px;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
color: rgb(33, 150, 243);
margin-left: auto;
margin-right: auto;
padding-top: 10px;
margin-bottom: 0px;
}
#yourscore {
display: none;
margin-left: 30px;
font-size: 25px;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
#reli {
font-size: 22px;
margin-bottom: 0px;
margin-left: auto;
margin-right: auto;
text-align: center;
color:black;
}
/*
Requested Responsive Media Breakpoints
*/
/* 1. Micro Phones / Small Viewports (0px 320px) */
@media screen and (max-width: 320px) {
body { justify-content: flex-start; padding-top: 10px; }
h1 { font-size: 1.1rem; }
.metrics-bar { font-size: 1rem; margin-bottom: 6px; }
canvas { border-width: 2px; }
.controls-info { display: none; }
.mobile-touch-deck { display: flex; bottom: -85px; }
.touch-pad { height: 50px; font-size: 0.9rem; border-radius: 8px; }
#offer {
background-color: transparent;
display:none;
height: 250px;
width: 100%;
margin-left: auto;
margin-right: auto;
transform: scale(0.60);

margin-top: 0px;
}
#rrbtn {width: 100%;}
#big {
height: 60px;
width: fit-content;
background-color: transparent;
font-size: 20px;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
color: rgb(33, 150, 243);
margin-left: auto;
margin-right: auto;
padding-top: 10px;
margin-bottom: 0px;
}
}
/* 2. Compact Smartphones (321px 365px) */
@media screen and (min-width: 321px) and (max-width: 365px) {
body { justify-content: flex-start; padding-top: 15px; }
.metrics-bar { font-size: 1.1rem; }
canvas { border-width: 2.5px; }
.controls-info { display: none; }
.mobile-touch-deck { display: flex; bottom: -95px; }
.touch-pad { height: 55px; }
#offer {
background-color: transparent;
display:none;
height: 250px;
width: 100%;
margin-left: auto;
margin-right: auto;
transform: scale(0.70);

margin-top: 0px;
}
#big {
height: 60px;
width: fit-content;
background-color: transparent;
font-size: 25px;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
color: rgb(33, 150, 243);
margin-left: auto;
margin-right: auto;
padding-top: 10px;
margin-bottom: 0px;
}
}

/* 3. Medium Smartphones (366px 375px) */
@media screen and (min-width: 366px) and (max-width: 375px) {
body { justify-content: flex-start; padding-top: 20px; }
.controls-info { display: none; }
.mobile-touch-deck { display: flex; bottom: -105px; }
#offer {
background-color: transparent;
display:none;
height: 250px;
width: 100%;
margin-left: auto;
margin-right: auto;
transform: scale(0.80);

margin-top: 0px;
}
#big {
height: 60px;
width: fit-content;
background-color: transparent;
font-size: 30px;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
color: rgb(33, 150, 243);
margin-left: auto;
margin-right: auto;
padding-top: 10px;
margin-bottom: 0px;
}
}
/* 4. Large Smartphones (376px 400px) */
@media screen and (min-width: 376px) and (max-width: 400px) {
body { justify-content: flex-start; padding-top: 25px; }
.controls-info { display: none; }
.mobile-touch-deck { display: flex; bottom: -115px; }
#offer {
background-color: transparent;
display:none;
height: 250px;
width: 100%;
margin-left: auto;
margin-right: auto;
transform: scale(0.80);

margin-top: 0px;
}
#big {
height: 60px;
width: fit-content;
background-color: transparent;
font-size: 35px;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
color: rgb(33, 150, 243);
margin-left: auto;
margin-right: auto;
padding-top: 10px;
margin-bottom: 0px;
}
}
/* 5. Phablets / Small Tablets (401px 600px) */
@media screen and (min-width: 401px) and (max-width: 600px) {
body { justify-content: flex-start; padding-top: 30px; }
.controls-info { display: none; }
.mobile-touch-deck { display: flex; bottom: -125px; }
.touch-pad { height: 70px; }
#offer {
background-color: transparent;
display:none;
height: 250px;
width: 416px;
margin-left: auto;
margin-right: auto;
transform: scale(0.90);
}
#big {
height: 60px;
width: fit-content;
background-color: transparent;
font-size: 40px;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
color: rgb(33, 150, 243);
margin-left: auto;
margin-right: auto;
padding-top: 10px;
margin-bottom: 0px;
}
}
/* 6. Tablets / Laptops (601px 1200px) */
@media screen and (min-width: 601px) and (max-width: 1200px) {
.metrics-bar { font-size: 1.3rem; }
.controls-info { font-size: 0.85rem; }
#offer {
background-color: transparent;
display:none;
height: 250px;
width: 416px;
margin-left: auto;
margin-right: auto;
}
#big {
height: 60px;
width: fit-content;
background-color: transparent;
font-size: 40px;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
color: rgb(33, 150, 243);
margin-left: auto;
margin-right: auto;
padding-top: 10px;
margin-bottom: 0px;
}
}
/* 7. Desktop Monitors (1201px 1500px) */
@media screen and (min-width: 1201px) and (max-width: 1500px) {
.metrics-bar { font-size: 1.4rem; margin-left: 25px;}
.controls-info { font-size: 1rem; }
}
