@import './base.css';

button {
    width: 100%;
    max-width: 270px;
    padding: 10px;
    margin: 10px 0;
    background-color: var(--db3-color7);
    color: var(--db3-color0);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: var(--db3-color5);
}

.toast {
    visibility: hidden;
    min-width: 250px;
    /* margin-left: -125px; */
    background-color: var(--db3-color9);
    color: var(--bs-white);
    text-align: center;
    border-radius: 5px;
    padding: 6px;
    position: fixed;
    z-index: 1;
    /* left: 50%; */
    top: 10px;
    /* bottom: 30px; */
    font-size: 14px;
    transition: visibility 0s, opacity 0.5s linear;
    opacity: 1;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

body>header,
main,
footer {
    width: 100%;
    display: grid;
    place-items: center center;
    
}

header {
    width: 100%;
    height: 50px;
    position: fixed;
    background: var(--db3-color7);
    box-shadow: 0 2px 10px var(--db-black);
    /* border-radius: 5px; */
}

main {
    padding: 52px 5px 5px 5px;
}

footer {
    height: 50px;
    bottom: 0;
}



/* 超小设备 (手机, 600px 以下屏幕设备) */
@media only screen and (max-width: 600px) {
    body {
        width: 100%;

        footer {
            background-color: red;
        }
    }
}

/* 小设备 (平板电脑和大型手机，600 像素及以上) */
@media only screen and (min-width: 600px) {
    body {

        /* width: 100%; */
        footer {
            background-color: green;
        }
    }
}

/* 中型设备（平板电脑，768 像素及以上） */
@media only screen and (min-width: 768px) {

    body {

        /* width: 100%; */
        footer {
            background-color: blue;
        }
    }
}

/* 大型设备（笔记本电脑/台式机，992 像素及以上） */
@media only screen and (min-width: 992px) {

    body {

        /* width: 100%; */
        footer {
            background-color: orange;
        }
    }
}

/* 超大型设备（大型笔记本电脑和台式机，1200 像素及以上） */
@media only screen and (min-width: 1200px) {

    body {

        width: 1200px;

        footer {
            background-color: var(--color-background);
        }
    }
}