body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}
.navbar {
    background-color: #333;
    overflow: hidden;
}
.navbar a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
}
.navbar a:hover {
    background-color: #ddd;
    color: black;
}
.index-container {
    display: flex;
    padding: 50px;
    background-color: white;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    justify-content: center;
    align-items: center;
}
.notes-and-flashcards-container {
    display: flex;
    flex-direction: column;
    padding: 50px;
    background-color: white;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 900px;
}
.not-found-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    background-color: white;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    text-align: center;
}
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    table-layout: fixed;
}
th, td {
    padding: 15px;
    text-align: left;
    border: 1px solid #ddd;
    width: 50%;
    word-wrap: break-word;
}
th {
    background-color: #28a745;
    color: white;
    font-weight: bold;
}
tr:nth-child(even) {
    background-color: #f8f9fa;
}
tr:hover {
    background-color: #f2f2f2;
}
h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}
.left-column {
    flex: 1;
    padding-right: 20px;
    text-align: center;
}
.right-column {
    flex: 2;
}
.right-column h1 {
    font-size: 2em;
    margin-bottom: 10px;
}
.right-column p {
    font-size: 1.2em;
    line-height: 1.5;
    margin-bottom: 20px;
}
.buttons {
    text-align: center;
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    width: 100%;
}
.buttons a {
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    margin: 5px;
    border-radius: 5px;
    font-size: 0.95em;
    width: 160px;
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    box-sizing: border-box;
}
.stripe-img {
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin-right: 8px;
}
.stripe-button {
    background-color: #635BFF;
}
.stripe-button:hover {
    background-color: #4F47E5;
}
.profile-img {
    max-width: 100%;
    border-radius: 8px;
    width: 200px;
    height: auto;
    margin-bottom: 15px;
}
.badges-img {
    max-width: 100%;
    border-radius: 8px;
    width: 300px;
    height: auto;
}
.error-code {
    font-size: 8em;
    color: #333;
    margin: 0;
    line-height: 1;
}
.error-message {
    font-size: 2em;
    color: #666;
    margin: 20px 0;
}
.error-description {
    font-size: 1.2em;
    color: #888;
    margin-bottom: 30px;
}
.home-button {
    background-color: #28a745;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
}
.home-button:hover {
    background-color: #218838;
}
footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .index-container {
        flex-direction: column;
        padding: 20px;
        margin: 10px;
    }
    th, td {
        padding: 10px;
    }
    .right-column {
        order: 1;
        width: 100%;
    }
    .right-column h1 {
        font-size: 1.5em; /* Smaller heading on mobile */
    }
    .right-column p {
        font-size: 1em; /* Smaller text on mobile */
    }
    .buttons {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .buttons a {
        margin: 5px 0;
        height: 40px;
        min-height: 40px;
        padding: 8px 16px;
        align-self: center;
        box-sizing: border-box;
    }
    .stripe-img {
        height: 16px;
        margin-right: 6px;
    }
    .left-column {
        order: 3;
        width: 100%;
    }
    .left-column img {
        margin-bottom: 20px;
    }
    .error-code {
        font-size: 6em;
    }
    .error-message {
        font-size: 1.5em;
    }
    .error-description {
        font-size: 1em;
    }
}

/* Desktop styles to ensure proper layout */
@media (min-width: 769px) {
    .index-container {
        flex-direction: row; /* Two-column layout for desktop */
    }
    .buttons {
        margin-top: 0; /* Align buttons properly in desktop */
    }
}
