/* my cursors, base */
* {
    box-sizing: border-box;
    cursor: url(cursor.cur), auto;
}

a, button, .clickable {
    cursor: url(hover.cur), pointer !important;
}

:root {
    --primary-color:   #fff4e0;
    --secondary-color: #d69e2d;
    --tertiary-color:  #4b7e29;
}

body {
    background-image: url(/img/bg.png);
    font-family: "DotGothic16", sans-serif;
    font-weight: 500;
    font-style: normal;
    word-break: break-word;
    margin: 0;
}

/* layout */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15px;
    padding-bottom: 15px;
    position: relative;
    overflow-x: hidden;
}

/* decorations */
.bg-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
}

.clover-left {
    position: fixed;
    left: 0;
    bottom: -11%;
    width: 210px;
    transform: rotate(23deg);
    pointer-events: none;
}

.charm {
    position: fixed;
    right: 3%;
    top: -5%;
    transform: rotate(-15deg);
    width: 250px;
    pointer-events: none;
}

.seal {
    position: fixed;
    right: 4%;
    top: 56%;
    width: 80px;
    pointer-events: none;
}

.glass-clover {
    position: fixed;
    right: 9%;
    bottom: -6%;
    width: 150px;
    pointer-events: none;
}

.konoe-back {
    position: fixed;
    left: -10%;
    top: 0;
    height: 100%;
    width: auto;
    z-index: -1;
    pointer-events: none;
}

/* main container */
.main-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 900px;
    max-width: 90vw;
    background-color: rgba(255, 255, 255, 0.8);
    border: 3px solid var(--secondary-color);
    border-radius: 20px;
    flex-shrink: 0;
}

/* main with parts */
.main-left {
    flex: 1 1 0;
    min-width: 0;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
}

/* music player */
.player {
    margin-top: 5px;
    width: 100%;
    max-width: 600px;
    height: 20px;
    color: var(--secondary-color);
    font-size: 20px;
    margin-left: 20px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.player-container {
    flex: 1 1 0;
    min-width: 0;
    height: 30px;
    overflow: hidden;
    position: relative;
}

.player-button {
    flex-shrink: 0;
    width: 40px;
    text-align: end;
    cursor: pointer;
}

.ico {
    padding-right: 900px;
    color: var(--secondary-color);
    transition: 0.3s;
    font-size: 20px;
}

.song-info {
    display: flex;
    white-space: nowrap;
    align-items: center;
    height: 100%;
}

.song-info-cont {
    display: inline-block;
    padding-left: 100%;
    animation: song-info 11s linear infinite;
}

@keyframes song-info {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* header (maybe replace later?) */
.main-img {
    position: relative;
}

.main-img img {
    width: 98%;
    height: 200px;
    margin: 10px;
    /* padding: 3px; */
    display: block;
    /* change to border image later */
    border: 3px solid var(--secondary-color);
    border-radius: 20px;
    object-fit: cover;
}

.main-img span {
    position: absolute;
    bottom: 1px;
    right: 14px;
    font-size: 77px;
    color: #fff;
    text-shadow: 4px 4px 4px rgba(0,0,0,0.5);
}

.main-img span:hover {
    transform: scale(110%);
    cursor: pointer;
}

.main-img span:active {
    transform: rotate(-10deg);
    user-select: none;
}

/* main navigation */
.nav {
    background-color: transparent;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    height: 40px;
    margin: 15px;
    flex-wrap: wrap;
    /* border-radius: 25px; */
}

.nav button {
    cursor: pointer;
    font-family: "DotGothic16", sans-serif;
    background: transparent;
    border-bottom: 3px solid #d69e2d;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 15px;
    color: var(--secondary-color);
    font-size: 20px;
    font-weight: 500;
    box-shadow: rgba(0, 0, 0, 0.053) 0px 20px 25px -5px, rgba(0, 0, 0, 0.046) 0px 10px 10px -5px;
}

.nav button:hover  {
    transform: translateY(-2px);
}
.nav button:active { 
    transform: translateY(0); 
}

/* content */
.main-content-area {
    margin-top: -40px;
    padding: 16px;
}

.content h3 {
    color: var(--secondary-color);
    font-size: 25px;
    margin-bottom: 0px;
}

.content p {
    color: #333;
    padding-left: 10px;
    padding-bottom: 10px;
}

.hint {
    margin-top: -20px;
    font-size: 12px;
    opacity: 0.5;
}

em {
    cursor: pointer;
    color: #97690c;
    font-size: 14px;
}

#mail {
    cursor: pointer !important;
    text-decoration: none;
}

#sign {
    cursor: pointer !important;
    text-decoration: none;
}

/* my gallery */
.arts {
    column-count: 2;
    column-gap: 16px;
    width: 100%;
}

.arts img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 16px;
    object-fit: contain;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.arts img:hover {
    cursor: pointer;
    transform: translateY(-5px);
    box-shadow: rgba(0, 0, 0, 0.18) 0px 20px 25px -5px, rgba(0, 0, 0, 0.148) 0px 10px 10px -5px;
}

/* overlay */
.modal-overlay {
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 32, 3, 0.457);
    display: none;
    justify-content: center;
    align-items: center;
}
/* arts viewer */
.modal {
    background: rgba(255, 255, 255, 0);
    color: white;
    font-size: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 95vh;
}

.modal img {
    /* max-width: 500px;
    max-height: 70vh; */
    max-width: 88vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.btns-in-viewer {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.btns-in-viewer button {
    background-color: rgba(255, 255, 255, 0);
    border: none;
    padding: 10px 50px;
    cursor: none;
}

.btns-in-viewer img {
    height: 20px;
    width: 20px;
    cursor: pointer;
}

.btns-in-viewer img:hover  {
    transform: translateY(-5px); 
}
.btns-in-viewer img:active { transform: 
    translateY(0); 
}

/***************** comments (deleted) ******************/
/* iframe {
    width: 100%;
    height: 350px;
    padding: 15px;
    border: 2px dashed var(--secondary-color);
    border-radius: 20px;
    scrollbar-width: none;
} */

/* other (pt3) */
.kononolink {
    margin-left: 170px;
    width: 200px;
    height: 200px;
}

.kononolink:hover {
    transform: scale(115%);
}

/* typology table */
table th, td {
    width: 75vw;
    font-size: 15px;
    font-weight: 0;
    color: #333333f6;
    text-align: left;
    padding: 10px;
}

th, td {
    border-bottom: 3px dashed #d69e2d4f;
}

/* right sidebar (with poll on desktop) */
.main-right {
    flex: 0 0 280px;
    width: 280px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    top: 0;
    align-self: flex-start;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
}

/* close (on mobile) */
.sidebar-close-btn {
    display: none;
}

/* poll wrapper */
.sidebar-poll {
    width: 100%;
    padding: 15px;
    background-color: #ffffff00;
    border: 2px solid var(--secondary-color);
    border-radius: 15px;
    font-family: 'DotGothic16', sans-serif;
    color: #333;
}

.poll-header {
    margin-bottom: 12px;
    font-size: 20px;
    text-align: center;
    color: var(--secondary-color);
    text-transform: uppercase;
    border-bottom: 2px dashed var(--secondary-color);
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
}

.poll-options label {
    transition: color 0.1s;
}
.poll-options label:hover {
    color: var(--secondary-color);
}

.poll-actions {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.poll-btn {
    padding: 4px 10px;
    font-family: 'DotGothic16';
    border-radius: 4px;
    transition: opacity 0.2s;
}

.poll-btn:hover {
    opacity: 0.7;
}

.btn-vote {
    background-color: var(--secondary-color);
    color: #ffffff;
    border: none;
}

.btn-view {
    background-color: #ffffff;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

/* links */
.smth-right, .smth-rightx2 {
    width: 100%;
    height: 230px;
    display: flex;
    flex-direction: column;
    background-color: #ffffff00;
    border: 2px solid var(--secondary-color);
    border-radius: 15px;
    position: relative;
    transition: transform 0.2s;
}

.smth-right img, .smth-rightx2 img {
    width: 100%;
    height: 230px;
    padding: 10px;
    display: block;
    object-fit: cover;
}

.smth-right span, .smth-rightx2 span {
    font-family: 'DotGothic16', sans-serif;
    color: #333;
    position: absolute;
    top: 10px;
    left: 15px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.833);
    padding: 2px 5px;
    border-radius: 20px;
}

.smth-right:hover,
.smth-rightx2:hover {
    transform: translateY(-5px);
    box-shadow: rgba(0, 0, 0, 0.059) 0px 20px 25px -5px,rgba(0, 0, 0, 0.073) 0px 10px 10px -5px;
}

.smth-right:hover span,
.smth-rightx2:hover span {
    color: var(--secondary-color);
}

/* mobile topbar HIDDEN !!! */
.mobile-topbar {
    display: none;
}

/* backdrop */
/* .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(43, 32, 3, 0.4);
    z-index: 290;
} */

/* .sidebar-backdrop.visible {
    display: block;
} */

/* responsive for mobile *FINALLY!* */
@media (max-width: 768px) {
    body {
        padding-top: 30px;
    }

    /* topbar */
    .mobile-topbar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 44px;
        z-index: 300;
        background-color: var(--secondary-color);
        border-bottom: 2px solid var(--secondary-color);
        align-items: center;
        padding: 0 12px;
        gap: 8px;
        font-family: "DotGothic16", sans-serif;
        color: white;
        font-size: 18px;
        overflow: hidden;
    }

    .mobile-player-info {
        flex: 1 1 0;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-topbar-actions {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-shrink: 0;
    }

    .mobile-play-btn,
    .mobile-sidebar-toggle {
        font-size: 18px;
        color: white;
        padding: 4px;
    }

    /* desktop player hidden */
    .player {
        display: none;
    }

    /* hidden deco */
    .charm,
    .seal, .glass-clover {
        display: none;
    }

    /* main */
    .layout-wrapper {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .main-container {
        flex-direction: column;
        width: 100%;
        max-width: 100vw;
        border-radius: 0;
        border: none;
        /* border-left: none;
        border-right: none; */
    }

    .main-left {
        width: 100%;
        max-height: none;
        overflow-y: visible;
    }

    /* header */
    .main-img img {
        width: 100%;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        height: 180px;
    }

    .main-img span {
        font-size: 50px;
        right: 8px;
        bottom: 5px;
    }

    /* nav */
    .nav {
        margin: 10px 0;
        width: 100%;
        padding: 0 10px;
    }

    .nav button {
        font-size: 18px;
        padding: 10px 6px;
    }

    /* content */
    .main-content-area {
        margin-top: -20px;
        padding: 12px;
    }

    /* table resize */
    table th, td {
        font-size: 12px;
        margin: 10px;
    }


    /* gallery */
    .arts {
        column-count: 2;
    }

    /* other */
    .kononolink {
        margin-left: 23%;
        margin-top: 20px;
        transform: scale(130%);
    }

    /* sidebar with links */
    .main-right {
        display: none;
        position: fixed;
        top: 44px;        
        right: 0;
        width: min(320px, 88vw);
        height: calc(100vh - 44px);
        max-height: none;
        overflow-y: auto;
        z-index: 300;
        background-color: var(--primary-color);
        border-left: 3px solid var(--secondary-color);
        border-top: none;
        border-bottom: none;
        border-right: none;
        border-radius: 0;
        padding: 16px 12px;
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .main-right.open {
        display: flex;
        transform: translateX(0);
    }

    /* close button */
    .sidebar-close-btn {
        display: flex;
        align-self: flex-end;
        background: transparent;
        border: none;
        font-size: 22px;
        color: var(--secondary-color);
        padding: 4px 8px;
        margin-bottom: 8px;
        cursor: url(hover.cur), pointer !important;
    }

    /* links */
    .smth-right, .smth-rightx2 {
        width: 100%;
    }

    .smth-right img, .smth-rightx2 img {
        width: 100%;
    }

    /* deco */
    .konoe-back {
        top: 40px;
        opacity: 0.5;
    }

    .clover-left {
        width: 120px;
        opacity: 0.3;
    }

    /* modal */
    .modal img {
        max-width: 95vw;
        max-height: 75vh;
    }

    .btns-in-viewer button {
        padding: 10px 20px;
    }
}