:root {
      --main-bg: #f9f9f9;
      --accent: #4CAF50;
      --accent-dark: #388E3C;
      --text-color: #333;
      --border-radius: 12px;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      background-color: var(--main-bg);
      color: var(--text-color);
      margin: 0;
      padding: 1rem;
      max-width: 600px;
      margin: auto;
    }

 h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  text-align: center;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

/* Responsiv skalning med clamp: min, prefererad, max */
h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
}

h2 {
  font-size: clamp(1.3rem, 4.5vw, 1.7rem);
}

h3 {
  font-size: clamp(1.1rem, 4vw, 1.4rem);
}

h4 {
  font-size: clamp(1rem, 3.5vw, 1.2rem);
}

h5 {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
}

h6 {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
}

ul {
  list-style-type: none;
  padding-left: 0;
}


    form {
      background: white;
      padding: 1rem;
      border-radius: var(--border-radius);
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    label {
      font-weight: 600;
      margin-top: 1rem;
      display: block;
    }

    input, textarea, select, button {
      width: 100%;
      margin-top: 0.5rem;
      margin-bottom: 1rem;
      padding: 0.75rem;
      font-size: 1rem;
      border: 1px solid #ccc;
      border-radius: var(--border-radius);
      box-sizing: border-box;
    }

    button {
      background-color: var(--accent);
      color: white;
      font-weight: bold;
      border: none;
      cursor: pointer;
      transition: background 0.2s ease;
    }

    button:hover {
      background-color: var(--accent-dark);
    }

    #customFields {
      display: none;
    }

    #msg {
      text-align: center;
      font-weight: bold;
      margin-top: 1rem;
    }

    @media (max-width: 400px) {
      h1 { font-size: 1.3rem; }
      input, textarea, select, button {
        font-size: 0.95rem;
        padding: 0.6rem;
      }
	}
	
	#refreshBtn {
	  position: fixed;
	  bottom: 1rem;
	  right: 1rem;
	  z-index: 999;
	  background-color: #f9f9f9;
	  border: none;
	  padding: 0.2rem 0.2rem;
	  font-size: 2rem;
	  cursor: pointer;
	  transition: background-color 0.2s ease;
	  width: 50px;
	  height: 50px;
	}

	#refreshBtn:hover {
	  background-color: #f9f9f9;
	}
	
	.entry-content {
	  text-align: center;
	  display: flex;
	  flex-direction: column;
	  align-items: center;
	  gap: 10px;
	}

	.entry-content img {
	  max-width: 100%;
	  max-height: 400px;
	}

	.meta-line {
	  display: inline-block;
	  white-space: nowrap;
	}

	.daily-points {
	  margin-top: 20px;
	  font-weight: bold;
	  font-size: 1.1em;
	  padding: 10px;
	  border-radius: 5px;
	  text-align: center;
	  transition: all 0.3s ease;
	}

	.daily-points.below-goal {
	  background-color: #ffd6d6;
	  color: #c62828;
	  border: 2px solid #c62828;
	}

	.daily-points.met-goal {
	  background-color: #c8f7c5;
	  color: #2e7d32;
	  border: 2px solid #2e7d32;
	}

	.daily-points.loading {
	  background-color: #f0f0f0;
	  color: #555;
	  border: 2px dashed #ccc;
	}


   