:root {
    --max-width: 1200px;
    --font-primary: 'Roboto Mono', monospace;
    /*--font-primary: 'Arial';*/
}

body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    font-size: 14px;
}
h1, h2 {
    font-size: 22px;
}

nav img[alt="ProblemMaster Logo"] {
    height: 80px;
    margin-left: -20px;
}

nav {
    display: flex;
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background-color: #ffffff;
}

nav a {
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;

}

a:visited {
    color: #000000;
}

a {
  color: black;
}

.nav-links-container {
    display: flex;
    margin-right: 12px;
}

.nav-link-container {
    text-decoration: none;
    margin-left: 92px;
}
.signin-container img {
    height: 20px;
    width: auto;
    margin-bottom: -4px;
    margin-right: -12px;
}
.signin-container a {
    position: relative;
    top: -0.5px;
}


.signin-text {
    display: inline-block;
    min-width: 63px;
    max-width: 120px;
}


nav a:hover {
    text-decoration: underline;
}

/* Main Content */
main {
    display: flex;
    justify-content: space-between;
    padding: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

section {
    width: 48%;
}



button:hover {
    background-color: #0056b3;
}
img[alt="problem image"] {
    display: block;
    margin-bottom: 20px;
    width: 70%;
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    padding: 4px 8px;
    background-color: transparent;
    color: black;
    border: 2px solid black;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
}

button:hover {
    background-color: black;
    color: white;
}

.featured-promotion {
    position: relative;
    top: 20px;
}
.highlight {
    font-weight: 600;
}
.red {
    color: red;
}

.problem-page {
    flex: 4.1;
    padding-right: 20px;
    max-width: 945px;
}

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

.problem-table thead th {
    padding: 12px 8px 16px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.problem-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
}

.problem-table tbody tr:hover {
    background-color: #f9fafb;
}

.problem-table tbody td {
    padding: 14px 8px;
    vertical-align: middle;
    text-align: left;
}
.problem-table a {
    text-decoration: none;
}

.problem-table a:hover {
    text-decoration: underline; /* Optional: Add underline on hover */
}



.search-bar-section{
    flex: 1;
    display: flex;
}

.search-container{
    background-color: #f1f1f1;
    height: 40px;
    width: 230px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    outline: none;
    position: relative;
    top: -10px;
    margin-left: -9px;
}

.search-bar-input {
    border: none;
    background-color: #f1f1f1;
    padding: 10px;
    width: 80%;
    height: 20px;
    border-radius: 5px;
    position: relative;
    top: 0px;
    outline: none;
}

.search-bar-input::placeholder {
    font-weight: 700;
    color: #aaa;
}

.problem-table th:last-child {
    position: relative;
    left: 15px;
}
.problem-table td:last-child {
    position: relative;
    left: 16px;
}

img[alt="difficulty stars"] {
    height: 13px;
}

img[alt="completion tick"] {
    height: 15px;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-links-container {
        width: 100%;
        justify-content: center;
        flex-direction: row;
        margin-top: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-link-container {
        margin: 0.5rem;
    }
}
