/*rule page*/

#p-rule {
    margin-top: 30px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: Arial, sans-serif;
}

/* Futuristic Monitor Styling */
.monitor {
    margin-top: 10px;
    width: 1000px;
    height: 600px;
    background: linear-gradient(135deg, #000000, #000000);
    border: 5px solid #00eeff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 255, 0.6);
}

.cont{
    color: white;
    height: 600px;
    padding:30px;
    background-color: #000;
    font-family: 'Share Tech Mono';
 
}

.cont h1{
    font-family: 'Doto';
}


.screen {
    font-family: Doto;
    width: 95%;
    height: 95%;
    background: #000;
    
    margin: 25px auto;
    border-radius: 10px;
    overflow: hidden;
    color: #fff;
    font-size: 24px;
    border: 5px solid #00eeff;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.6);
    height: 500px;
}

.screen.off {
    height: 540px;

}

/* Stand Styling */
.base1 {
    width: 180px;
    height: 120px;
    background: linear-gradient(135deg, #000000, #000000);
    border: 5px solid #00eeff;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
}

.base {
    display: flex;
    align-items: center;
    width: 500px;
    height: 20px;
    border: 5px solid #00eeff;
    background: linear-gradient(135deg, #000000, #000000);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Keyboard and Mouse Container */
.input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    width: 1000px;
    margin-left: 200px;
   
}

.keyboard {
    background-color: #333;
    border-radius: 10px;
    padding: 10px;
    color: #fff;
    width: fit-content;
    transform: scale(1.1); 
    margin-top: 20px;
    width: 800px;
}

.key-row {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.key {
    background-color: #444;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 8px;
    margin: 2px;
    font-size: 12px; 
    width: 50px; 
    text-align: center;
    display:flex;
    align-items: center;
    justify-content: center;
  
}
.key.wide {
    width: 90px; 
}

.key.space {
    width: 280px; 
}

.key:hover {
    background-color: #555;
    cursor: pointer;
}

/* Mouse Styling */
.mouse {
    width: 60px;
    height: 90px;
    background: linear-gradient(135deg, #2c2f33, #1c1e22);
    border-radius: 40px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    margin-left: 100px;
    display: flex;
    
    
}

.scroll-wheel {
    width: 15px;
    height: 25px;
    background: #666;
    border-radius: 10px;
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
}


/* Animation */


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.screen.animate-content {
    animation: fadeIn 1s ease-in-out;
}

@media (max-width:480px){
    /*rule*/
    
    .monitor {
        margin-top: 10px;
        width: 90%;
        max-width: 600px; 
        height: 300px; 
        position: relative;
        overflow: hidden;
    }
    
    .screen {
        width: 90%; 
        height: 350px;
        font-size: 24px;
        overflow: hidden;
    }
    
    .screen.off {
        height: 250px;
        overflow: hidden; 
    }

    .cont {
        color: white;
        height: 90%;
        max-height:50%; 
        padding: 5%; 
        background-color: #000;
        font-family: 'Share Tech Mono';
    }
    
    .cont h1 {
        text-align: center;
        font-family: 'Doto';
        font-size: 0.8em; 
    }

    .cont p{
        font-size: 15px;
    }

    .base1{
        width: 50px;
        height: 40px;
    }

    .base{
        width: 200px;
    }

    .input-container{
        width: 300px;
        margin-left: 0;
    }

    .keyboard{
        width: 300px;
        height: 140px;
        margin-left: 0;
    }

    .key{
        font-size:3px;
        width:10px;
        height: 3px;
        padding: 6.5px;
        border-radius: 2.5px;
    }

    .key-row{
        margin-bottom: 1px;
    }

    .key.wide {
    width: 70px; 
    }

    .key.space {
        width: 280px; 
    }

    .mouse{
        display: none;
    }
}

@media (min-width:481px) and (max-width: 768px){
    .monitor {
        margin-top: 10px;
        width: 90%; 
        max-width: 600px; 
        height: 300px; 
        position: relative;
        overflow: hidden;
    }
    
    .screen {
        width: 90%; 
        height: 350px; 
        font-size: 24px;
       
        overflow: hidden;
    }
    
    .screen.off {
        height: 250px;
        overflow: hidden; 
        
    }
    
    .cont {
        color: white;
        height: 90%; 
        max-height:50%; 
        padding: 5%; 
        background-color: #000;
        font-family: 'Share Tech Mono';
    }
    
    .cont h1 {
        text-align: center;
        font-family: 'Doto';
        font-size: 0.8em;
    }
    
    .cont p{
        font-size: 15px;
    }
    
    .base1{
        width: 30px;
        height: 40px;
    }
    
    .base{
        width: 130px;
    }
    
    .input-container{
        width: 400px;
        margin-left: 0;
    }
    
    .keyboard{
        width: 400px;
        height: 180px;
        margin-left: 0;
    }
    
    .key{
        font-size:5px;
        width:30px;
        height: 23px;
        padding: 6.5px;
        border-radius: 2.5px;
    }
    
    .key-row{
        margin-bottom: 1px;
    }
    
    .key.wide {
    width: 70px; 
    }
    
    .key.space {
    width: 280px; 
    }
    
    .mouse{
    display: none;
    }
}