@import url("structureLines.css");
@import url("loginStyle.css");
@import url("googleFonts.css");

:root {
    --burgunder: #D4003B;
    --dimGray: #696969;
    --hunterGreen: #3F704D;
    --lightGreenPastel: #E9EDC9;
    --lightIvory: #FEFAE0;
    --mauve: #7A4988;
    --oliveGray: #CCD5AE;
    --royalBlue: #396AB1;
    --saddleBrown: #8B4513;
    --softPeachPink: #FAEDCD;
}

body {
    align-items: center;
    background-color: var(--lightGreenPastel);
    display: flex;
    font-family: 'Yu Gothic', sans-serif;
    font-size: 16px;
    height: 100vh;
    justify-content: center;
    margin: 0;
    overflow-y: auto;
}

.flashcard {
    border-radius: 10px;
    box-shadow: 0 0 10px var(--oliveGray);
    display: none;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    z-index: 2;
}

h2 {
    font-size: 18px;
    margin-bottom: 10px;
}
h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

p {
    line-height: 1.5;
    margin: 0;
}

#cy {
    bottom: 20px;
    left: 20px;
    position: absolute;
    top: 120px;
    width: calc(100% - 40px);
}

#import-anki {
    width: 60%;
}

#submit-get-anki-kanji {
    margin: 20px 0 10px 10px;
}

#importForm {
    display: flex;
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
}

.error {
    color: red;
}

.switch input {
    display: none;
}

.switch {
    display: inline-block;
    height: 30px;
    position: relative;
    width: 60px;
}

.slider {
    border: 4px solid transparent;
    border-radius: 30px; /* Rundung des Sliders */
    bottom: 0;
    box-shadow: 0 0 0 2px var(--saddleBrown); /* Schatten um den Slider */
    cursor: pointer;
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.2s; /* Animationstransition */
}

.slider:before {
    background-color: var(--saddleBrown);
    border-radius: 30px;
    content: "";
    height: 100%;
    position: absolute;
    transform: translateX(-30px);
    transition: 0.2s;
    width: 100%;
}

input:checked + .slider:before {
    transform: translateX(30px);
}

input:checked + .slider {
    box-shadow: 0 0 0 2px var(--saddleBrown);
}

#slider-container {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: center;
}

#neighbour-svg {
    background-image: url('../images/neighbour.svg');
    background-size: cover;
    display: inline-block;
    height: 27px;
    width: 26px;
}

#neighbour-neighbour-svg {
    background-image: url('../images/neighbourNeighbour.svg');
    background-size: cover;
    display: inline-block;
    height: 30px;
    width: 25px;
}

#graph-btns {
    align-items: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    left: 20px;
    position: absolute;
    top: 75px;
    z-index: 2;
}

.anki-btn {
    background-color: var(--lightIvory);
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--oliveGray);
    color: var(--saddleBrown);
    cursor: pointer;
    outline: none;
    padding: 8px;
    width: 100px;
}

.anki-btn:disabled {
    background-color: #D3D3D3;
    border: none;
    border-radius: 10px;
    color: var(--dimGray);
    cursor: default;
    outline: none;
    padding: 8px;
    width: 100px;
}


#recommendation-container {
    align-items: center;
    display: flex;
    gap: 15px;
    height: 50px;
    left: 50%;
    position: absolute;
    top: 58px;
    transform: translateX(-50%);
    width: 800px;
    z-index: 90;
    color: var(--saddleBrown);
}

#recommendation-window {
    align-items: center;
    background-color: var(--lightIvory);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--oliveGray);
    display: flex;
    gap: 15px;
    height: 35px;
    left: 60%;
    padding: 5px;
    position: relative;
    text-align: center;
    transform: translateX(-60%);
    width: 600px;
    justify-content: center;
    flex-direction: row;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.5);
    }
    100% {
        transform: translateX(-50%) scale(1);
    }
}

.pulse {
    animation-name: pulse;
    animation-duration: 2s;
    animation-iteration-count: 2;
}

.window {
    background-color: var(--lightIvory);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--oliveGray);
}

.blur-background {
    filter: blur(5px);
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 10;
}

#loading-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.50);
    z-index: 100;
}
.spinner {
    border: 16px solid var(--lightGreenPastel);
    border-top: 16px solid var(--saddleBrown);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#anki-open-import-btn {
    margin-right: 20px;
}

#anki-management {
    text-align: center;
}

#ankiConnectInfo {
    cursor: help;
    text-decoration: underline;
    text-decoration-color: red;
}

#checkmark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

#checkmark > i {
    font-size: 220px;
    color: var(--hunterGreen);
}

#rikusho-popup {
    z-index: 10;
    max-width: 80%;
    padding: 10px;
    color: var(--saddleBrown);
}

.li-center {
    align-content: center;
    display: flex;
}

#export-close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
}