/* ---------- Base ---------- */

@import url('https://fonts.googleapis.com/css2?family=Climate+Crisis:YEAR@1979&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

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

body {
    /* font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; */
    line-height: 1.6;
    color: #1f2937;
    background: #EEF0F1;

    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

h1,
h2,
h3 {
    line-height: 1.2;
    color: #111827;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #28A847;
    /* text-decoration: underline; */
}

/* ---------- Forms ---------- */

label {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    color: #374151;
}

input[type="text"],
input[type="number"],
input[type="password"],
textarea,
select {
    padding: 0.7rem;
    border-radius: 0.5rem;
    background: #EBF5EC;
    border: 1px solid #EBF5EC;
    font: inherit;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border: solid 1px #BADEC4;
    outline: solid 1px #BADEC4;
}

input[type="submit"],
button {
    display: inline-block;
    margin: 0.25rem 0.4rem 0.25rem 0;
    padding: 0.65rem 1.1rem;
    border: none;
    border-radius: 0.5rem;
    background: #0A73E3;
    color: #ffffff;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

input[type="submit"]:hover,
button:hover {
    background: #1d4ed8;
}

input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
}

input[name="logout"],input[name="goback"]{
    background: #e5e7eb;
    color: #374151;
}

input[name="logout"]:hover, input[name="goback"]:hover {
    background: #d1d5db;
}

/* ---------- Lists / quizzes ---------- */

ul,
ol {
    margin: 0 0 1rem 1.25rem;
}

li {
    margin-bottom: 0.35rem;
}

.correct {
    color: #166534;
    font-weight: 600;
}

.incorrect {
    color: #991b1b;
    font-weight: 600;
}

/* ---------- Tables ---------- */

table {
    border-collapse: collapse;
    margin: 0 0 1.25rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

th,
td {
    padding: 0.7rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: #f3f4f6;
    font-weight: 600;
    color: #111827;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #f9fafb;
}

/* ---------- Footer / Header ---------- */

footer {
    margin-top: 2.5rem;
    margin-left: 2rem;
    margin-right: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    h1 {
        font-size: 1.7rem;
    }
}

.site-header {
    display: flex;
    justify-content: left;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
    height: 2.5rem;
    padding: 1rem 2rem;
}
.site-header .right-side {
    display: flex;
    margin-left: auto;
    margin-right: 0;
    justify-content: flex-end;
    align-items: center;
}
.site-header .account {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.site-header .account p {
    margin: 0;
    margin-right: 0.5rem;
}
.site-header .account span {
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    background: #374151;
    border-radius: 50%;
}
.site-header .classroom-button {
    background-color: transparent;
    color: black;
    border: none;
    margin-left: 1rem;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.site-header .classroom-button h1 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 400;
}
.site-header .classroom-button svg {
    margin-left: 10px;
    width: 16px;
    height: 16px;
}

.site-header .classroom-popup {
    position: absolute;
    top: 4.5em;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}
.site-header .classroom-popup .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(1px);
}
.site-header .classroom-popup .content {
    position: relative;
    width: calc(4rem + 30vw);
    min-width: fit-content;
    height: calc(100% - 2rem);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
}
.site-header .classroom-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-header .classroom-popup .popup-header h2 {
    margin: 0;
}

.site-header .classroom-link {
    width: 100%;
    /* margin: 0.4rem 0; */
    padding: 0.85rem 1.2rem;
    background: transparent;
    border: 1px solid transparent;
    /* border: 2px solid #dddddd; */
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: left;
    color: black;
}

.site-header .classroom-link:hover {
    background: #d5d5d5;
    border: 1px solid #d5d5d5;
}

.site-header .classroom-link:focus,
.site-header .classroom-link:active {
    outline: none;
    border: 1px solid #c2c2c2;
}

.site-header .classroom-popup.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}
.site-header .classroom-popup.active .content {
    animation: slideIn 0.7s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.logo {
    display: inline-block;
    width: fit-content;
    text-decoration: none;
    margin: 0;
    font-size: 2rem;
    color: #FFC107;
    text-shadow: 1px 4px 0.5px rgb(0, 0, 0);
    transform: translateY(-4px);

    font-family: "Climate Crisis", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "YEAR" 1979;
}
.logo p {
    margin: 0;
    width: min-content;
}

@media (max-width: 450px) {
    .logo {
        font-size: 1.5rem;
    }
}
