@import url(https://www.fontspace.com/skulls-and-crossbones-font-f40791);

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-image: url('../otherimages/MHAJ-header-mobile (1).jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1c1c1c !important;
    overflow-x: hidden;
    overflow-y:hidden;
    position: relative;
    z-index: -99999;
}

.header-project {
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
    font-family: 'Ethnocentric Rg', sans-serif;
    font-size: 100px;
    color: #6f706f;
    -webkit-text-stroke: 5px #515251;
    text-shadow: 9px 9px 5px black;
    user-select: none;
    z-index: -1;
    animation: glow-dark 1s ease-in-out infinite alternate;
}

.header-profile {
    width: 500px;
    margin-top: 30px;
    height: auto;
    user-select: none;
    z-index: 1;
    text-decoration: none;
}

.header {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    z-index: -3;
}

.classic {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.classic-info-panel {
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sakka {
    display: flex;
    gap: 5px;
    flex-direction: column;
    margin-top: 20px;
    box-shadow: 1px 2px 20px black;
    border-radius: 17px;
}

.guess-prompt-board {
    width: 380px;
    padding: 28px 32px;
    background: rgba(0, 0, 0, 0.75);
    border: 3px solid #232323;
    border-radius: 17px;
    box-shadow: 0 4px 30px black, inset 0 0 20px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.guess-prompt-text {
    font-family: "Koulen", sans-serif;
    font-size: 1.45rem;
    background-image: linear-gradient(#fff000, #a19800);
    -webkit-text-stroke: 0.5px black;
    color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.5;
    user-select: none;
}

.classic-char-info {
    height: auto;
    width: 60%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.classic-hints {
    width: 100%;
    height: auto;
    margin-bottom: 36px;
    display: flex;
    justify-content: space-around;
}

.classic-panel {
    width: 480px;
    border-radius: 20px;
    font-size: 1rem;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    height: 110px;
}

.hint-button {
    border-radius: 12px;
    color: #777777;
    font-size: 20px;
    height: 120px;
    width: 120px;
    border: none;
    pointer-events: none;
}

#hint1.active {
    background: rgba(0, 0, 0, 0.8);
    pointer-events: all;
}

.classic-guess-div {
    background: #161616;
    box-shadow: 2px 1px 20px black;
    border-radius: 30px;
    width: auto;
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.classic-input {
    font-family: "Koulen", sans-serif;
    font-size: 1rem;
    width: 100%;
    height: 100%;
    padding-left: 15px;
    border-radius: 40px;
    border: none;
    background: #515251;
    outline: none;
    color: white;
    box-sizing: border-box;
}

.submit-guess-button {
    border-color: black;
    border-radius: 30px;
    color: #424242;
    height: 90%;
    width: 70px;
    transition: all .1s;
    margin: 2px;
}

.guesses-container {
    height: auto;
    width: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.character-traits {
    display: grid;
    grid-template-columns: repeat(10, 120px);
    justify-content: center;
    align-items: center;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
    pointer-events: none;
}

.trait {
    width: 120px;
    text-align: center;
    font-family: "Koulen", sans-serif;
    font-size: 21px;
    padding: 6px;
    background-image: linear-gradient(#fff000, #a19800);
    -webkit-text-stroke: 0.3px black;
    color: transparent;
    background-clip: text;
    border: 2px solid black;
    box-sizing: border-box;
}

.guesses-div {
    height: 360px;
    width: auto;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    perspective: 1200px;
    scrollbar-width: thin;
    scrollbar-color: #333 #1c1c1c;
}

    .guesses-div::after {
        content: "";
        flex: 0 0 80px;
    }

.guesses-square-group {
    display: grid;
    grid-template-columns: repeat(10, 120px);
    justify-content: center;
    margin-top: 5px;
}

.square {
    position: relative;
    overflow: hidden;
    border: 2px solid black;
    width: 120px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 0.85rem;
    word-break: break-word;
    box-sizing: border-box;
    transform-style: preserve-3d;
    transform-origin: left;
    transform: rotateY(90deg);
    transition: transform 1s ease;
}

    .square.show {
        transform: rotateY(0deg);
    }

    .square.correct {
        background-color: #4CAF50;
    }

    .square.wrong {
        background-color: #F44336;
    }

    .square.partial {
        background-color: #f0c030;
    }

.multi-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 2px;
    padding: 2px;
}

.multi-part {
    font-family: "Koulen", sans-serif;
    font-size: 18px;
    text-align: center;
    line-height: 1.1;
    width: 100%;
    border-bottom: 2px solid black;
    padding-bottom: 2px;
}

    .multi-part:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.part-match {
    color: #4CAF50;
    text-shadow: 0 0 6px #4CAF50;
}

.square-text {
    position: relative;
    font-family: "Koulen", sans-serif;
    -webkit-text-stroke: 1px black;
    text-shadow: 2px 2px 5px black;
    font-size: 22px;
    z-index: 2;
    padding: 2px 4px;
    line-height: 1.2;
    word-break: break-word;
    text-align: center;
    user-select: none;
}

.arrow-img {
    position: absolute;
    justify-items: center;
    align-items: center;
    width: 110px;
    height: 90px; 
    object-fit: fill;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.guess-pic {
    width: 116px;
    height: 96px;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
    pointer-events: none;
}

.guess-row {
    display: grid;
    grid-template-columns: repeat(10, 120px);
    margin-top: 5px;
    justify-content: center;
}

.guess-cell {
    width: 120px;
    min-height: 60px;
    padding: 6px;
    border: 1px solid #333;
    background: #222;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 0.85rem;
    word-break: break-word;
}

.search-wrapper {
    position: relative;
    width: 380px;
    height: 90%;
    margin: 2px;
}

.classic-input {
    width: 100%;
    height: 100%;
    padding-left: 15px;
    border-radius: 40px;
    border: none;
    font-family: "Koulen", sans-serif;
    font-size: 1rem;
    background: #383838;
    outline: none;
    color: white;
    box-sizing: border-box;
}

.search-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: #333;
    border-radius: 12px;
    box-shadow: 0 4px 20px black;
    z-index: 9999;
    display: none;
}

    .search-dropdown.open {
        display: block;
    }

.search-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    cursor: pointer;
    background-image: linear-gradient(#fff000, #a19800);
    -webkit-text-stroke: 0.2px black;
    color: transparent;
    background-clip: text;
    text-transform: uppercase;
    font-family: "Koulen", sans-serif;
    font-size: 1.1rem;
    transition: background 0.15s;
}

    .search-option:hover,
    .search-option.highlighted {
        background: #2a2a2a;
        background-image: linear-gradient(#fff88c, #eee100);
        -webkit-text-stroke: 0.2px black;
        color: transparent;
        background-clip: text;
    }

    .search-option img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 6px;
        border: 1px solid #333;
    }

.win-panel {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.75);
    border: 3px solid #232323;
    border-radius: 17px;
    padding: 24px 36px;
    box-shadow: 0 4px 30px black, inset 0 0 20px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.win-correct-title {
    font-family: "Koulen", sans-serif;
    font-size: 2rem;
    background-image: linear-gradient(#fff000, #a19800);
    -webkit-text-stroke: 1px black;
    color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.win-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.win-pic {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid black;
    box-shadow: 0 0 15px black;
}

.win-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.win-name {
    font-family: "Koulen", sans-serif;
    font-size: 2rem;
    color: white;
    -webkit-text-stroke: 1px black;
    text-shadow: 2px 2px 10px black;
}

.win-play-again {
    font-family: "Koulen", sans-serif;
    font-size: 1.2rem;
    background: #1c1c1c;
    color: white;
    border: 2px solid black;
    border-radius: 12px;
    padding: 8px 20px;
    cursor: pointer;
    box-shadow: 2px 2px 8px black;
    transition: background 0.2s;
}

    .win-play-again:hover {
        background: #5a3010;
    }

.haki-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    width: 100%;
}

.haki-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    box-sizing: border-box;
}

.haki-badge-match {
    background: rgba(76, 175, 80, 0.25);
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.95), 0 0 8px rgba(76, 175, 80, 0.75);
}

.haki-part {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}

.give-up-button {
    font-family: "Koulen", sans-serif;
    font-size: 20px;
    background: rgba(180, 40, 40, 0.85);
    color: white;
    border: 2px solid #7a1a1a;
    border-radius: 100px;
    padding: 0 16px;
    height: 90%;
    cursor: pointer;
    transition: background 0.2s;
    -webkit-text-stroke: 1px black;
    white-space: nowrap;
    margin: 2px;
}

    .give-up-button:hover {
        background: rgba(220, 50, 50, 0.95);
    }