/* ========== Global ========== */

body {
    background-image: url(https://pic1.imgdb.cn/item/690c45d93203f7be00db8a24.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

button {
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    top: 10px;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

/* ========== Navigation ========== */

.nav {
    position: fixed;
    height: 80px;
    width: 100%;
    top: 0;
    background-image: url(https://pic1.imgdb.cn/item/690c45bf3203f7be00db89bf.png);
    background-size: cover;
    background-repeat: no-repeat;
    display: block;
    padding: 0 20px;
    box-sizing: border-box;
    white-space: nowrap;
}

.nav-home {
    margin-right: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.nav-title {
    cursor: pointer;
    text-align: center;
    font-size: x-large;
    margin: 0;
    color: rgb(255, 128, 0);
    font-family: 宋体, 楷体, serif;
    align-self: center;
}

.nav-logo {
    width: 80px;
    cursor: pointer;
}

.nav-btn-auth {
    font-size: 15px;
    padding: 7px;
    margin: 10px 5px;
    background-color: aqua;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    float: right;
}

.nav-btn-item {
    font-size: 15px;
    padding: 7px;
    margin: 10px;
    background-color: rgb(0, 179, 255);
    place-items: center;
    border-radius: 5px;
    cursor: pointer;
    justify-self: start;
    display: inline-block;
}

@media (min-width: 751px) {
    .nav {
        display: flex;
        align-items: center;
    }

    .nav-home {
        order: 0;
        margin-right: 20px;
    }

    .nav > button:nth-of-type(3),
    .nav > button:nth-of-type(4),
    .nav > button:nth-of-type(5) {
        order: 1;
        float: none;
    }

    .nav > button:nth-of-type(1) {
        order: 2;
        float: none;
        margin-left: auto !important;
    }

    .nav > button:nth-of-type(2) {
        order: 2;
        float: none;
    }
}

/* ========== Typography ========== */

.text-body {
    font-size: 20px;
    margin: 0;
    font-family: 宋体, 楷体, serif;
}

.text-label {
    margin-top: 10px;
    font-weight: bold;
}

.text-divider {
    display: flex;
    justify-content: center;
    border-bottom: 3px solid black;
    width: 600px;
}

.section-title {
    font-family: 宋体, 楷体, serif;
}

.section-heading {
    font-family: 宋体, 楷体, serif;
}

/* ========== Links ========== */

.more-link {
    color: white;
    float: right;
    text-decoration: none;
}

.auth-link {
    color: blue;
}

/* ========== Layout ========== */

.hero-header {
    text-align: center;
}

.content-section {
    text-align: center;
}

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

.content-table td {
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
}

.table-cell {
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
}

.form-table {
    margin: 0;
}

/* ========== Images ========== */

.img-preview {
    width: 420px;
    height: 550px;
    cursor: pointer;
    border-radius: 5px;
}

.img-card {
    width: 200px;
    height: 280px;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid #b8a878;
    box-shadow: 0px 2px 6px #CABC87;
    padding: 0;
    margin: 30px;
}

.school-logo {
    width: 200px;
}

.school-name {
    font-size: 35px;
    border-bottom: 3px solid black;
}

.principal-img {
    cursor: pointer;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

/* ========== Buttons ========== */

.page-btn {
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 5px;
    background-color: #fff;
}

.submit-btn {
    font-size: 20px;
    padding: 10px;
    margin: 15px;
    background-color: aqua;
    border-radius: 5px;
    cursor: pointer;
}

/* ========== Page-specific ========== */

.page-title {
    font-family: 宋体, 楷体, serif;
    border-bottom: 2px solid rgb(255, 255, 255);
}

.rank-link-wrapper {
    margin: 8px 0 16px;
}

.rank-link {
    color: rgb(255, 128, 0);
    text-decoration: none;
    font-size: 18px;
}

/* ========== Footer ========== */

.footer {
    text-align: center;
    color: rgb(127, 249, 255);
    padding: 20px;
}

/* ========== Modal ========== */

.modal {
    display: grid;
    position: fixed;
    align-self: center;
    justify-self: center;
    background-image: url(https://pic1.imgdb.cn/item/690c45d93203f7be00db8a24.png);
    width: 80%;
    height: 80%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    top: 40px;
    padding: 20px;
    margin: 20px;
    z-index: 1000;
    animation: modal 0.3s ease-out forwards;
}

.modal.Close {
    animation: modalClose 0.3s ease-out forwards;
}

.modal-close {
    position: absolute;
    display: flex;
    width: 7vw;
    height: 4vh;
    bottom: 20px;
    right: 20px;
    justify-content: center;
    align-items: center;
    background-color: rgb(122, 190, 226);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    text-align: center;
    padding: 10px;
}

.modal-close:hover {
    background-color: rgb(67, 173, 234);
    border-color: rgb(50, 170, 235);
}

@keyframes modal {
    0% {
        width: 0;
        height: 0;
        transform: scale(0);
    }
    100% {
        width: 80%;
        height: 80%;
        transform: scale(1);
    }
}

@keyframes modalClose {
    0% {
        width: 80%;
        height: 80%;
        transform: scale(1);
    }
    100% {
        width: 0;
        height: 0;
        transform: scale(0);
    }
}
