/* style.css */
@font-face {
    font-family: 'Kruti Dev 010';
    src: url('https://10fingertyping.com/wp-content/uploads/2025/08/Kruti-Dev-010-Regular.ttf') format('truetype');
	
}
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f4;
    margin: 0;
}
body.dark-mode {
    background-color: #333;
    color: #f4f4f4;
}

body.dark-mode .container {
    background: rgb(30, 30, 30);
    color: #f4f4f4;
}

body.dark-mode #textDisplay {
    background-color: #444;
    color: #f4f4f4;
}

body.dark-mode #inputArea {
    background-color: #555;
    color: #f4f4f4;
    border-color: #888;
}

body.dark-mode button {
    background-color: #888;
    color: #f4f4f4;
}

.container {
    text-align: center;
    background: rgb(238,174,202);
background: radial-gradient(circle, rgba(238,174,202,1) 0%, rgba(2,0,3,0.9724264705882353) 100%);
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 60%;
}

.settings, .controls, .results {
    margin: 20px 0;
}

.text-area {
    margin: 20px 0;
    padding: 0px;
    background-color: #e9ecef;
    border-radius: 5px;
    position: relative;
		
}

#text-to-type {
    font-size: 28px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
	font-weight: bold;
	word-spacing: 10px;
	letter-spacing: 0px;
	background-color: #e3e3e3;
	border-radius: 10px;
	border : 2px solid #0a2afc;
	color:#0008ff;
	font-family: 'Kruti Dev 010', Arial, sans-serif;

}

#input-area {
    width: 96%;
    height: 40px;
    font-size: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
	font-family: 'Kruti Dev 010', Arial, sans-serif;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    margin: 0 10px;
    cursor: pointer;
}

#start-btn {
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
}
#start-btn:hover{
	background-color: #1934fc;
}

#reset-btn {
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 5px;
}
#reset-btn:hover{
	background-color: #fc19ed;
}

.results p {
    font-size: 16px;
}

.correct {
    color: green;
}

.incorrect {
    color: red;
}

.cursor {
    border-left: 2px solid #000;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: black; }
}

.progress-container {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin: 20px 0;
}

#progress-bar {
    height: 10px;
    background-color: #28a745;
    width: 0%;
    transition: width 0.1s;
}


.settings{
	font-size: 18px;
	font-weight: bold;
	color: #ffffff;
	
}

#difficulty{
	font-size: 18px;
	border-radius: 10px;
	background-color: #ffffff;
	padding: 4px;
	color:#4a0309;
	font-family: 'Kruti Dev 010', Arial, sans-serif;
	
}

#timer{
	font-size: 18px;
	border-radius: 10px;
	background-color: #ffffff;
	padding: 4px;
	color: #4a0309;
}

.results{
	font-weight:bold;
	color: #ffffff;
	text-align:center;
	
}

#darkModeToggle{
	font-size: 18px;
	border-radius: 10px;
	padding: 4px;
}