/* @import url("/assets/css/index/_modal.css"); */

main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 0 auto;
    width: 100vw;
    height: 100%;
}

.content {
    width: 100vw;
    height: 100%;
}

.column {
    display: flex;
    flex-direction: row;
    width: 5vw;
    margin-left: 5vw;
    margin-right: 5vw;
}

.column>* {
    margin: 1vw;
}

.game,
.game-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 27vw;
    margin: 2.5vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-left: 50%;
    transform: translateX(-50%);

    min-height: 20vh;
}

.person-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    min-height: 10vh;
}

.photo-container {
    width: 250px;
    height: 250px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #ddd;
}

.photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
    background-position: center;
    background-size: cover;
    transition: opacity 0.3s ease;
}

.placeholder-image.hidden {
    opacity: 0;
}

.photo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.photo-wrapper img.photo {
    position: absolute;
    top: 0;
    left: 0;
}

.buttons-container {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
    /* transform: translateX(-37.5%); */
}

.choice-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 200px;
    margin-left: 1vw;
    margin-right: 1vw;
    margin-bottom: 3vh;
}

.choice-btn.linkedin {
    background-color: var(--linkedin-color);
    color: white;
}

.choice-btn.interpol {
    background-color: var(--interpol-color);
    color: white;
}

.choice-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-2px);
}

.choice-btn:active:not(:disabled) {
    transform: translateY(0);
}

.details-container {
    border-top: 1px solid #ddd;
    padding: 1.5rem;
    display: none;
}

.person-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.person-age {
    color: #666;
    margin-bottom: 1rem;
}

.person-description {
    line-height: 1.5;
}

.result-container {
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    text-align: center;
    display: none;
    flex-direction: column !important;
    align-items: center !important;
}

.result-correct {
    color: var(--success);
    font-weight: bold;
}

.result-incorrect {
    color: var(--error);
    font-weight: bold;
}

.next-btn {
    background-color: var(--dark-gray);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s ease;
    max-width: 200px;
}

.next-btn:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.next-btn:active {
    transform: translateY(0);
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.photo-container {
    position: relative;
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--dark-gray);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

footer {
    text-align: center;
    padding: 1.5vh;
    margin: 0;
    background-color: #ffffff7e;
    backdrop-filter: blur(10px);
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #666;
    height: fit-content;
    max-height: min-content;
}

.settings {
    display: flex;
    align-items: center;
    height: 50px;
    border: none;
    padding: 0 1rem;
    background-color: #ffffff7e;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.settings fieldset {
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.settings label {
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
}

.settings label:hover {
    color: var(--linkedin-color);
}

.settings input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.separator {
    width: 1px;
    height: 20px;
    background-color: #ccc;
    margin: 0 10px;
}

.language-selector {
    padding: 5px;
    border: none;
    background-color: transparent;
    border-radius: 3px;
    cursor: pointer;
    width: fit-content;
    padding-left: 10px;
}

.language-selector:focus {
    outline: none;
}

.language-selector:hover {
    color: var(--linkedin-color);
}

.settings nav {
    margin-left: 0.75rem;
    display: flex;
    gap: 1.5rem;
    align-items: space-around;
}

.settings nav a {
    text-decoration: none;
    color: var(--dark-gray);
    transition: color 0.2s ease;
}

.settings nav a:hover {
    color: var(--linkedin-color);
}

.settings nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--linkedin-color);
    transition: width 0.2s ease;
}

.settings nav a:hover::after {
    width: 100%;
}

.settings .disabled {
    pointer-events: none;
    opacity: 0.3;
}

.pixelCon {
    position: fixed;
    width: 110%;
    height: 110%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    z-index: 1;
}

.pixel {
    background: #ffd7d7;
    width: 3%;
    height: 1%;
    padding-top: 10%;
    float: left;
    opacity: 0;
    animation: blink 6s infinite;
    z-index: 2;
}

@keyframes blink {

    0%,
    25%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.4;
    }
}

#soundtrack-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 250px;
    background: #ffffffda;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    font-family: "Segoe UI", sans-serif;
    padding: 12px;
    z-index: 9999;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

#toggle-mute {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
    padding: 4px;
}

#volume-slider {
    flex: 1;
    margin: 0 8px;
    cursor: pointer;
}

#track-info {
    text-align: center;
    font-weight: bold;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

.button-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

#play-pause,
#next-track {
    flex: 1;
    aspect-ratio: 2.5 / 1;
    font-size: 20px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

#play-pause:hover,
#next-track:hover {
    background: #e6e6e6;
}

#selector-row {
    display: flex;
}

#track-selector {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.effect-blur {
    filter: blur(4px);
}

.effect-blur.effect-BnW {
    filter: blur(4px) grayscale(100%);
}

.effect-blur.effect-hue {
    filter: blur(4px) hue-rotate(90deg);
}

.effect-blur.effect-saturate {
    filter: blur(4px) saturate(3);
}

.effect-blur.effect-sepia {
    filter: blur(4px) sepia(100%) brightness(0.8);
}

.effect-BnW {
    filter: grayscale(100%);
}

.effect-hue {
    filter: hue-rotate(90deg);
}

.effect-invert {
    image-rendering: pixelated;
}

.effect-saturate {
    filter: saturate(3);
}

.effect-sepia {
    filter: sepia(100%) brightness(0.8);
}

.green {
    color: green;
    font-weight: bold;
}

.red {
    color: red;
    font-weight: bold;
}

.concat {
    display: flex;
    flex-direction: collumn;
}

.result-type {
    margin-left: 5px !important;
    font-weight: bold !important;
}

.banner {
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
}


@media (max-width: 1200px) {

    .column {
        display: none;
    }


    .game {
        width: calc(100vw - 4rem);
    }

}

@media (max-width: 600px) {
    .photo-container {
        width: 200px;
        height: 200px;
    }

    .buttons-container {
        flex-direction: column;
    }

    .button-row {
        height: 5vh;
    }

    #selector-row {
        display: none;
    }

    main {
        width: 98vw;
    }

    .adsbygoogle {
        max-width: 75vw
    }
}

@media (max-width: 2300px) {
    .game {
        width: 40vw;
    }
}