﻿:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --background-color: #f8f9fa;
    --text-color: #333;
    --border-color: #ddd;
    --highlight-color: #2ecc71;
	--initial-opacity: 0; /* Nowa zmienna kontrolująca widoczność */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === ANIMATIONS === */
@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* === STANY ŁADOWANIA === */
body:not(.loaded) {
  opacity: var(--initial-opacity);
  visibility: hidden;
  transition: opacity 0.3s ease-in;
}

body.loaded {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in, visibility 0s linear 0.3s;
}

/* === PODSTAWOWE STYLE === */
html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex; 
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body.menu-open {
    overflow: hidden;
}

/* Stylizacja menu */
.navbar {
  background-color: #2980b9;
  color: #fff;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  margin-bottom: 15px; /* Dodany odstęp między menu a headerem */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  overflow: visible; /* Zmiana z hidden na visible, aby menu rozwijane było widoczne */
}

.logo a {
  color: #fff;
  text-decoration: none;
  font-size: 1.8em;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.menu > li {
  position: relative;
  margin: 0 5px;
}

.menu > li > a,
.dropdown-toggle {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  font-size: 1em;
  font-weight: 500;
  transition: background-color 0.3s;
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap; /* Zapobiega zawijaniu tekstu */
}

.menu > li > a:hover,
.dropdown-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
}

.arrow {
  font-size: 0.7em;
  margin-left: 5px;
  transition: transform 0.3s;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border-radius: 4px;
  padding: 5px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 100;
  box-sizing: border-box;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown:hover .arrow {
  transform: rotate(180deg);
}

.dropdown-menu li a {
  color: #333;
  padding: 10px 15px;
  display: block;
  text-decoration: none;
  transition: background-color 0.3s;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger {
  width: 25px;
  height: 3px;
  background-color: #fff;
  display: block;
  position: relative;
  transition: background-color 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background-color: #fff;
  display: block;
  transition: transform 0.3s;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Poprawki dla mobile */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
  
  body {
    position: relative;
    width: 100%;
  }
  
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
  
  /* Stylizacja nawigacji */
  .navbar {
    background-color: #2980b9;
    color: #fff;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
    box-sizing: border-box;
  }

  .container {
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .logo {
    margin-right: auto; /* Przesuwa logo na lewo */
  }
  
  .logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
  }

  /* Stylizacja przycisku hamburgera */
  .menu-toggle {
    margin-left: auto; /* Przesuwa hamburger na prawo */  
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    position: relative;
    padding: 10px;
  }

  .hamburger {
    width: 25px;
    height: 3px;
    background-color: #fff;
    position: relative;
    transition: background-color 0.3s ease-in-out;
  }

  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
  }

  .hamburger::before {
    top: -8px;
  }

  .hamburger::after {
    top: 8px;
  }

  /* Animacja hamburgera po kliknięciu */
  .menu-toggle.active .hamburger {
    background-color: transparent;
  }

  .menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }

  .menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
  }

  /* Stylizacja menu mobilnego */
  .menu-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    pointer-events: none;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .menu {
    display: none;
    flex-direction: column;
    background-color: #2980b9;
    width: 100%;
    max-width: 100vw;
    padding: 10px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 60px;
    left: 0;
    box-sizing: border-box;
    pointer-events: auto;
    overflow-x: hidden;
  }

  .menu.active {
    display: flex;
  }

  .menu > li {
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
  }

  .menu > li:last-child {
    border-bottom: none;
  }

  .menu > li > a,
  .dropdown-toggle {
    padding: 15px;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
  }

  /* Stylizacja dropdown menu */
  .dropdown {
    position: relative;
  }

  .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1em;
  }

  .arrow {
    transition: transform 0.3s;
  }

  .dropdown.active .arrow {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: static;
    display: none;
    background-color: #1e6fa5;
    width: 100%;
    max-width: 100vw;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .dropdown-menu li a {
    color: #fff;
    padding: 12px 20px;
    font-size: 0.95em;
    display: block;
  }
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffffff; /* Biały dla lepszego kontrastu */
}

main {
    margin-top: 20px;
	flex: 1; /* Główna zawartość zajmuje pozostałą przestrzeń */
}

/* Wynik konwersji */
.result-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.result-card h2 {
    text-align: center;
    color: var(--primary-color);
}

.conversion-result {
    text-align: center;
    font-size: 1.5rem;
}

.conversion-result .highlight {
    color: var(--highlight-color);
    font-weight: bold;
}

/* Słowny zapis */
.verbal-result {
    background: linear-gradient(135deg, #e0f7fa, #e1bee7); /* Gradient tła */
    padding: 20px;
    border-radius: 12px;
    margin-top: 25px;
    font-size: 1.3em;
    line-height: 1.6; /* Zmniejszony odstęp między liniami */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtelny cień */
    text-align: center;
    color: #333; /* Neutralny kolor tekstu */
}

.verbal-result p {
    margin: 10px 0;
    font-weight: bold;
    font-family: 'Arial', sans-serif; /* Czytelna czcionka */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Delikatny cień dla kontrastu */
}

.verbal-result p:first-child {
    font-size: 1.5em; /* Większy rozmiar dla pierwszej linii */
    color: #00796b; /* Kolor akcentu dla Celsjusza */
}

.verbal-result p:last-child {
    font-size: 1.5em; /* Większy rozmiar dla ostatniej linii */
    color: #6a1b9a; /* Kolor akcentu dla Fahrenheita */
}

.verbal-result p:nth-child(2) { 
    font-size: 1.2em; /* Powiększenie słowa "to" */
    margin-top: 15px;
}

@media (max-width: 768px) { /* punkty odniesienia */
    .verbal-result {
        font-size: 1.1em;
        padding: 15px;
    }

    .verbal-result p:first-child, .verbal-result p:last-child {
        font-size: 1.3em;
    }
}

/* Responsywność dla urządzeń mobilnych */
.temperature-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0; /* Odstęp między tabelą a tekstem powyżej */
    font-size: 18px;
    text-align: left;
}

.temperature-table th, .temperature-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.temperature-table th.temperature-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

.temperature-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.temperature-table tr:hover {
    background-color: #e0e0e0;
}

/* Sekcja obliczeń */
.calculation-method {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.calculation-method h2 {
	text-align: center; 
	font-size: 24px;
    color: var(--primary-color);
}

.calculation-method .formula {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.calculation-method .highlighted-text {
    margin-top: 15px; /* Dodaje odstęp od poprzedniego elementu */
    font-weight: bold; /* Pogrubienie tekstu */
    background-color: #f9f9f9; /* Subtelne tło */
    padding: 10px; /* Dodaje przestrzeń wewnętrzną */
    border-radius: 5px; /* Zaokrąglone rogi */
}

/* style dla wyróżnienia wzorów */
.formula-box {
    background-color: #e6f7ff; /* Jaśniejszy niebieski odcień */
    border-left: 4px solid #3498db; /* Pasek boczny */
    padding: 10px;
    margin: 15px 0;
    border-radius: 5px; /* Zaokrąglone rogi dla estetyki */
}

.formula-box strong {
    font-size: 18px;
}

.formula-result {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

#calculation-steps {
    list-style-type: decimal; /* Numerowanie kroków */
    padding-left: 40px; /* Większy odstęp od lewej strony */
}

#calculation-steps li {
    margin-bottom: 10px;
    font-size: 1.1em; /* Powiększenie tekstu */
    color: #555; /* Neutralny kolor tekstu */
}

#result {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center; /* Wyśrodkowanie wyniku */
}

#result strong {
    color: #2ecc71; /* Kolor wyróżnienia wyniku */
}

/* Porównanie wizualne */
.visual-comparison {
    margin-top: 30px;
	margin-bottom: 20px; /* Odstęp pomiędzy Porównaniem Wizualnym a Podsumowaniem */
}

.visual-comparison h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px; /* Opcjonalnie dla odstępu */
}

.temperature-scale {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    margin-top: 20px;
    gap: 20px;
}

.scale {
    position: relative;
    width: 60px;
    height: 300px;
    background: linear-gradient(to top, #3498db, #00ff00, #ffff00, #ff0000); /* Dynamiczny gradient */
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
    overflow: hidden; /* Zapobiega wychodzeniu elementów poza obszar */
}

.marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--highlight-color);
    color: white;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	border: 2px solid red; /* Tymczasowe obramowanie */
}

.scale-line {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        to top,
        transparent,
        transparent 19px,
        rgba(0, 0, 0, 0.2) 20px
    ); /* Podziałki co 20 pikseli */
}

.scale-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: bold;
    color: #333; /* Kontrastowy kolor tekstu */
    background-color: rgba(255, 255, 255, 0.8); /* Półprzezroczyste tło */
    padding: 2px 5px;
    border-radius: 5px;
    text-align: center;
}

.scale-label.min {
    bottom: -1px; /* Pozycja poniżej termometru */
}

.scale-label.max {
    top: -1px; /* Pozycja powyżej termometru */
}

/* Gradient dla Celsjusza */
.scale.celsius {
  background: linear-gradient(to top, 
    #3498db 0%, 
    #00ff00 33%, 
    #ffff00 66%, 
    #ff0000 100%
  );
  will-change: transform; /* Przyspiesza renderowanie */
  backface-visibility: hidden; /* Eliminuje migotanie */
}

.scale.fahrenheit {
    background: linear-gradient(to top, #8e44ad, #3498db, #00ff00, #ff0000); /* Gradient dla Fahrenheita */
}

/* Obliczenia konwersji */
.temperature-conversion {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 100%; /* Zmiana z 800px na pełną szerokość */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.temperature-conversion h2 {
    font-size: 24px;
    color: #3498db; /* Kolor nagłówka */
    text-align: center;
    margin-bottom: 15px;
}

/* Zwiększenie odstępu przed nagłówkiem */
.temperature-conversion p + h2 {
    margin-top: 20px !important;
    padding-top: 20px !important;
}

/* Dodatkowe formatowanie dla spójności wizualnej */
.temperature-conversion p:last-of-type {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #eee;
}

.temperature-conversion ul {
  list-style-type: decimal;
  margin-top: 15px;
}

.temperature-conversion ul li {
  margin-bottom: 10px;
}

.temperature-conversion #result {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}

.temperature-conversion #result .highlight {
  color: var(--highlight-color);
}

/* Podsumowanie */
.summary {
  background-color: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  position: relative; /* Kluczowe dla pseudo-elementu! */
  overflow: hidden; /* Ukrywa wystający pasek akcentowy */
  margin-bottom: 20px; /* Opcjonalnie można dodać margines dolny */
  padding-left: 30px; /* Dodanie odstępu między kreską a treścią */
}

.summary::before {
    content: '';
    display: block;
    width: 10px;
    height: calc(100% - 40px);
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    position: absolute;
    left: 0;
    top: 20px;
}


.summary-box {
  text-align: center;
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.summary-header .icon {
  font-size: 1.5rem; /* Ikona termometru */
  margin-right: 10px;
}

.summary h2 {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color, #3498db); /* Kolor głównego nagłówka */
}

.summary p {
  font-size: 1.2rem;
  color: var(--text-color, #333);
}

.summary .highlight {
  color: var(--highlight-color, #2ecc71); /* Wyróżnienie wartości */
  font-weight: bold;
}

/* Powiązane konwersje */
.related-conversions {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
	text-align: center; /* Wyśrodkowanie tytułu sekcji */
}

.related-conversions h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.related-links {
	display: flex;
    flex-wrap: wrap; /* Pozwala na zawijanie elementów na kolejne wiersze */
    justify-content: center; /* Wyśrodkowanie linków */
    gap: 10px; /* Odstępy między linkami */
}

.related-links a {
    display: inline-block;
    text-align: center;
    padding: 10px;
    background-color: #007bff; /* Niebieskie tło */
    color: white; /* Biały tekst */
    text-decoration: none; /* Usunięcie podkreślenia */
    border-radius: 5px; /* Zaokrąglone rogi */
    font-size: 1rem; /* Rozmiar czcionki */
    width: calc(20% - 10px); /* Na desktopie: 5 linków w jednym rzędzie */
    transition: background-color 0.3s ease;
}

.related-link {
    display: inline-block;
    text-align: center;
    padding: 10px;
    background-color: #007bff; /* Niebieskie tło */
    color: white; /* Biały tekst */
    text-decoration: none; /* Usunięcie podkreślenia */
    border-radius: 5px; /* Zaokrąglone rogi */
    font-size: 1rem; /* Rozmiar czcionki */
}

.related-links a:hover,
.related-link:hover {
    background-color: var(--secondary-color);
}

/* Animacja ładowania */
[aria-busy="true"]::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

/* Footer */
/*
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 15px 20px;
/*  margin-top: 40px;*/ /* Stały odstęp między treścią a stopką  */
/*	margin-top: auto;*/ /* Stopka zawsze na dole */
/*  border-radius: 10px;*/ /* Ponoć psuje układ na iOS */
/*  font-size: 0.9rem;*/
/*  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
*/

/*
footer p {
    margin: 0;
}
*/

footer {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    color: white;
	text-align: center;
    padding: 25px 20px;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: 0 -4px 15px rgba(52, 152, 219, 0.2);
}

footer p {
    font-size: 1rem;
    letter-spacing: 0.5px;
}

footer a {
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* Media Queries */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .result-card, 
    .calculation-method, 
    .summary, 
    .related-conversions {
        padding: 15px;
        margin-bottom: 20px;
    }

    .conversion-result {
        font-size: 1.2rem;
    }
/*
    .temperature-scale {
        flex-direction: column;
        align-items: center;
    }
*/
    .scale-line {
        height: 150px; /* Zmniejszenie wysokości podziałek */
    }

    .related-links {
        display: flex; /* Ustawienie flexboxa */
        flex-wrap: wrap; /* Pozwala na zawijanie elementów */
        justify-content: center; /* Wyśrodkowanie linków */
        gap: 10px; /* Odstępy między linkami */
    }

    .related-links a {
        width: calc(50% - 10px); /* Na urządzeniach mobilnych: 2 kolumny */
        text-align: center;
        padding: 8px 10px; /* Zmniejszenie wypełnienia linków */
        font-size: 0.9rem; /* Mniejsza czcionka */
        background-color: #007bff; /* Kolor tła */
        color: white; /* Kolor tekstu */
        text-decoration: none; /* Usunięcie podkreślenia */
        border-radius: 5px; /* Zaokrąglone rogi */
    }
	
    .related-link {
        width: calc(50% - 10px); /* Na urządzeniach mobilnych: 2 kolumny */
        text-align: center;
        padding: 8px 10px; /* Zmniejszenie wypełnienia linków */
        font-size: 0.9rem; /* Mniejsza czcionka */
        background-color: #007bff; /* Kolor tła */
        color: white; /* Kolor tekstu */
        text-decoration: none; /* Usunięcie podkreślenia */
        border-radius: 5px; /* Zaokrąglone rogi */
    }

    .related-links a:hover,
    .related-link:hover {
        background-color: #0056b3; /* Ciemniejszy niebieski po najechaniu */
    }
	
    footer {
        font-size: 0.8rem; /* Mniejsza czcionka w stopce */
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .calculation-method h2,
    .visual-comparison h2 {
    text-align: center !important; /* Zapewnia centrowanie na mobile */
  }

    .visual-comparison {
        width: 100%;
        overflow: hidden;
        display: flex; /* Wyśrodkowanie całej sekcji */
        flex-direction: column; /* Nagłówek nad wykresami */
        align-items: center; /* Wyśrodkowanie elementów */
        gap: 20px; /* Odstęp między nagłówkiem a wykresami */		
    }

    .temperature-scale {
        display: flex; /* Flexbox dla wykresów */
        flex-direction: row; /* Wykresy obok siebie */
        justify-content: center; /* Wyśrodkowanie wykresów */
        align-items: flex-start; /* Wyrównanie do góry */
        gap: 10px; /* Odstęp między wykresami */
        width: 100%; /* Szerokość kontenera dla wykresów */
    }

    .scale {
        width: 20%; /* Zmniejszenie szerokości każdego wykresu */
        max-width: 20%; /* Maksymalna szerokość dla wąskich ekranów */
        height: 300px; /* Stała wysokość wykresu */
        position: relative;
        box-sizing: border-box;
        background-color: #f8f9fa; /* Kolor tła dla widoczności */
        border-radius: 10px; /* Zaokrąglone rogi dla estetyki */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtelny cień dla wyróżnienia */
    }

    .scale.celsius,
    .scale.fahrenheit {
        background: linear-gradient(to top, #3498db, #00ff00, #ffff00, #ff0000);
    }
}
