@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@900&display=swap'); /* Importiert eine fette, moderne Schriftart */

/* Grundlegende Reset-Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    font-family: Arial, sans-serif;
    background-image: url('/files/img/solana/gsolanagradient.png');
    background-size: cover;
    background-attachment: fixed;
    color: #333;
}

header {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Verhindert Überlaufen der Inhalte */
}

.logo-container {
    position: relative;
    height: 100px; /* Höhe des Containers festlegen */
}

.logo-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 80px; /* Höhe der Logos */
    transform: translate(-50%, -50%); /* Zentriert die Logos genau */
    transition: opacity 0.5s ease, visibility 0.5s;
}

/* Beide Logos übereinander stapeln */
.logo-container img:first-child {
    z-index: 2; /* Stellt sicher, dass das erste Logo oben liegt */
}

.logo-container img:last-child {
    z-index: 1; /* Stellt sicher, dass das zweite Logo darunter liegt */
}

.hidden {
    opacity: 0;
    visibility: hidden; /* Versteckt das Logo vollständig, wenn es nicht aktiv ist */
}

main {
    margin: 20px;
    padding: 20px;
}

section {
    margin-bottom: 20px;
}

h2 {
    font-family: 'Roboto', sans-serif; /* Setzt die Schriftart */
    font-weight: 900; /* Macht die Schrift fett */
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Fügt einen leichten Schatten hinzu */
    background-image: linear-gradient(to right, #A6E3E9, #CBF1F5, #A1C4FD); /* Ein heller, horizontaler Farbverlauf */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* Macht die Textfarbe transparent, um den Gradienten durchscheinen zu lassen */
    transition: transform 0.3s ease-in-out; /* Bereitet eine sanfte Animation vor */
}

h2:hover {
    transform: scale(1.05); /* Vergrößert den Text beim Hover */
}

.container {
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Ersetzt den vorherigen 'gap', für breitere Kompatibilität */
    gap: 20px; /* Behält den Abstand zwischen den Karten bei */
}

.card {
    background-color: rgb(46, 45, 45); /* Übernimmt deinen dunklen Hintergrund */
    margin: 10px;
    width: 90%;
    max-width: 400px; /* Kombiniert Flexibilität mit einer maximalen Breite */
    border-radius: 10px; /* Deine Einstellung für abgerundete Ecken */
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Dein Schatten für Tiefe */
    transition: transform 0.3s ease-in-out; /* Glatter Übergang für Hover-Effekt */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Verteilt den Inhalt gleichmäßig */
    position: relative;
}

.card:hover {
    transform: translateY(-5px); /* Hebt die Karte bei Hover leicht an */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Verstärkter Schatten für Hover */
}

.card-image img {
    margin: 15px;
    width: 100%;
    height: 150px; /* Passt Höhe des Bildes an, ähnlich deinem Ansatz */
    object-fit: contain; /* Sorgt für vollständige Abdeckung ohne Verzerrung */
    border-radius: 10px 10px 0 0; /* Rundet die oberen Ecken des Bildes ab */
}

.card-image img.wide {
    object-position: center; /* Zentriert das Bild, so dass es um diesen Punkt beschnitten wird */
    width: 90%;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Richtet den Inhalt am unteren Rand aus */
    padding: 15px;
    color: rgb(255, 255, 255);
}

.card-content h3 {
    margin: 5px 0; /* Kleine Anpassung für den Abstand */
    font-size: 20px; /* Übernimmt deine Schriftgröße */
    font-weight: bold;
}

.card-content p {
    margin: 5px 0; /* Kleine Anpassung für den Abstand */
    font-size: 14px; /* Übernimmt deine Schriftgröße */
}

.card-action {
    background: #14f19500; /* Setzt die Hintergrundfarbe des .card-action Containers gleich wie die Button-Farbe */
    display: flex;
    justify-content: space-between; /* Verändert von 'space-around' zu 'space-between' für volle Breite */
    padding: 0; /* Entfernt jeglichen internen Abstand */
}

.btn {
    flex-grow: 1; /* Lässt die Buttons wachsen, um den .card-action Container auszufüllen */
    padding: 15px 0; /* Gibt den Buttons vertikales Padding */
    border-radius: 0; /* Entfernt jegliche Rundungen für obere Ecken */
    text-decoration: none;
    text-align: center; /* Zentriert den Text in den Buttons */
    background-color: #14F195; /* Hintergrundfarbe der Buttons */
    color: black;
    font-weight: bold;
    border: none; /* Entfernt den Rand */
    outline: none;
    margin: 0 1px; /* Fügt einen kleinen Spalt zwischen den Buttons hinzu */
    transition: background-color 0.3s ease;
}

.btn:first-child {
    margin-left: 0; /* Entfernt den linken Margin vom ersten Button */
    border-radius: 0 0 0 10px; /* Fügt die Rundung nur unten links hinzu */
}

.btn:last-child {
    margin-right: 0; /* Entfernt den rechten Margin vom letzten Button */
    border-radius: 0 0 10px 0; /* Fügt die Rundung nur unten rechts hinzu */
}

.btn:hover {
    background-color: #9945FF; /* Dunklere Farbe beim Hover */
}

hr {
    border: none; /* Removes the default border */
    height: 2px; /* Sets the height of the line */
    background-image: linear-gradient(to right, rgba(0,0,0,0), #14F195, rgba(0,0,0,0)); /* Gradient effect */
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: auto;
    margin-right: auto;
    width: 80%; /* Sets the width to 80% of the parent element */
}

hr {
    border: none;
    height: 2px;
    background-image: linear-gradient(to right, rgba(0,0,0,0), #14F195, rgba(0,0,0,0));
    display: block;
    margin-top: 0; /* Entfernt den oberen Abstand */
    margin-bottom: 0; /* Entfernt den unteren Abstand, falls gewünscht */
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 0 5px; /* Setzt das obere und untere Padding auf 0 und behält das seitliche Padding */
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer p {
    margin-top: 2px; /* Entfernt den oberen Abstand des Paragraphen */
    padding-top: 2px; /* Entfernt den oberen Padding des Paragraphen */
    margin-bottom: 2px; /* Entfernt den unteren Abstand des Paragraphen, falls gewünscht */
    padding-bottom: 2px; /* Entfernt den unteren Padding des Paragraphen, falls gewünscht */
}

.clipboard-notification {
    position: fixed;
    bottom: 30px;
    left: 20px;
    background-color: #14F195;
    color: black;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    opacity: 1;
    transition: opacity 1s ease;
    z-index: 1000;
}

.progress {
    height: 2px;
    background-color: #0d6637;
    width: 100%;
    transition: width 3s linear;
}

.clipboard-notification .progress {
    animation: shrink 3s linear forwards;
}

@keyframes shrink {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}



@media (max-width: 768px) {
    .card {
        flex-basis: calc(50% -0.50px); /* Anpassung für kleinere Bildschirme */
    }
}

@media only screen and (max-width: 480px) {
    .card-container {
        /* Adjust the layout for a single column on small screens */
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 85%; /* Adjust card width for mobile */
        margin: 10px auto; /* Center the cards with automatic horizontal margin */
        max-width: none; /* Remove any max-width */
    }

    .card-image img {
        height: auto; /* Let the image height be natural */
        max-height: 200px; /* Set a max-height that works for mobile */
        margin-left: 1%;
        margin-right: 1%;
    }

    .card-content h3, .card-content p {
        text-align: center; /* Center-align text on mobile for better readability */
        font-size: 1rem; /* Adjust font size */
    }

    .btn {
        /* Increase the size of buttons to make them easier to interact with on mobile */
        padding: 12px 20px;
    }

    footer p{
        font-size: 11px;
    }

    header {
        padding: 10px 0; /* Reduce padding on smaller screens */
    }

    .logo-container img {
        width: 80%; /* Reduce the logo size on smaller screens */
        max-height: 100px; /* Optional: limit the logo height */
    }
}