@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c&display=swap');

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9;
    color: #333;
}

header {
    background-color: #2c3e50;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: relative; /* Add for positioning context */
}

.lang-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.lang-switcher a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #fff;
    border-radius: 4px;
    margin-left: 0.5rem;
    transition: background-color 0.3s, color 0.3s;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    background-color: #fff;
    color: #2c3e50;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

main {
    padding: 1rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-group {
    display: flex;
    margin-bottom: 1rem;
}

#url-input {
    flex-grow: 1;
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    max-width: 70%;
}

#analyze-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: #fff;
    background-color: #3498db;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

#analyze-button:hover {
    background-color: #2980b9;
}

#loading {
    text-align: center;
    padding: 2rem;
}

#result-container {
    margin-top: 30px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

#result {
    margin-bottom: 15px;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #f9f9f9;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#result ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
#result li {
    margin-bottom: 12px;
    line-height: 1.6;
}

#result li:hover {
    transform: translateX(5px);
}

#result strong {
    color: #004085;
    font-weight: 700;
}

footer {
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #777;
    max-width: 800px;
    margin: auto;
}

#seo-description,
#seo-basics {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#seo-description h2,
#seo-basics h2 {
    text-align: center;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

#seo-description h3,
#seo-basics h3 {
    color: #3498db;
    margin-top: 1.5rem;
}

#seo-description ul,
#seo-basics ul {
    list-style: none;
    padding-left: 0;
}

#seo-description li,
#seo-basics li {
    margin-bottom: 0.5rem;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s, text-decoration 0.3s;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}
