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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
    min-height: 100vh;
    background-color: #f9fafb;
    padding: 2rem;
    position: relative
}

.github-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    transition: color 0.3s ease;
    z-index: 10;
}

.github-link:hover {
    color: #2563eb;
}

.github-icon {
    width: 32px;
    height: 32px;
}

.content-wrapper {
    max-width: 56rem;
    margin: 0 auto;
}

.title {
    font-size: 2.25rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1f2937;
	white-space: nowrap;
}

@media (max-width: 450px) {
    .title {
        font-size: 1.25rem;
    }
	.result-item {
		flex-direction: column-reverse;
	}
	
	.paragraph-text {
		line-height: 1.50;
		font-size: 1.10rem;
	}
	
}

.language-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
	flex-wrap: wrap;
}

.language-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.language-btn-active {
    background-color: #2563eb;
    color: white;
}

.language-btn-inactive {
    background-color: white;
    color: #374151;
}

.language-btn-inactive:hover {
    background-color: #f3f4f6;
}

.wpm-display {
    text-align: center;
    margin-bottom: 1rem;
}

.wpm-number {
    font-size: 3rem;
    font-weight: bold;
    color: #2563eb;
}

.wpm-label {
    font-size: 1.5rem;
    color: #4b5563;
    margin-left: 0.5rem;
}

.paragraph-box {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.paragraph-text {
    font-size: 1.125rem;
    color: #374151;
    line-height: 1.75;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.start-btn {
    padding: 1rem 2rem;
    background-color: #2563eb;
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: background-color 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.start-btn:hover {
    background-color: #1d4ed8;
}

.hotkey-hint {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    color: #374151;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-label {
    font-weight: 500;
	margin: 0px 10px;
}

.results-container {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.results-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1f2937;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.result-preview {
    font-size: 0.875rem;
    color: #4b5563;
    flex: 1;
}

.result-seconds {
    font-size: 0.875rem;
    color: #374151;
    margin: 0 1rem;
}

.result-wpm {
    font-size: 1.125rem;
    font-weight: bold;
}

.result-wpm-neutral {
    color: #374151;
}

.result-wpm-good {
    color: #16a34a;
}

.result-wpm-bad {
    color: #dc2626;
}