@font-face {
    font-family: 'Calibri';
    font-weight: normal;
    src: url('assets/calibri-regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Calibri';
    font-weight: bold;
    src: url('assets/calibri-bold.ttf') format('truetype');
}

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* Verhindert Scrollen */
    font-family: 'Calibri', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    font-weight: normal;
}
html {
    margin: auto;
    line-height: 1.75;
    font-size: 1.25em;
}
.container {
    display: flex;
    height: 100vh;
}
h1,h2,h3,h4,h5,h6 {
    justify-content: center;
    font-size: 2em;
    font-family: 'Calibri', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    font-weight: bold;
    margin: 0;
} 
p,ul,ol {
    color: #1d1d1d;
}
#spielfeld {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Stellt sicher, dass der Container die volle Höhe des Viewports einnimmt */
    background-color: #f0f0f0;
}
svg {
    max-width: 100%;
    max-height: 100%;
}
.sidebar {
    width: 300px;
    padding: 20px;
    background-color: #e0e0e0;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}
p {
    margin-bottom: 20px;
}
.download-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    height: 40px;
}
.download-btn:hover {
    background-color: #45a049;
}
.input-button-container {
    display: flex;
    width: 100%;
    align-items: center;
}
.seed-input {
    width: 50%; /* Genau 50% der Containerbreite */
    padding: 10px;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px; /* Runden Sie nur die linke Seite */
    font-size: 1rem;
    height: 40px;
    box-sizing: border-box; /* Stellen Sie sicher, dass die Polsterung die Größe nicht beeinflusst */
}
.load-btn {
    width: 50%; /* Genau 50% der Containerbreite */
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0; /* Runden Sie nur die rechte Seite */
    cursor: pointer;
    font-size: 1rem;
    height: 40px;
    box-sizing: border-box; /* Stellen Sie sicher, dass die Polsterung die Größe nicht beeinflusst */
}
.load-btn:hover {
    background-color: #45a049;
}
a, a:visited, a:active, a:hover {
    text-decoration: none;
}
#underline {
    text-decoration: underline;
    color: #1d1d1d;
}

/* Segmentierte Schaltfläche */
.segmented-button {
    display: flex;
    background-color: #4CAF50;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    height: 40px;
}
.segment {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}
.segment:not(:last-child) {
    border-right: 1px solid #45a049;
}
.segment:hover, .segment:focus, .segment.active {
    background-color: #45a049;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        order: -1;
    }
}