body {
    overflow-x: hidden;
    background-color: blue;
    height:100vh;
    font-family: "MS PGothic", "MS Gothic", "SimSun", "Fixedsys", monospace;
}

main {
    padding-top: 2em;

    
   height: 100%;
    display: flex;
    flex-direction: row-reverse;

}

#right{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex:0 0 300px;
    background-color: blue;
    
}
#items{
    position:fixed;
}
#stuff{
    flex:1;
    background-color: #5A605E;
    height: fit-content;
    padding: 20px;
}




#draw {
    transform: rotate(12deg);
}
#back{
    transform: rotate(-12deg);
}

#back a:hover{
    transform: translateY(-5px);
}


.items:nth-child(odd) {
    transform: rotate(-1.5deg);
}

.items:nth-child(even) {
    transform: rotate(1deg);
}

.items {
    display: inline-block;
    text-decoration: none;
    width: 300px;
    
}
a.items{
    align-items: center;
    justify-content: center;
}

.img-wrap {
    position: relative;
    width: 300px;
    height: 150px;
    
}

.img-wrap img {
    display: block;

    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(6px 10px 12px rgba(0, 0, 0, 0.2));
}

.img-wrap .hover {
    display: none;
}

.img-wrap:hover .normal {
    position: absolute;
    inset: 0;
    display: none;
    transition: opacity ease;
}

.img-wrap:hover .hover {
    display: block;
}


.mini-titles {
    width: 40%;
    transition: all 0.3s ease-in-out;
}

.mini-titles:hover {
    transform: translateY(-5px);
}

#draw .mini-titles {
    width: 70%;
}


.warning {
    background: #c0c0c0;
    border: 3px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    
    width: 300px;
    padding: 2px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.8); 
}

.warning-title {
    background: #000080;
    color: white;
    padding: 3px 10px;
    font-weight: bold;
    font-size: 14px;
    text-align: left;
    font-family: "MS Sans Serif", "Arial", sans-serif;
}

.warning-content {
    padding: 20px;
    text-align: center;
    color: #000;
}

.warning-icon {
    font-size: 40px;
    color: #ff0000; 
    display: block;
    margin-bottom: 10px;
}

.warning-content p {
    font-family: "Comic Sans MS", cursive; 
    font-weight: bold;
    color: #0000ff;
    margin-bottom: 15px;
}

button {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 5px 20px;
    cursor: pointer;
    font-family: "MS Sans Serif", sans-serif;
}

button:active {
    border-color: #808080 #ffffff #ffffff #808080; /* 按下时的内凹效果 */
}



.imgs {
    column-count: 2;
    column-gap: 15px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

}
.imgs img {
    width: 100%; 
    display: block;
    height: auto; 

}

.masonry-item{
    background-color: antiquewhite;
    border-top: 1px solid #b8f0e3;
    padding-bottom: 4px;
    border-radius: 0;
}

#footer{
    text-align: center;
}

#hover-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    z-index: 9998;
}

#hover-preview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none;
    pointer-events: none;
    
    width: 95vw;
    height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hover-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
}


@media screen and (min-width: 768px) and (max-width: 1024px) {
    #title img {
        width: 70%;
        transform: rotate(15deg);
    }
}

@media screen and (max-width: 768px) and (orientation:portrait) {
    body {
        overflow: auto;
    }

    .pics {
        display: none;
    }

    #title {
        position: static;
    }

    #title img {
        width: 90%;
    }
}