body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevents horizontal scrolling */
    position: relative;
    min-height: 100vh;
}

/* Styles for mobile and small screens */
h1 {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    font-size: 30px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    align-items: center;
}

.subject-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically by default */
    margin-top: 50px;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.subject-buttons button {
    padding: 20px 40px;
    font-size: 20px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: #4CAF50;
    color: white;
    border: 2px solid black;
    border-radius: 5px;
    cursor: pointer;
    width: 80vw;
    max-width: 300px;
}

.subject-buttons button:hover {
    background-color: #45a049;
    transform: scale(1.1);
}

.goback {
    /* Updated styles for fixed positioning */
    position: fixed;
    bottom: 20px; /* Position it 20px from the bottom */
    left: 20px; /* Position it 20px from the left */
    font-size: 20px;
}

.goback:hover {
    color: #4CAF50;
    text-decoration: underline;
}

/* Media query for larger screens (e.g., desktops) */
@media (min-width: 768px) {
    h1 {
        margin-top: 100px;
        font-size: 50px;
    }

    .subject-buttons {
        flex-direction: row; /* Switches to horizontal layout on large screens */
        gap: 50px;
        margin-top: 150px;
    }

    .subject-buttons button {
        font-size: 30px;
        width: auto;
    }

    .goback {
        font-size: 30px;
        bottom: 60px; /* Adjusts bottom spacing for desktop view */
        left: 100px; /* Adjusts left spacing for desktop view */
    }
}
.subject-buttons button:focus {
    outline: none; /* Removes the default focus outline */
    box-shadow: 0 0 5px #4CAF50; /* Adds a custom focus effect */
}