body{
    margin: 0;
    background-color: rgb(40, 40, 40);
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

#telefon{
    position: relative;
    margin: auto;
    width: 420px;
    height: 920px;
    background-image:url('../img/iOS-26-Wallpaper-Dusk-Dark-2-369x800.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 60px;
    overflow: hidden;
    border: 10px solid black;

    box-shadow: 0 5px 15px rgba(0,0,0,0.5);

}

#telefon::after {
    animation: glassGlow 6s ease-in-out infinite;
}

.powerBtn{
 
    position: fixed;
    right: 732px;          
    top: 350px;
    width: 10px;
    height: 100px;
    border-radius: 10px;
    background-color: black;
    cursor: pointer;
    transition: 0.2s;

}

.lockScreen{
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4em; 
    text-align: center;

}

#datum{
    font-size: 0.4em;
    font-weight: 400;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fefefe;

}



.lockScreen h1{
    font-size: 2em;
    color: rgba(200, 200, 200, 0.519);

}

.powerBtn:active{
    right: 735px;      
}

#ekran{
     will-change: transform;
    touch-action: none; /* sprečava scroll */
    background-image:url('../img/iOS-26-Wallpaper-Dusk-Dark-2-369x800.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
    position: relative;
    animation: fadeBlur 1s ease forwards;
    z-index: 0;
}

.overlay {
	position: fixed;
	bottom: 0;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	z-index: 100;
	background-color: rgba(0, 0, 0, 0.5);
}

a{
    text-decoration: none;
    color: #fefefe;
}

#island {
    width: 120px;          
    height: 30px;           
    background-color: #000000; 
    border-radius: 25px;
    position: absolute;     
    top: 20px;              
    left: 50%;              
    transform: translateX(-50%); 
    z-index: 990;
}

#header{
    z-index: 999;
}

.real-time {
    position: absolute;
    top: 20px;
    left: 60px;
    font-weight: 600;
    font-size: 1.2em;
    color: #fefefe;
    z-index: 101;
}

.densa_strana {
    position: absolute;
    top: 20px;
    right: 40px; 
    color: #fefefe;
    z-index: 101;
    display: flex;      
    gap: 10px;           
}

.densa_strana img{
    width: 20px;
    height: 20px;

}

.poziv{
    position: fixed;
	bottom: 0;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	z-index: 100;
	background-color: rgb(30, 30, 30);
    animation: fadeBlur 0.5s ease forwards;

}


.dialBroj, .calcBroj{
    font-weight: 600;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background-color: rgba(50, 50, 50, 0.5);
    color: #fefefe;
    border: none;
    display: flex;          
    align-items: center;
    justify-content: center;
    transition: 0.1s;
    cursor: pointer;
    margin: 10px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);

}

.calcBroj{
    margin: 3px;
    width: 94px;
    height: 94px;

}

.sivi{
    background-color: rgb(101, 101, 101);
}

.narandzasti{
    background-color: rgba(255, 137, 0);
}



.tipkice, .tipkiceCalc{
    position: absolute;
    top: 550px;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    
}

.tipkiceCalc{
    top:600px
}

.dialBroj, .calcBroj{
    font-size: 1.5em;
}

.dialBroj:hover, .calcBroj:hover{
    background-color: rgb(50, 50, 50);
    transform: scale(1.05);
}

.dialBroj:active, .calcBroj:active{
    transform: scale(1);
}

#brojTelefona{
    position: absolute;
    top:250px;
    left: 50%;
    width: 60%;
    background-color: rgba(0, 0, 0, 0);
    text-align: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

#pozovi{
    background-color: #137a2d;
} 
#pozovi img{
    width: 30px;
}

#obrisi_broj{
    width: 20px;
    background-color: transparent;
    box-shadow: none;
    position: absolute;
    right: 30px;
    color: rgba(254, 254, 254, 0.509);
    animation: fadeBlur 0.5s ease forwards;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#kontakt{
    position: absolute;
    height: 80px;
    top: 0;
    width: 380px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    font-size: 1.2em;
    color: #fff;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    background-color: rgba(53, 53, 53, 0.804);
}
#kontakt p, #kontakt a {
    color: #fefefe;
    text-decoration: none;
    margin: 0;
    cursor: pointer;
    z-index: 999;
}   


#fon_ikonica{
    position: absolute;
    right: 70px;
    top: 70px;
    cursor: pointer;
    
}

#trash_ikonica{
    position: absolute;
    right: 20px;
    cursor: pointer;
    z-index: 10;
}


#kontakt img{
    width: 30px;
    cursor: pointer;
    z-index: 1000;
}


input{
    position: absolute;
    left: 20px;
    margin: auto;
    width: 100px;
    height: 20px;
    font-size: 1.5em;
    padding: 10px;
    padding-left: 20px;
    border-radius: 50px;
    transition: 0.5s ease-in-out;
    font-family: 'Inter';
    background-color: rgba(53, 53, 53, 0.503);
    color: #fefefe;
    box-shadow: 0 3px 7px rgba(0,0,0,0.4);
    
}

::-webkit-input-placeholder {
  color: #bababa;
}

input:focus{
    width: 300px;
    border: 2px solid #fefefe;

}

#kucanje h1{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 20px;
    left: 360px;
    border-radius: 50%;
    height: 20px;
    padding: 12px;
    background-color: rgba(51, 51, 51, 0.507);
    cursor: pointer;
    color: #fefefe;
    bottom: -10px;
    box-shadow: 0 3px 7px rgba(0,0,0,0.4);
}

#kucanje{
    position: absolute;
    bottom: 40px;
    width: 420px;
    height: 45px;
    padding:10px 0;
    border-radius: 20px;
    transition: 0.2s;
}



#poruke{
    position: absolute;
    top: 140px;      
    bottom: 140px;   
    left: 20px;
    right: 20px;
    width: 380px;
    display: flex;
    padding-right: 20px;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width:none;    
    gap: 20px;
}


.porukajs {
    max-width: 70%;
    padding: 10px 15px;
    background-color: rgba(48, 141, 255, 0.8);
    border: 1px solid #fefefe;
    color: #fff;
    border-radius: 20px;
    align-self: flex-end;  
    word-wrap: break-word;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.porukajs:active{
    transform: scale(0.95);
    
}

.obrisi{
    max-width: 300px;
    min-height: 100px;
    background-color: rgba(0, 0, 0, 0.817);
    color: #fff;
    text-align: center;
    border-radius: 25px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 25px;
    top: 400px;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: fadeBlur 0.5s ease forwards;


}

.obrisi h2{
    display: inline-block;
    margin:20px 50px;
    cursor: pointer;
    
}

#pravatastarura {
    position: absolute;
    bottom: 0px;
    width: 100%;
    display: flex;
    flex-direction: column; 
    align-items: center;    
    gap: 10px;            
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    padding-bottom: 30px;
    padding-top: 20px;
    border-radius: 10px;
    
}

.prviRed, .drugiRed, .treciRed, .cetvrtiRed, .petiRed{
    display: flex;           
    justify-content: center; 
    gap: 5px;                
}

.taster {
    font-weight: 600;
    width: 36px;
    height: 50px;
    border-radius: 10px;
    background-color: rgba(50, 50, 50, 0.5);
    color: #fefefe;
    border: none;
    display: flex;          
    align-items: center;
    justify-content: center;
    transition: 0.1s;
    cursor: pointer;
}

.taster:hover{
    transform: scale(1.05);
    box-shadow: 0 3px 7px rgba(0,0,0,0.4);

}

.taster:active{
    transform: scale(0.98);
}

#upper, #backspace{
    width: 52px;
    height: 50px;

}

#space{
    position: absolute;
    left: 110px;
    width: 200px;
}

#enter{
    width: 52px;
    margin-left: 350px;
    background-color: #308dff;
    color: #fefefe;
}

#tackica{
    position: absolute;
    left: 315px;
}

#brojeviKey{
    position: absolute;
    left: 10px;
    width: 95px;
}

#izadjiLinija{
    width: 200px;
    height: 7px;
    background-color: #fefefe;
    position: absolute;
    bottom: 10px;
    left: 25%;
    border-radius: 20px;
    cursor: grab;
    z-index: 999;
}

#donjeIkonice{
    position: absolute;
    bottom:10px;
    width: 340px;
    padding: 20px;
    margin: 0 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
}

.donjaIkonica{
    width: 60px;
    margin: 0 10px;
    border-radius: 10px;
    transition: 0.2s;
}

#poziv{
    width: 65px;
}

.donjaIkonica:hover{
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

#tastaturaUpali{
    position: absolute;
    bottom: 40px;
    left: 20px;
    z-index: 10;
    cursor: pointer;
}
#tastaturaUpali img{
    width: 50px;
}

.zatvori{
    position: fixed;
    top: 10px;
    right: 10px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 1000;

}

.zatvori_dial{
    position: fixed;
    top: 80px;
    left: 40px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 1000;
    color: #fefefe;
}

#autor{
    position: absolute;
    top: 500px;
    z-index: 999;
}

.calc{
    position: fixed;
	bottom: 0;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	z-index: 100;
	background-color: rgb(30, 30, 30);
    animation: fadeBlur 0.5s ease forwards;
}

#calc_input{
    top: 250px;
    width: 92%;
    height: 50px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
    text-align: right;
    font-size: 3em;
    border: none;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0);
}
