@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Press+Start+2P&display=swap');

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

}


body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #222;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/namik.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;

}


#game-area {
    width: 100%;
    max-width: 800px;
    height: 600px;
    position: relative;
    background-color: #000;


    background-image: url('../images/background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    border: 4px solid #fff;
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
}


#game-stats {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 30px;
    z-index: 100;
}


#score-board {
    position: absolute;
    left: 20px;
    color: rgb(255, 255, 255);
    font-size: 20px;
    font-weight: bold;
}


#level {
    position: absolute;
    left: 180px;
    color: #ff0000;
    font-size: 20px;
    font-weight: bold;
}

#timer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 20px;
    font-weight: bold;
}


#lives {
    position: absolute;
    right: 20px;
    display: flex;
}


#start-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    color: white;
    font-size: 30px;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 20;
}

#paddle {
    width: 130px;
    height: 20px;
    background-color: #0f0;
    position: absolute;
    bottom: 20px;

    border-radius: 10px;

    background-image: url('../images/paddle.png');


    background-size: 100% 100%;
    background-color: transparent;
    z-index: 1;
}


#ball {
    width: 21px;
    height: 21px;
    background-color: red;
    border-radius: 100%;
    position: absolute;
    top: 0px;
    background-image: url('../images/ball.png');
    background-size: 100% 100%;
    box-shadow: 0 0 10px #ffcc00, 0 0 25px #ff6600;

    z-index: 3;
}


#bricks-container {
    position: relative;
    width: 100%;
    height: 100%;
}


.brick {
    position: absolute;

    border: 2px solid #000000;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin: 0;
    background-image: url('../images/brick.png');
    background-size: 100% 100%;
    border-radius: 5px;
}

.brick-metal {
    position: absolute;

    border: 2px solid #000000;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin: 0;
    background-image: url('../images/metalbrick.png');
    background-size: 100% 100%;
    border-radius: 5px;
}

.brick-super {
    position: absolute;

    border: 2px solid #000000;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin: 0;
    background-image: url('../images/drakcbrick.png');
    background-size: 100% 100%;
    border-radius: 5px;
}

#pause_continue_messege {
    display: none;
    position: absolute;

    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);

    color: white;
    font-size: 20px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 50;
    text-align: center;
    width: auto;
}

#footer-socials {
    position: absolute;
    bottom: 30px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
}

#footer-socials p {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.dev-name {
    color: #ffcc00;
    font-weight: bold;
}


.icons a {
    text-decoration: none;
    margin: 0 10px;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.icons a:hover {
    transform: scale(1.2)
}


.icons a:hover .fa-linkedin {
    color: #0077b5;
}

.icons a:hover .fa-github {
    color: #6e5494;
}

.icons a:hover .fa-instagram {
    color: #e1306c;
}


.modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;


    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.modal-content {
    background-color: #222;
    border: 4px solid #fff;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    min-width: 300px;
}

#modal-title {
    color: #ffcc00;
    font-size: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

#modal-text {
    color: #fff;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.5;
}

#modal-btn {
    background-color: #0f0;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 30px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.2s;
}

#modal-btn:hover {
    transform: scale(1.1);
    background-color: #fff;
}

@media (max-width: 800px) {


    #game-area {
        top: 0;
        width: 95%;
        height: 55vh;
        max-width: none;
        margin: 0 auto;
        border: 2px solid #fff;
    }


    #start-message {
        top: 65%;
        width: 90%;
        font-size: 18px;

    }


    #pause_continue_messege {
        bottom: 5vh;
        font-size: 16px;
        padding: 10px;
        width: 80%;
        background: rgba(0, 0, 0, 0.85);
        border: 1px solid #ffcc00;
    }


    #footer-socials {
        display: none;
    }

#game-stats {
        width: 100%;
        display: flex;            
        justify-content: space-between; 
        align-items: center;      
        padding: 0 10px;          
        
        
        transform: none; 
        top: 5px;
    }

   
    #score-board, 
    #level, 
    #timer, 
    #lives {
        position: relative;  
        left: auto;          
        right: auto;
        top: auto;
        transform: none;     
        
        font-size: 12px;     
        margin: 0;           
    }

    
    #level {
  color: #ff0000;
    }
    
    
    

    #timer {
        color: #ffcc00; 
    }
    #lives {
        right: 2px;
    }
}