/* Unity */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#unity-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
}

#unity-container.unity-desktop {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%)
}

#unity-container.unity-mobile {
    width: 100%;
    height: 100%
}

#unity-canvas {
    background: #000
}

.unity-mobile #unity-canvas {
    width: 100%;
    height: 100%
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none
}

#unity-logo {
    width: 154px;
    height: 130px;
    background: url('TemplateData/unity-logo-dark.png') no-repeat center
}

#unity-progress-bar-empty {
    width: 141px;
    height: 18px;
    margin-top: 10px;
    margin-left: 6.5px;
    background: url('TemplateData/progress-bar-empty-dark.png') no-repeat center
}

#unity-progress-bar-full {
    width: 0%;
    height: 18px;
    margin-top: 10px;
    background: url('TemplateData/progress-bar-full-dark.png') no-repeat center
}

#unity-footer {
    position: relative
}

.unity-mobile #unity-footer {
    display: none
}

#unity-webgl-logo {
    float: left;
    width: 204px;
    height: 38px;
    background: url('TemplateData/webgl-logo.png') no-repeat center
}

#unity-build-title {
    float: right;
    margin-right: 10px;
    line-height: 38px;
    font-family: arial;
    font-size: 18px
}

#unity-fullscreen-button {
    float: right;
    width: 38px;
    height: 38px;
    background: url('TemplateData/fullscreen-button.png') no-repeat center
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none
}

/* Adaption */
html,
body {
    height: 100%;
    font-family: 'Montserrat';
    background: #111;
    color: #fff;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.start-container {
    text-align: center;
    z-index: 1;
}

h1 {
    font-size: 2em;
    font-weight: 800;
    margin: 0;
    margin-bottom: .25em;
    letter-spacing: .5em;
}

h2 {
    font-size: 0.9em;
    font-weight: 100;
}

h3 {
    font-size: 0.75em;
    font-weight: 100;
    color: grey;
}

.play-button {
    cursor: pointer;
    padding: 1em;
    margin: 1em;
    font-size: 1em;
    font-weight: bold;
    letter-spacing: 2px;
    width: 10em;
    aspect-ratio: 1/0.25;
    color: white;
    background: #212121;
    background-size: cover;
    background-blend-mode: overlay;
    border-radius: 0.5em;
    outline: 0.1em solid #353535;
    border: 0;
    box-shadow: 0 0 1em 1em rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    position: relative;
    animation: pulse 1.5s infinite alternate;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 1em 0.45em rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #212121, #252525);
    background: radial-gradient(circle at bottom,
            rgba(50, 100, 180, 0.5) 10%,
            #212121 70%);
    outline: 0;
}

.icon {
    fill: white;
    width: 1em;
    aspect-ratio: 1;
    top: 0;
    left: 0;
    margin: auto;
    transform: translate(-35%, 10%);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

.mobile-warning {
    display: none;
    background: rgba(255, 0, 0, 0.2);
    color: red;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9em;
    margin-left: 1em;
    margin-right: 1em;
    margin-top: 10px;
}

.blob-outer-container {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    inset: 0;
    margin: auto;
    filter: blur(100px);
    /* opacity: 0.5; */
}

.blob-inner-container {
    border-radius: 99999px;
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100vw;
    height: 100vh;
    /* min-width: 1000px; */
    overflow: hidden;
    background-color: #111;
    transform: scale(0.8);
}

.blob {
    position: absolute;
    width: 100vw;
    height: 100vh;
    inset: 0;
    margin: auto;
    background: conic-gradient(from 0deg, rgba(232, 20, 22, 0.2), rgba(255, 165, 0, 0.2), rgba(250, 235, 54, 0.2), rgba(121, 195, 20, 0.2), rgba(72, 125, 231, 0.2), rgba(75, 54, 157, 0.2), rgba(112, 54, 157, 0.2));
    animation: spinBlob 10s linear infinite;
}

@keyframes spinBlob {
    0% {
        transform: rotate(0deg) scale(2);
    }

    100% {
        transform: rotate(1turn) scale(2);
    }
}

@keyframes loadingPulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.loading {
    margin-top: .5em;
    color: white;
    font-size: 1em;
    text-align: center;
    letter-spacing: 0em;
    animation: loadingPulse 3s infinite ease-in-out;
}




/* Container, der das Stripe-Element umschließt und positioniert */
    /* Stripe Modal – responsive & scrollbar */
    #stripe-payment-form {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: min(500px, 92vw);
        max-height: 90vh;
        overflow: auto;
        -webkit-overflow-scrolling: touch;

        padding: 12px;
        background-color: rgba(255, 255, 255, 0.95);
        border: 1px solid #ccc;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        display: none; /* wird per JS gezeigt */
    }

    /* Das Stripe-Element selbst bekommt etwas "Luft" */
    #stripe-payment-element {
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background-color: #fff;
    }

    /* Buttons auf kleinen Screens angenehm breit anzeigen */
    @media (max-width: 480px) {
        #stripe-payment-form { padding: 10px; border-radius: 6px; }
        #stripe-submit-button,
        #stripe-cancel-button { width: 100%; }
    }


  /* Optional: Styling für Fehlermeldungen */
  #stripe-error-message {
    color: #fa755a;
    margin-top: 10px;
    font-size: 14px;
  }

  /* Button Styling */
  #stripe-submit-button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #6772e5;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  #stripe-submit-button:hover {
    background-color: #5469d4;
  }

  #stripe-cancel-button {
    margin-top: 15px;
    padding: 8px 18px;
    font-size: 16px;
    background-color: transparent;
    color: #6772e5;
    border: 2px solid #6772e5;
    border-radius: 4px;
    cursor: pointer;
  }
  #stripe-cancel-button:hover {
    background-color: #f8f9fa;
    border-color: #5469d4;
    color: #5469d4;
  }


  #stripe-payment-summary {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

.stripe-amount {
  display: inline-block;
  background-color: white;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
