/*css*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    /*background image used has been created using canva*/
    background-image: url('background.png'); 
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: center;
    font-family: 'Josefin Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    padding: 20px;
}

.aboutpage {
    background: rgba(245, 245, 245, 0.8);
    background-image: url('background.png'); 
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: overlay; 
}

.quiz-list-page{
    background: rgba(245, 245, 245, 0.5);
    background-image: url('background.png'); 
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: overlay; 
}



/* Homepage Layout */
.homepage {
    font-family: 'Josefin Sans', sans-serif;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 70px; 
}

/* Header Styling */
.homepage-header {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
}

.homepage-header h1 {
    font-size: 3rem;
    font-weight: bold;
}

.homepage-header p {
    font-size: 1.2rem;
    align-items: center;
    width: 600px;
    justify-content: center;
    text-align: center; 
    margin: 0 auto;
}

.homepage-header a {
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    text-align: center; 
    margin-top: 50px;
}

/* Main Content Section */
.homepage-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: -50px;
}

/* Intro Section */
.intro {
    text-align: center;
    width: 100%;
}

.intro p {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.intro h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Action Buttons */
.actions {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px; 
    padding: 20px;
    margin-top: -10px;
}

.actions button {
    font-family: 'Josefin Sans', sans-serif;
    padding: 12px 30px; 
    font-size: 1.1rem; 
    border-radius: 20px;
    font-weight: 550;
    border: 1px solid #afafaf; 
    box-sizing: border-box; 
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Button Hover Effect */
.actions button:hover {
    background-color: #afafaf;
}

/* Disabled Button Styling */
.actions button:disabled {
    background-color: #b0b0b0;
    color: #666;
    cursor: not-allowed;
    border: 1px solid transparent; 
}

.about-link {
    color: #656464;
}

/* Quiz Link Section */
.quiz-link {
    text-align: center;
}

.quiz-link a {
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    color: #656464;
}

.quiz-link a:hover {
    color: #8e8e8e;
}

/* Scoped Login and Register Page Styling */
.login-page .form-container,
.register-page .form-container {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-page .form-container h1,
.register-page .form-container h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
}

.login-page form,
.register-page form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-page label,
.register-page label {
    font-size: 1rem;
    color: #3a3c3e;
    text-align: left;
    display: block;
    margin-bottom: 0;
}

.login-page input,
.register-page input {
    font-family: 'Josefin Sans', sans-serif;
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.login-page input:focus,
.register-page input:focus {
    outline: none;
    border-color: #909091;
    box-shadow: 0 0 5px rgba(193, 195, 198, 0.5);
}


.register-page form button {
    font-family: 'Josefin Sans', sans-serif;
    display: inline-block;
    background-color: #7f7f81;
    color: white;
    font-size: 1rem;
    font-weight: 550; 
    padding: 10px 20px;
    width: 150px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    align-self: center;
    white-space: nowrap;
    margin: 10px;
}

.register-page form button:hover {
    background-color: #aaaaaa;
}

.login-page form button {
    font-family: 'Josefin Sans', sans-serif;
    display: inline-block;
    background-color: #7f7f81;
    color: white;
    font-size: 1rem; 
    font-weight: 550;
    padding: 10px 20px;
    width: 150px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    align-self: center;
    white-space: nowrap;
    margin: 20px;
}

/* Secondary button styling  */
.secondary-button {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    background-color: #ababab; 
    color: #ffffff;
    font-weight: 550;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer; 
    border: none;
    transition: background-color 0.3s ease; 
    margin: 10px;
}

.secondary-button:hover {
    background-color: #8c8a8a;
}

/* Disabled secondary button */
.secondary-button:disabled {
    background-color: #b0b0b0; 
    color: #c2c0c0; 
    cursor: not-allowed; 
}

.login-page form button:hover {
    background-color: #898989;
}

.login-page .link,
.register-page .link {
    margin: 40px;
    font-size: 1rem;
    color: #656464;
    text-decoration: none;
}

.login-page .link:hover,
.register-page .link:hover {
    text-decoration: underline;
}

.register-page form button:disabled {
    background-color: #79797a;
    cursor: not-allowed;
}

/* Quiz Page Styling */
.quiz-container {
    background-color: #f9f9f9;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    margin: 20px auto;
    text-align: left;
}

.quiz-container h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.quiz-container p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-align: left;
}

.question-container {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.question-container p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

label {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 14px;
}

input[type="radio"] {
    margin-right: 10px;
}

button[type="submit"] {
    font-family: 'Josefin Sans', sans-serif;
    background-color: #a9aaab;
    color: white;
    padding: 12px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    width: 100%;
    font-weight: 550;
}

button[type="submit"]:hover {
    background-color: #898989;
}

/* Quiz List Page Styling */
.quiz-list-page {
    display: block; 
    padding: 20px; 
    text-align: center;
}

/* Header Links */
.quiz-list-header {
    width: 100%;
    display: flex;
    justify-content: space-between; 
    margin-bottom: 30px; 
    top: 40; 
    left: 40; 
    padding: 20px 30px;
}

.quiz-list-header img {
    width: 30px; 
    height: auto; 
}


/* Title Styling */
.quiz-list-page h1 {
    font-size: 1.7rem; 
    margin-bottom: 40px;
    text-decoration: underline; 
    margin-left: 70px;
}

/* Quiz List Styling */
.quiz-list {
    list-style-type: number; 
    width: 100%; 
}

.quiz-list li {
    margin-bottom: 15px;
    margin-left: 700px;
    text-align: left;
}

.quiz-list li a{
    text-decoration: none;
    align-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #3d3c3c;
}

.quiz-list li a:hover{
    text-decoration: underline;
}

.quiz-list li.locked {
    color: #888; 
    font-size: 1.1rem;
    font-weight: bold;
}

.aboutpage p {
    font-size: 1.1rem;
    color: #4e4d4d; 
    margin-bottom: 15px;
    max-width: 1400px;
}

/* Strong Text */
.aboutpage p strong {
    color: #1b1c1c; 
}

/* mainheading */
.aboutpage h1 {
    font-size: 2.5rem;
    color: #3c3d3d;
    margin-top: 30px;
    margin-bottom: 25px;
    text-align: center;
}

/* Subheading */
.aboutpage h2 {
    font-size: 2rem;
    color: #425353;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* List Styling */
.aboutpage ul {
    list-style-type:circle; 
    padding-left: 100px; 
    margin-bottom: 40px;
    margin-top: 40px;
}

.aboutpage li {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.aboutpage li strong {
    color: #494a4a; 
}

.about-header {
    width: 100%;
    padding: 20px 10px;
    display: flex;
    align-items: center;
    justify-content: center; 
    background-color: #f5f5f5;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000; 
}

/* Home Icon */
.home-icon {
    position: absolute;
    top: 10px;
    left: 40px; 
    text-decoration: none;
    font-size: 1.5rem; 
    color: #333; 
    padding: 10px;
    border-radius: 50%;
}

.home-icon img{
    width: 30px;
}

.scorepage {
    display: block; 
    padding: 90px; 
    text-align: center;
}


.main-message {
    font-size: 2.5rem; 
    font-weight: bold;
    color: #202020;
    margin-bottom: 10px;
}

.main-message p {
}


.sub-message {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
    margin-bottom: 20px;
}

.additional-message {
    font-size: 1.2rem;
    color: #928f8f;
    margin-bottom: 20px;
    font-weight: bold;
    margin-bottom: 100px;
}

.scorepage a{
    margin-top: 0px;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    color: #656464;
}

.scorepage a:hover{
    text-decoration: underline;
}


.scorepage-header {
    position: absolute; 
    margin: -40px;
    z-index: 1000; 
}

.scorepage-header img {
    width: 30px; 
    height: auto; 
}

.profilepage {
    display: flex;               
    justify-content: center;      
    align-items: center;          
    height: 100vh;             
    flex-direction: column;       
}

.profilepage h1 {
    font-size: 2rem;
    text-align: center;
    padding: 40px;
}

.profilepage p {
    font-size: 1.2rem;
    text-align: center;
    padding: 10px;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.profile-actions button {
    font-family: 'Josefin Sans', sans-serif;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 20px;
    font-weight: 550;
    border: 1px solid #afafaf;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.profile-actions button:hover {
    background-color: #afafaf;
}

.profile-actions a {
    color: #3d3c3c;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: bold;
    text-align: center;
}

.profile-actions a:hover {
    text-decoration: underline;
}

.profilep {
    font-weight: bold;
    color: #656464;
}

.registered h1{
    font-size: 2.1rem;
    text-align: center;
    padding: 30px;
}

.registered-login {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 30px;
}

.registered-welcome {
    font-size:1.4rem;
    color: #79797a;
    font-weight: bold;
    margin-bottom: 20px;
}

.registered button {
    font-family: 'Josefin Sans', sans-serif;
    padding: 12px 30px; 
    font-size: 1.1rem; 
    border-radius: 20px;
    font-weight: 550;
    border: 1px solid #afafaf; 
    box-sizing: border-box; 
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.registered button:hover {
    background-color: #afafaf;
}



/* Responsive Design */
@media (max-width: 1200px) {
    .homepage-header h1 {
        font-size: 2.5rem;
    }

    .homepage-header p {
        font-size: 1rem;
        width: 90%;
    }

    .actions {
        flex-direction: column;
        gap: 15px;
    }

    .quiz-list-header {
        flex-direction: column;
        align-items: center;
    }

    .quiz-list-header img {
        margin-bottom: 10px;
    }

    .quiz-list li {
        margin-left: 0;
        text-align: center;
    }

    .aboutpage h1 {
        font-size: 2rem;
    }

    .aboutpage h2 {
        font-size: 1.5rem;
    }

    .aboutpage p {
        font-size: 1rem;
    }
}

@media (max-width: 800px) {
    body {
        padding: 10px;
    }

    .homepage-header h1 {
        font-size: 2rem;
    }

    .homepage-header p {
        font-size: 0.9rem;
    }

    .homepage-main {
        gap: 5px;
    }

    .actions {
        flex-direction: column;
        align-items: center; 
        gap: 15px; 
    }

    .actions button {
        width: 100%; 
        max-width: 300px; 
    }

    .quiz-container {
        padding: 15px;
    }

    .quiz-container h1 {
        font-size: 2rem;
    }

    .quiz-container p {
        font-size: 1rem;
    }

    .question-container {
        padding: 10px;
    }

    .question-container p {
        font-size: 1rem;
    }

    .profilepage h1 {
        font-size: 1.8rem;
    }

    .profilepage p {
        font-size: 1rem;
    }

    .registered h1 {
        font-size: 1.8rem;
    }

    .registered-login {
        font-size: 1rem;
    }

    .registered-welcome {
        font-size: 1.2rem;
    }
}

@media (max-width: 500px) {
    .homepage-header h1 {
        font-size: 1.5rem;
    }

    .homepage-header p {
        font-size: 0.8rem;
    }

    .actions button {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .quiz-container {
        padding: 10px;
    }

    .quiz-container h1 {
        font-size: 1.5rem;
    }

    .quiz-container p {
        font-size: 0.9rem;
    }

    .question-container p {
        font-size: 0.9rem;
    }

    .aboutpage h1 {
        font-size: 1.5rem;
    }

    .aboutpage h2 {
        font-size: 1.2rem;
    }

    .aboutpage p {
        font-size: 0.9rem;
    }

    .scorepage a {
        font-size: 1rem;
    }

    .scorepage a:hover {
        font-size: 1rem;
    }
}