
@font-face {
    font-family: 'ProtestStrike-Regular';
    src: url(fonts/ProtestStrike-Regular.eot);
    src: url(fonts/ProtestStrike-Regular.eot?#iefix) format('embedded-opentype'),
         url(fonts/ProtestStrike-Regular.otf) format('otf'),
         url(fonts/ProtestStrike-Regular.svg#ProtestStrike-Regular) format('svg'),
         url(fonts/ProtestStrike-Regular.ttf) format('truetype'),
         url(fonts/ProtestStrike-Regular.woff) format('woff'),
         url(fonts/ProtestStrike-Regular.woff2) format('woff2');
  }
  @font-face {
    font-family: 'Luckiest Guy';
    src: url(fonts/LuckiestGuy-Regular.eot);
    src: url(fonts/LuckiestGuy-Regular.eot?#iefix) format('embedded-opentype'),
        url(fonts/LuckiestGuy-Regular.woff2) format('woff2'),
        url(fonts/LuckiestGuy-Regular.woff) format('woff'),
        url(fonts/LuckiestGuy-Regular.ttf) format('truetype'),
        url(fonts/LuckiestGuy-Regular.svg#LuckiestGuy-Regular) format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


  body{
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  h2, h3{
    margin:0; padding:0;  }
  
  ::placeholder {
    color: white;
  }
  

 #tie-indicator{
    display: block;
    position: fixed;
    top: 50px;
    left: 50px;
    z-index: 100;
 }

   #opponent-options button {
    width: 200px;
    background-color: black;
    color: white;
    font-family: "ProtestStrike-Regular", Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    overflow: hidden;
    position: relative;
    }

    #opponent-options button:hover {
        background-color: #ff0000;
    }
   
  

  body, html {
    height: 100%;
    margin: 0;
    font-family: 'ProtestStrike-Regular', 'Arial Narrow Bold', sans-serif;
    color: white;overflow-x: hidden;
    font-size:1.3rem;
    background-color: #4158D0;
background-image: linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);

}

input[type="text"] {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    margin: 0;
    font-family: 'ProtestStrike-Regular', 'Arial Narrow Bold', sans-serif;
    color: white;overflow-x: hidden;
    font-size: 0.8rem;
    margin-top:20px;
  }
  #inputId:-webkit-autofill {
    color: white !important;
    }

#opponent-options, #game-container{
    display: none;
    font-size:0.9rem;
}
#opponent-name{

    font-family: 'ProtestStrike-Regular', 'Arial Narrow Bold', sans-serif;
    color: white;overflow-x: hidden;
}

#game-container {
    display: flex;
    align-items: center; /* Vertikal zentrieren */
    justify-content: center; /* Horizontal zentrieren */
    width: 100vw; /* Ganze Breite */
    height: 100vh; /* Ganze Höhe */
    position: fixed; /* Fixiert den Container im Fenster */
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Optional: Halbtransparenter Hintergrund */
    z-index: 1; /* Höher als alles andere, falls nötig */
}

.status-message {
    transition: opacity 0.5s ease;
}
#game-status{    position: fixed;
    top: 5px;
    width: 100%;
    /* left: 30%; */
    text-align: center;
    z-index: 200;
    font-size: 0.8rem;
}

#greeting-message{
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
#opponent-options{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    justify-content:center;
    height: 100%;
}


#opponent-options button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
}

/* CSS für temporäre Nachricht */
.temporary-message {
    background-color: rgba(0, 0, 0, 0.35);
    background-position: top center;
    background-size: contain;
    background-repeat: no-repeat;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: fixed;
    margin-top: 0px;
    opacity: 0; /* Unsichtbar bis Animation aktiviert */
    align-content: center;
    flex-wrap: nowrap;
    pointer-events: none;

    color: #fff;
    font-family: 'Luckiest Guy', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 10px 20px;
    font-size: 1.4em;
    text-shadow: 2px 2px black, 0 0 0.2em black;
    text-align: center;
    z-index: 10;

    /* Transformation zurücksetzen */
    transform: rotate(0deg) scale(1);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.temporary-message h2,
.temporary-message h3 {
    max-width: 80%;
}

/* Keyframes für sanfteren Einstieg */
@keyframes fadeZoomRotate {
    0% {
        opacity: 0;
        transform: scale(1) rotate(0deg);
    }
    10% {
        opacity: 1;
        transform: scale(1.05) rotate(0deg);
    }
    90% {
        opacity: 1;
        transform: scale(1.05) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(1.1) rotate(0deg);
    }
}

/* Klasse zum Aktivieren der Animation */
.temporary-message.show {
    visibility: visible;
    animation: fadeZoomRotate 3s ease-in-out forwards; /* Behält den Endzustand */
}




#cards {display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    margin-top: 50px;
}

.card-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

#player_card , #opponent-card{
    z-index: 100;
    width: 300px;
    height: 450px;
    border-radius: 30px;
    border: 10px solid #fff;
    margin-bottom: 5px;
    background-color: #fff;
    overflow: hidden;box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
#player_card img, #opponent-card img{
    width: 100%;
    position: relative;
    z-index: -1;
    border-radius: 10px;

    margin-bottom: -30px;
}
#player_card button, #opponent-card button{
    text-align: justify;
	text-align-last: none;
    width:50%;
    background-color: antiquewhite;
    border: 0;
    padding: 13px;
    margin-top: 1px;
    border-right: 1px solid white;
    text-align-last: justify;
}
#player_card button:hover{
    background-color: white;
}

#player_card h3, #opponent-card h3{
    color: wheat;
    text-shadow: 0px 3px 5px black; 
    height: 75px;
    margin-bottom: -76px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid white;
    
    text-align: center;

    margin-top: 0px;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;

    margin-top: -455px;

    font-size: 1.3rem;
}
#player_card p, #opponent-card p{
    text-align: right;
    color: wheat;
    text-shadow: 0px 3px 5px black;
    margin: -20px auto 5px auto;
    padding-right: 10px;
}


.card-count {
    font-size: 16px;
    font-weight: bold;
}

/* Flip-in effect */
@keyframes flipIn {
    0% {
        transform: scaleX(0) scaleY(1.1); /* Start from 0 width */
    }
    100% {
        transform: scaleX(1); /* Settle at full width */
    }
}

/* Apply the flip-in effect when the class is removed */
.flip-in {
    animation: flipIn 0.6s ease forwards; /* Customize duration as needed */
}
.move-to-winner {
    animation: move-to-winner 1s forwards;
}
.move-to-loser {
    animation: move-to-loser 1s forwards;
}

@keyframes move-to-winner {
    to { transform: translateX(50px) translateY(-50px) scale(0.5); opacity: 0; }
}
@keyframes move-to-loser {
    to { transform: translateX(-50px) translateY(-50px) scale(0.5); opacity: 0; }
}

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

.card-stack {
    position: relative;
    width: 300px; /* Breite des Kartenstapels an die Kartengröße anpassen */
    height: 450px; /* Höhe des Kartenstapels */
}

@keyframes dealCard {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    100% {
        transform: translateY(0) rotate(var(--rotate-angle));
        opacity: 1;
    }
}

.card {
    /* Ensure rotation is applied on render */
    transform: rotate(var(--rotate-angle));
    background: red;
    margin: 20px;
    opacity: 0;
    width: 300px;
    height: 450px;
    border-radius: 30px;
    border: 10px solid #fff;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    transition: transform 0.5s, opacity 0.5s;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 12px; /* Leichter Schatten für realistisches Aussehen */
}


/* Anpassungen für active-card */
#player_card {
    opacity: 0; /* Startzustand */
    visibility: hidden; /* Unsichtbar bis Animation abgeschlossen */
    transition: opacity 0.5s ease-in-out;
    position: relative;
    display: block;
    z-index: 20;
    margin:-10px;
    top: 25px;
}



/* CSS für das Einblenden der opponent-card */
.opponent-slide-in {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

#opponent-card {
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
}




/* Highlight-Stil für das ausgewählte Attribut */
.highlight-attribute {
    background-color: yellow; /* Beispielhighlight-Farbe */
    font-weight: bold;
    border: 2px solid orange;
}

/* Karten verschwinden nach oben */
.move-up {
    animation: moveUp 0.7s forwards;
}

@keyframes moveUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100px); opacity: 0; }
}

/* Neue Karten erscheinen animiert von oben */
.deal-card {
    animation: dealFromTop 0.7s ease-in-out forwards;
    opacity: 0;
}

@keyframes dealFromTop {
    0% { transform: translateY(-100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.disabled-button {
    opacity: 1;
    cursor: not-allowed;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeOutShrink {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.fade-out-shrink {
    animation: fadeOut 0.5s ease;
}
@keyframes flipOut {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    100% {
        transform: rotateY(90deg);
        opacity: 0;
    }
}

.flip-out {
    animation: flipOut 0.5s ease forwards;
    transform-origin: center right; /* Adjust the pivot for a more natural effect */
}

#player-card-count, #opponent-card-count{
    display: inline-block;
    position:fixed;
    border: 0px;
    top: 0px;
    border-radius: 100px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    padding: 9px 11px;
    background: white;
    margin-top: 0;
    font-weight: 500;
    font-size: 1.3rem;
}
#player-card-count{
    left: -5px;
}
#opponent-card-count{
    right: -5px;
}

#game-status-bar {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 2px;
    font-size: 14px;
    color: #000;
    position: fixed;
    justify-content: space-between;
    z-index: 101;
}

#player-info {
    text-align: left;
    z-index: 102;
    display: block;
    margin-left:45px;
    
}
#opponent-info {
    text-align: right;
    padding-top: 20px;
    margin-right: 55px;
}
#progress-container {
    position: fixed;
    top: 0px;
    height: 44px;
    background-color: #000;
    border-radius: 0;
    left: 0;
    overflow: hidden;
    opacity: 0.4;
    width: 100%;
    box-shadow: 0px 6px 12px 0px #333, inset 0 10px 10px #000;
    z-index: 1;
}

#progress-bar {
    height: 100%;
    width: 50%; /* Default */
    background-color: #999; /* Neutral color */
    transition: width 0.5s ease, background-color 0.5s ease;
    border-radius: 0 50px 50px 0;
}


.custom-cursor {
    caret-color: transparent; /* Standard-Caret unsichtbar machen */
    position: relative;
}

.custom-cursor::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px; /* Breite des "viereckigen" Cursors */
    height: 100%;
    background-color: black; /* Farbe des Cursors */
    animation: blink 1s steps(1) infinite; /* Blinken */
    pointer-events: none;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Chatbox Styling */
#chatbox {
    
    flex-direction: column;
    align-content: flex-end;
    justify-content: flex-start;
    color: #00ff00; /* Green text for terminal-like look */
    font-family: monospace; /* Monospaced font for retro feel */
    font-size: 14px;
    padding: 10px;
    overflow-y: auto;
    height: 150px; /* Set a fixed height for scrolling */
    text-align: left;
    pointer-events: none;
}
#chat-input{

    color: #00ff00; /* Green text for terminal-like look */
    font-family: monospace; /* Monospaced font for retro feel */
    font-size: 14px;
    padding: 10px;
}

/* Blinking Cursor Animation */
@keyframes blinker {
    50% { border-right-color: transparent; }
}


#restart-game-button{
    position: fixed;
    left: 10px;
    bottom: 10px;
    border-radius: 30px;
    background-color: black;
    color: white;
    height: 30px;
    font-weight: normal;
    font-size: 0.7rem;
    z-index: 9;
    border: 0px;
    padding: 1px 12px;
}