*, *::before, *::after { box-sizing: border-box; } .instant-container { position: absolute; top: 140px; right: 175px; width: 500px; z-index: 1; } .instant-box { border: 1px solid var(--snip-border); background-color: var(--snip-background); border-radius: 8px; padding: 15px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .instant-box h3 { margin-top: 0; color: var(--highlight); font-size: 20px; border-bottom: 1px solid var(--border); padding-bottom: 10px; text-decoration: none; } .instant-result { margin: 15px 0; font-size: 16px; line-height: 1.5; } .calc-container { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; } .calc-input { box-sizing: border-box; width: 100%; padding: 10px; font-size: 18px; border: 1px solid var(--border); border-radius: 4px; background-color: var(--search-bg); color: var(--fg); } .calc-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; } .calc-buttons button { padding: 10px; font-size: 18px; border: 1px solid var(--border); border-radius: 4px; background-color: var(--button); color: var(--fg); cursor: pointer; transition: background-color 0.2s; } .calc-buttons button:hover { background-color: var(--search-select); } .calc-result { margin-top: 10px; padding: 10px; font-size: 20px; border: 1px solid var(--border); border-radius: 4px; background-color: var(--snip-background); } .calc-history { display: flex; flex-direction: column-reverse; font-family: monospace; font-size: 16px; color: var(--fg); background-color: var(--search-bg); border: 1px solid var(--border); padding: 10px; border-radius: 4px; height: 120px; overflow-y: auto; white-space: pre-line; overflow-anchor: none; } .calc-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .calc-buttons button { padding: 20px; font-size: 20px; border-radius: 6px; background-color: var(--search-bg); border: 1px solid var(--border); color: var(--fg); } .calc-buttons .equals { background-color: #2ecc71; color: #fff; font-weight: bold; } .calc-buttons .equals:hover { background-color: #27ae60; } .weather { padding: 0; background: none; border-radius: 0; box-shadow: none; color: var(--snip-text); min-width: 0; max-width: none; margin: 0; } .weather-header { display: flex; align-items: center; justify-content: space-between; font-size: 1.13em; font-weight: 500; margin-bottom: 6px; } .weather-location { opacity: 0.82; } .weather-temp { font-size: 2.3em; font-weight: 700; color: var(--blue); /* not sure if using "var(--blue);" is the right idea */ letter-spacing: -1px; } .weather-deg { font-size: 0.5em; font-weight: 500; vertical-align: super; opacity: 0.5; } .weather-current { display: flex; align-items: center; margin-bottom: 12px; gap: 10px; padding: 12px 14px 10px 14px; } .weather-icon { font-size: 1.7em; margin-right: 7px; } .weather-cond { font-size: 1.09em; font-weight: 500; color: var(--highlight); margin-right: 12px; display: flex; align-items: center; gap: 5px; } .weather-details { font-size: 0.97em; opacity: 0.82; margin-left: auto; } .weather-details span { color: var(--fg); } .weather-forecast { display: flex; gap: 7px; margin-top: 9px; } .weather-forecast-day { flex: 1 1 0; min-width: 0; background: var(--search-bg); border-radius: 8px; padding: 8px 6px; text-align: center; color: var(--font-fg); box-shadow: 0 1px 3px color-mix(in srgb, var(--search-bg), black 15%); } .weather-forecast-date { font-size: 0.97em; font-weight: 500; opacity: 0.82; margin-bottom: 2px; color: var(--highlight); } .weather-forecast-temps { font-size: 1.13em; font-weight: 600; color: var(--blue); } .weather-forecast-cond { font-size: 0.98em; opacity: 0.83; color: var(--fg); } .weather-current { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; } .weather-current-left { display: flex; align-items: center; gap: 7px; } .weather-icon { font-size: 1.7em; } .weather-cond { font-size: 1.08em; font-weight: 500; color: var(--highlight); } .weather-current-right { display: flex; align-items: center; gap: 12px; } .weather-detail { font-size: 0.98em; color: var(--blue); opacity: 0.85; font-weight: 500; } /* Responsive adjustments */ @media only screen and (max-width: 1450px) { .instant-container { right: 75px; } } @media only screen and (max-width: 1350px) { .instant-container { right: 5px; } } @media only screen and (max-width: 1290px) { .instant-container { position: relative; top: 0; right: 0; margin-left: 175px; margin-top: 20px; } } @media only screen and (max-width: 880px) { .instant-container { width: 90%; margin-left: 20px; } } @media (max-width: 540px) { .weather-forecast { gap: 4px; } .weather-forecast-day { padding: 6px 2px; font-size: 0.95em; } }