@media (prefers-color-scheme: dark) {
	:root {
	  --background-color: #323232;
	  --text-color: #ddd;
      --container-color: #777;
      --on-container-color: #111;
	  --shadow-color: #111;
	  --highlight: #666;
      --glow-color: #f9f9f9;
	  --blue: hsl(243, 100%, 50%);
	  --purple: hsl(293, 90%, 45%);
	  --green: hsl(126, 90%, 45%);
	  --orange: hsl(33, 100%, 50%);
	  --error: hsl(360, 90%, 45%);
	}
}

@media (prefers-color-scheme: light) {
	:root {
	  --background-color: #fefefe;
	  --text-color: #222;
      --container-color: #323232;
      --on-container-color: #f7f7f7;
	  --shadow-color: #999;
	  --highlight: #cdcdcd;
      --glow-color: #999999;
	  --blue: hsl(233, 100%, 58%);
	  --purple: hsl(285, 89%, 55%);
	  --green: hsl(121, 88%, 50%);
	  --orange: hsl(26, 100%, 61%);
	  --error: hsl(0, 95%, 65%);
	}
}

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

/* Grundlegendes Styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;

	background-color: var(--background-color);
	color: var(--text-color);
}

header {
    padding: 10px 0;
    text-align: center;
}

nav {
    margin: 20px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

p.row {
    list-style: none;
    display: flex;
    justify-content: center;
}

#location, #customLocation {
    padding: 0 1rem;
}

nav ul li {
    margin: 15px 10px;
}

nav ul li a {
	color: var(--text-color);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: 1px solid var(--highlight);
}

nav ul li a:hover {
    cursor: pointer;
    background: var(--container-color);
    color: var(--on-container-color);
}

main {
    max-width: 800px;
    margin: 0 auto;
    
}

.centered {
    width: 100%;
    text-align: center;
}

button {
    text-decoration: none;
    margin: 1rem 0.5rem;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid var(--highlight);
}

#gif {
    max-width: 512px;
    max-height: 512px;
}

button:hover {
    cursor: pointer;
}

footer {
	background-color: var(--background-color);
	color: var(--text-color);
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

ol li {
    margin: 0 1em;
}

.page {
    min-height: 95vh;
    padding: 0 2rem;
    margin: 2rem 0;
}

.page p {
    padding: 1rem 0;
}

#error {
    margin-top: 2rem;
    background-color: var(--error);
    border-radius: 10px;
    display: none;
    padding: 1rem;
}

.error {
    display: block !important;
}

#locationStatus {
    margin: 20px auto;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--container-color);
    box-shadow: 0 0 0.5rem 0.3rem var(--glow-color);
}

.blink {
    animation: blink-live 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes blink-live {
    0% { opacity: 1.0; }
    50% { opacity: 0.0; }
    100% { opacity: 1.0; }
}

.color-grey {
    background: var(----container-color) !important;
}

.color-blue {
    background: var(--blue) !important;
}

.color-purple {
    background: var(--purple) !important;
}

.color-green {
    background: var(--green) !important;
}

.color-orange {
    background: var(--orange) !important;
}

.color-red {
    background: var(--error) !important;
}

/* Responsives Design */
@media (max-width: 600px) {
    nav ul {
        align-items: center;
        flex-direction: column;
    }
    p.row {
        align-items: center;
        flex-direction: column;
    }
    #find table tr th {
        width: 30% !important;
    }
}

@media (max-width: 480px) {
    #fing-georg {
        margin: 20px auto;
        width: 98%;
        height: auto;
        max-height: 98%;
        aspect-ratio: 1 / 1;
        position: relative;
    }

    .inner-item {
        position: absolute;
        top: 0; 
        left: 0; 
        right: 0;
        bottom: 0;
        margin: auto;
    }

    #location-data {
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    #locationStatus {
        margin: 0px auto;
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
        border: solid;
        border-width: 12px;
        border-radius: 50%;
        background: transparent !important;
        border-color: var(--container-color);
        /* box-shadow: 0 0 0.5rem 0.3rem var(--glow-color); */
    }

    .color-grey {
        border-color: var(----container-color) !important;
        background: transparent !important;
    }

    .color-blue {
        border-color: var(--blue) !important;
        background: transparent !important;
    }

    .color-purple {
        border-color: var(--purple) !important;
        background: transparent !important;
    }

    .color-green {
        border-color: var(--green) !important;
        background: transparent !important;
    }

    .color-orange {
        border-color: var(--orange) !important;
        background: transparent !important;
    }

    .color-red {
        border-color: var(--error) !important;
        background: transparent !important;
    }

    nav {
        display: none;
    }
}
