:root {
  --board-bg: rgba(17, 17, 17, 0.5);
  --board-border: rgba(52, 73, 94, 0.9);
  --text-main: rgba(236, 240, 241, 0.9);
  --text-muted: rgba(236, 240, 241, 0.6);
  --panel-gap: 10px;
  --outer-gutter: 0.52083333%;
  --inner-gutter: 1.04166666%;
}

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

html,
body {
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  background-color: #050608;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text-main);
  font-family: "Roboto", Verdana, Tahoma, Arial, Helvetica, sans-serif;
  font-weight: 300;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.2);
  pointer-events: none;
  z-index: -1;
}

#large-header {
  position: absolute;
  inset: 0;
  z-index: -999;
}

#header {
  width: 100%;
  height: 100%;
  display: block;
}

.layout {
  width: 100%;
  height: 100%;
  padding: 10px var(--outer-gutter);
  display: grid;
  grid-template-columns: 23.95833333% 48.95833333% 23.95833333%;
  column-gap: var(--inner-gutter);
}

.panel {
  height: calc(100vh - 20px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  min-height: 1px;
}

.panel::-webkit-scrollbar {
  width: 8px;
}

.panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
}

.panel::-webkit-scrollbar-thumb {
  background: rgba(127, 140, 141, 0.7);
}

.board {
  margin-bottom: var(--panel-gap);
  padding: 10px;
  border-top: 1px solid var(--board-border);
  border-bottom: 1px solid var(--board-border);
  background: var(--board-bg);
  color: var(--text-main);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.site-ready .board {
  opacity: 1;
  transform: translateX(0);
}

#main-board.board {
  opacity: 1;
  transform: none;
  transition: none;
}

.panel-left .board:nth-of-type(2) {
  transition-delay: 0.05s;
}

.panel-left .board:nth-of-type(3) {
  transition-delay: 0.1s;
}

.panel-mid .board:nth-of-type(1) {
  transition-delay: 0.15s;
}

.panel-mid .board:nth-of-type(2) {
  transition-delay: 0.2s;
}

.panel-right .board:nth-of-type(1) {
  transition-delay: 0.25s;
}

.text {
  padding: 4px 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 1.5em;
}

#main-board .text {
  font-size: 1.5em;
  padding: 10px 0;
}

#main-board .image {
  text-align: center;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease;
}

body.site-ready #main-board .image {
  max-height: 220px;
  opacity: 1;
}

#main-board .image img {
  max-width: 100%;
  width: auto;
}

#main-board .squares {
  margin: 15px 0 15px;
  height: 70px;
  position: relative;
  transition: opacity 0.3s ease, margin 0.3s ease, height 0.3s ease;
}

body.site-ready #main-board .squares {
  opacity: 0;
  margin: 0;
  height: 0;
}

.square {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -20px;
  margin-left: -20px;
  width: 40px;
  height: 40px;
  animation: spin 1.2s linear infinite;
}

.square.s1 {
  background-color: rgba(44, 62, 80, 0.9);
  animation-duration: 0.4s;
}

.square.s2 {
  background-color: rgba(52, 73, 94, 0.9);
  animation-duration: 0.5s;
}

.square.s3 {
  background-color: rgba(127, 140, 141, 0.9);
  animation-duration: 0.6s;
}

.square.s4 {
  background-color: rgba(236, 240, 241, 0.9);
  animation-duration: 0.7s;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-180deg);
  }
}

#greetings-board p {
  padding: 5px 0;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

#greetings-board .greetings-helloworld {
  font-size: 0.9em;
}

#greetings-board .greetings-time {
  font-size: 1em;
}

#greetings-board .greetings-date {
  font-size: 0.85em;
}

.greetings-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#mini-calendar {
  text-align: center;
  flex: 0 0 auto;
}

#mini-calendar .cal-header {
  font-size: 0.85em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

#mini-calendar table {
  border-collapse: collapse;
}

#mini-calendar th,
#mini-calendar td {
  width: 26px;
  height: 20px;
  text-align: center;
  font-size: 0.8em;
  font-weight: 300;
}

#mini-calendar th {
  color: var(--text-main);
  padding-bottom: 4px;
}

#mini-calendar td.weekend {
  color: var(--text-muted);
}

#mini-calendar td.today {
  border: 1px solid var(--board-border);
}

#weather-board {
  padding: 6px 10px;
  margin-bottom: 4px;
}

#weather-board .text {
  margin-bottom: 4px;
  font-size: 1.1em;
}

#weather-content p {
  padding: 3px 0;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.weather-location {
  font-size: 1.2em;
}

.weather-now {
  font-size: 1.5em;
}

.weather-desc {
  font-size: 0.9em;
}

.weather-forecast {
  margin-top: 8px;
}

.weather-forecast > p {
  padding-bottom: 6px;
}

.forecast-day {
  margin: 8px 0;
  padding: 2px 0;
  font-size: 0.95em;
  letter-spacing: 0.08em;
  line-height: 1.45;
}

.forecast-day img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 3px;
}

.weather-controls {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.weather-controls input {
  flex: 1 1 180px;
  padding: 6px;
  border: 1px solid var(--board-border);
  background: rgba(40, 40, 40, 0.8);
  color: var(--text-main);
}

.weather-controls button {
  padding: 6px 10px;
  border: 1px solid var(--board-border);
  background: rgba(68, 68, 68, 0.9);
  color: var(--text-main);
  cursor: pointer;
}

#search-board,
#favorites-board {
  padding: 4px 10px;
  margin-bottom: 4px;
}

#favorites-board {
  padding-top: 14px;
}

#search-board .text,
#favorites-board .text {
  font-size: 1.1em;
}

#search-board .search-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

#search-board .search-col {
  width: 30%;
  text-align: center;
}

#search-board .search-col p.title,
#favorites-board .favorite p.title {
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 1em;
}

#search-board ul,
#search-board li,
#favorites-board ul,
#favorites-board li {
  list-style: none;
}

#search-board li a {
  text-decoration: none;
  color: var(--text-main);
  display: block;
  padding: 1px 0;
}

#search-board li a:hover,
#favorites-board a:hover,
#rss-board a:hover {
  color: var(--text-muted);
}

#favorites-board .favorites {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 1rem;
}

#favorites-board li {
  display: grid;
  grid-template-columns: 24% 74%;
  column-gap: 2%;
}

#favorites-board .short a {
  color: #a9abac;
  text-decoration: none;
}

#favorites-board .link a {
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#informations-board {
  display: none;
}

#rss-board p.text {
  font-size: 1em;
  padding: 10px 0;
}

.rss-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rss-tab {
  appearance: none;
  border: 1px solid var(--board-border);
  background: rgba(17, 17, 17, 0.35);
  color: var(--text-main);
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-family: "Roboto", Verdana, Tahoma, Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.rss-tab.active {
  background: rgba(52, 73, 94, 0.9);
}

.rss-tab:hover {
  background: rgba(52, 73, 94, 0.55);
}

#rss-content .feed-block {
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

#rss-content h3 {
  margin-bottom: 0.5rem;
  color: #00ffff;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.88rem;
  font-family: "Orbitron", "Roboto", sans-serif;
  font-weight: 400;
}

#rss-content ul {
  margin: 0;
  padding-left: 1.2rem;
}

#rss-content li {
  margin-bottom: 0.3rem;
}

#rss-content a {
  color: #d5d9dc;
  text-decoration: none;
}

.error-text {
  color: #ff7070;
}

.loading-text {
  color: var(--text-muted);
}

@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 1fr;
    grid-auto-rows: min-content;
    height: auto;
    min-height: 100%;
    row-gap: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  body {
    overflow-y: auto;
  }

  .panel {
    height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  #search-board .search-col {
    width: calc(50% - 0.5rem);
  }

  #favorites-board .favorites {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  #search-board .search-col {
    width: 100%;
  }

  #favorites-board .favorites {
    grid-template-columns: 1fr;
  }

  .greetings-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
