/*
 * style.css
 * Copyright (C) 2024 fred
 *
 * Distributed under terms of the BSD 3-Clause license.
 */

@import url('https://fonts.googleapis.com/css2?family=Phudu:wght@800&family=Quicksand&display=swap');

body {
  background-color: #f0f0f0; /* Light background color */
  color: #333;               /* Default text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Header styling */
header {
  background-image: url("/static/chart.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #cccccc;
  padding: 1rem;
  height: 9vh;
  text-align: center;
}

header h1 {
  font-family: 'Phudu', sans-serif;
  letter-spacing: .3rem;
  font-size: 5em;
  text-align: center;
  font-weight: 800;
  margin: 20px 0;
  text-shadow: 2px 2px 5px rgba(127, 64, 0, 1);
}

header a {
  color: navy;
  text-decoration: none;
}

header a:hover {
  text-decoration: underline;
}

/* Main container */
main {
  background-color: #fff;    /* White background */
  border-radius: 8px;        /* Rounded corners */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  margin: 20px auto;         /* Centers the container */
  min-height: 60vh;
  padding: 20px;             /* Padding inside the container */
  width: 900px ;              /* Fixed width */
}

/* Links */
main a {
  color: #3498db;            /* Link color */
  text-decoration: none;     /* No underline */
}

main a:hover {
  text-decoration: underline; /* Underline on hover */
}

main h1, main h2, main h3 {
  color: #666;
}

footer {
  font-family: Verdana, sans-serif;
  font-size: 12px;
  background-color: #333;
  text-align: center;
  padding: 2rem 5rem;
  position: relative;
  bottom: 0;
}

footer div {
  color: #999;
}

footer a {
  color: green;
}

@media (max-width: 768px) {
  main {
    padding: 1rem;
  }
}


/* Headings */
h1, h2, h3 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-size: 2.8em;
}

h2 {
  font-size: 2em;
}

h3 {
  font-size: 1.5em;
}

/* Paragraph */
p {
  margin-bottom: 1.5em;
}

/* Lists */
ul {
  list-style-type: none;     /* Default bullet style */
  padding-left: 20px;        /* Indent for bullets */
  padding-right: 20px;        /* Indent for bullets */
  margin-bottom: 5px;
}

ul li {
  position: relative;
  padding: 10px 20px;    /* Adds padding around each list item */
  margin-bottom: 8px;    /* Adds space between list items */
  background-color: #f4f4f9; /* Light background color */
  border-radius: 8px;    /* Rounded corners */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: background-color 0.3s ease; /* Smooth hover transition */
}

ul li:hover {
  background-color: #e8f0fe; /* Background changes on hover */
}

ul li a {
  color: navyblue;           /* Text color */
  text-decoration: none; /* Removes underline from links */
}

ul li a:hover {
  color: #3498db;        /* Link color changes on hover */
}

form {
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem 2rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
}

form label {
  color: #333;
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.15rem;
  margin-top: 1rem;
}

form input {
  border-radius: 4px;
  border: 1px solid #ddd;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  padding: 0.25rem;
  transition: border 0.3s ease;
}

form input:focus {
  border-color: #007BFF;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

form button {
  margin-top: 20px;
  background-color: #3498db; /* Button background */
  color: #fff;               /* Button text color */
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;        /* Rounded button */
  cursor: pointer;
  transition: background-color 0.3s ease; /* Smooth hover effect */
}

form button:hover {
  background-color: #2980b9; /* Darker shade on hover */
}

form .upload-button {
  background-color: #ffffff;
  padding: 0.5rem;
}

img {
  max-width: 100%;           /* Responsive images */
  height: auto;
  border-radius: 8px;        /* Optional rounded corners */
}

hr {
  border: none;
  height: 1px;
  background-color: #aaa;
  margin: 20px 0;
}

.filelist {
  margin: 0 auto;
  padding: 0 2rem;
}

.upload {
  margin-left: auto;
  margin-right: auto;
  padding: 3em;
  background-color: #aff;
}

.map {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stats {
  margin-top: 1rem;
  width: 100%;
}

.smallnote {
  font-size: 0.8rem;
  text-align: right;
  padding: .5rem 1rem;
  color: #333;
}

.download {
  text-align: right;
  padding: .5rem 1rem;
}

.expert {
  background-color: #7ef;
  padding: 1rem;
}
