
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, sans-serif;
}

html, body {
    min-height: 100%;
    width: 100%;
}

body {
    width: 95%;
    margin: 0 auto;
}

#main {
    min-height: 100vh;
    width: 100%;
}

#headings {
    min-height: 80px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo img {
    width: 50%;
    margin-left: 10px;
}

#right-section {
    display: flex;
    align-items: center;
    margin-right: 10px;
    flex-direction: column;
}

#icons {
    display: flex;
    align-items: center;
    justify-content: center;
}

#icons img {
    padding: 5px;
}

#header {
    margin-top: 5px;
    padding: 10px;
    display: flex;
    border: 1px solid grey;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;
    width: 100%;
    gap: 12px;
}

#texts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

#texts a {
    color: black;
    text-decoration: none;
    font-size: 13px;
}

#texts a:hover {
    color: #1890ff;
    text-decoration: underline;
}

#search {
    padding: 5px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid gray;
    width: 180px;
    background-color: #f1efef;
    border-radius: 5px;
    flex-shrink: 0;
}

#search input {
    border: none;
    outline: none;
    width: 100%;
    background-color: transparent;
}

#search:focus-within {
    border-color: #1890ff;
}

#content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 15px;
}

#informations {
    width: 75%;
    border-radius: 5px;
    border-left: 5px solid grey;
    padding-left: 15px;
}

#informations h2 {
    margin-top: 20px;
    font-size: 25px;
    font-weight: lighter;
    color: rgba(23, 98, 210, 0.896);
}

#Neta {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

#Neta img {
    margin-top: 10px;
    width: 350px;
    max-width: 100%;
}

#spectral {
    margin-top: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

#spectral-logo img {
    width: 100%;
    max-width: 400px;
    margin-top: 50px;
}

#spectral-content {
    width: 60%;
}

#btn-box {
    display: flex;
    justify-content: center;
    margin: 30px;
}

#apply-btn {
    padding: 10px 13px;
    background-color: aqua;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

/* Common sidebar cards */
#rankings {
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#pay-attention,
#user-card,
#top-rated,
#top-contributors,
#find-user {
    margin-top: 20px;
    border: 1px solid gray;
    border-radius: 8px;
    overflow: hidden;
}

#pay-heading,
#user-heading,
#top-heading,
#contributors-heading,
#find-heading {
    padding: 10px;
    border-bottom: 1px solid gray;
    color: #3b5998;
    font-size: 18px;
    font-weight: bold;
}

#pay-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#pay-content h2 {
    color: #3b5998;
    font-size: 18px;
}

#pay-content a {
    color: blue;
    font-size: 16px;
}

#days {
    margin-top: 5px;
    color: gray;
    font-size: 18px;
}

#register {
    margin-top: 10px;
    font-weight: bold;
}

#extra {
    margin-top: 5px;
    color: gray;
    font-size: 14px;
}

#user-content {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

#user-left p {
    margin-top: 8px;
    font-size: 15px;
}

#user-left ul {
    margin-top: 12px;
    margin-left: 18px;
}

#user-left li {
    margin-top: 5px;
}

#user-left a {
    color: blue;
}

#user-right {
    text-align: center;
}

#user-right img {
    width: 100px;
    max-width: 100%;
}

#user-right h3 {
    margin-top: 5px;
    color: gray;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #c5c5c5;
    padding: 8px;
    text-align: center;
    overflow-wrap: anywhere;
}

th {
    font-size: 15px;
}

.red {
    color: red;
    font-weight: bold;
}

.orange {
    color: orange;
    font-weight: bold;
}

.blue {
    color: blue;
    font-weight: bold;
}

#bottom-links {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

#bottom-links a {
    color: blue;
}

#contributors-bottom {
    padding: 10px;
    display: flex;
    justify-content: flex-end;
}

#contributors-view {
    color: blue;
}

#find-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#handle-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

#handle-box label {
    font-size: 15px;
}

#handle-box input {
    width: 100%;
    padding: 8px;
    outline: none;
    border: 1px solid gray;
    border-radius: 4px;
}

#handle-box input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.15);
}

#find-btn {
    margin-top: 15px;
    padding: 8px 22px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #1890ff;
    color: white;
}

#find-btn:hover {
    background-color: #096dd9;
}

#user-result {
    width: 100%;
    margin-top: 15px;
    overflow-wrap: anywhere;
}

.result-message {
    padding: 12px;
    border-radius: 5px;
}

.result-message.success {
    background: #e6f7e6;
    color: #176b2c;
}

.result-message.error {
    background: #fff1f0;
    color: #cf1322;
}

.result-message p {
    margin-top: 6px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#texts a:focus-visible,
button:focus-visible {
    outline: 2px solid #1890ff;
    outline-offset: 3px;
}

/* Reusable content classes */
.article-meta {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.article-author {
    color: rgb(243, 172, 41);
    margin-left: 5px;
}

.article-flag {
    width: 20px;
    height: auto;
    margin-left: 5px;
}

.article-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
}

.article-paragraph {
    margin-top: 30px;
}

.article-list {
    margin-top: 20px;
    margin-left: 35px;
}

.article-list li {
    margin-top: 5px;
}

.article-bold {
    font-weight: bold;
}

.author-blue {
    color: blue;
}

.author-red {
    color: red;
}

.author-green {
    color: rgb(77, 220, 29);
}

.author-orange {
    color: rgb(227, 140, 48);
}

.author-pink {
    color: rgb(227, 40, 181);
}

.author-cyan {
    color: rgb(126, 197, 217);
}

.score-text {
    margin-top: 30px;
    font-weight: 500;
    font-family: 'Franklin Gothic Medium', Arial, sans-serif;
}

.editorial-link {
    color: skyblue;
}

.winner-list {
    margin-top: 30px;
}

.winner-list li {
    margin-left: 40px;
    font-weight: bold;
}

.sponsor-title {
    color: aqua;
}

.full-text-link {
    display: inline-block;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 1000px) {
    #content {
        gap: 15px;
    }

    #informations {
        width: 68%;
    }

    #rankings {
        width: 32%;
    }

    #texts {
        gap: 7px;
    }
}

@media (max-width: 768px) {
    body {
        width: 98%;
    }

    #header {
        flex-direction: column;
        align-items: stretch;
    }

    #texts {
        gap: 12px;
    }

    #content {
        flex-direction: column;
    }

    #informations,
    #rankings {
        width: 100%;
    }

    #spectral {
        flex-direction: column;
    }

    #spectral-content {
        width: 100%;
    }

    #spectral-logo img {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    #headings {
        flex-wrap: wrap;
        gap: 10px;
    }

    #logo img {
        width: 140px;
    }

    #texts {
        gap: 10px;
    }

    #texts a {
        font-size: 11px;
    }

    #informations {
        padding-left: 10px;
    }

    #informations h2 {
        font-size: 20px;
    }

    #Neta img {
        width: 100%;
    }

    #user-content {
        flex-wrap: wrap;
    }

    #user-left p {
        font-size: 13px;
    }

    th, td {
        padding: 5px;
        font-size: 12px;
    }
}
