﻿/* Reset and base */
* {
  box-sizing: border-box;
}

:root {
  --bitimus: #37abc8;
}

body {
  margin-top: 60px;
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.6;
  padding-top: 40px;
  padding-bottom: 0px;
  padding-left: 20px;
  padding-right: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--bitimus);
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s ease;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
}

.skip-link:focus {
  top: 0;
}

/* Header */
header {
  /* when one row */
  /* display: flex; */
  /* justify-content: space-between; */
  /* align-items: center; */
  margin-bottom: 60px;
  /* fixed */
  top: 0;
  left: 0;
  right: 0;
  position: fixed;
  width:100%;
  /* height: 100px; */
  flex-wrap: wrap;
  border-bottom: 1px solid #ccc;
  background-color: #ffffff;
}

header a {
  text-decoration: none; /* Removes the underline */
  color: inherit;      /* Inherits color from the parent element */
}

#site-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  color: var(--bitimus);
  padding-left: 10px;
  margin: 0;
}

.lang-switcher {
  display: flex;
  gap: 12px;
  padding-left: 10px;
  padding-right: 10px
}

.lang-btn {
  background: none;
  border: 2px solid var(--bitimus);
  color: var(--bitimus);
  padding: 8px 8px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.lang-btn.active,
.lang-btn:hover,
.lang-btn:focus {
  background-color: var(--bitimus);
  color: white;
  outline: none;
}

/* Header Rows */
.header-row {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.header-top {
  justify-content: space-between;
}

/* Navigation Bar */
.header-bottom {
  justify-content: center;
  /* background-color: var(--bitimus); */
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.main-nav li {
  display: flex;
  flex-direction: column;
  align-items: center; /* or flex-start for left alignment */
  max-width: 360px;    /* constrain width */
}

.main-nav a {
  display: block;
  text-align: center;
  white-space: normal;
  /*word-break: break-word;*/  /* bad result */
  padding: 6px 12px;
  color: var(--bitimus);
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s;
  width: 100%;
}

.main-nav a:hover,
.main-nav a:focus {
  /* background-color: #37abc824; */
  color: grey;
  outline: none;
  transition: color 1s ease;
}

.main-nav a.active {
  /* background-color: var(--bitimus); */
  color: grey;
  cursor: default;
}

main {
  padding: 20px;
}

/* Section blocks */
.block-section {
  margin-bottom: 20px;
}

.block-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--bitimus);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.block-section p {
  font-size: 1.15rem;
  max-width: 700px;
}

/* Products list */
.products-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.products-list li {
  border: 2px solid var(--bitimus);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.products-list li:hover {
  box-shadow: 0 8px 24px rgba(55, 171, 200, 0.4);
}

.products-list img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 16px;
}

.products-list a {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--bitimus);
  margin-bottom: 12px;
  text-align: center;
}

.products-description {
  font-size: 1rem;
  color: #444;
  text-align: center;
  flex-grow: 1;
}

/* Product content */
.product-content {
  font-size: 1rem;
  color: #444;
  flex-grow: 1;
}

.product-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--bitimus);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.0rem;
  color: var(--bitimus);
  margin-top: 80px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-content h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bitimus);
  margin-top: 40px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-content p {
  font-size: 1.15rem;
  max-width: 700px;
}

.product-content a {
  color: var(--bitimus);
  text-decoration: underline;
}

.product-content a:hover,
.product-content a:focus {
  color: #1f7a93;
  outline: none;
}

.product-content img {
   max-width: 800px;
   height: auto;
}

.content-a-target {
  scroll-margin-top: 120px; /* height of fixed header */
}

/* not working */
.screenshot  {
  /* width: 55vw; min-width: 330px; */
   width="200"
}

.animation-bg {
  background-color: white;
  animation-name: request;
  animation-delay: 2s;
  animation-duration: 5s;
  animation-iteration-count: 30;
  animation-direction: alternate;
}
@keyframes request {
  from {background-color: white;}
  to {background-color: #37abc824;}
}

/* crumbs*/
.crumbs  a{
  color: var(--bitimus);
}
.crumbs ol {
  list-style-type: none;  
  padding-left: 0;
}
.crumb {
  display: inline-block;  
  color: var(--bitimus);
}
.crumb a::after {
  display: inline-block;
  color: var(--bitimus);
  content: ">";
  font-size: 80%;
  font-weight: bold;
  padding: 0 3px;
}

/* Contact */
address {
  font-style: normal;
  font-size: 1.15rem;
  color: #222;
}

address a {
  color: var(--bitimus);
  text-decoration: underline;
}

address a:hover,
address a:focus {
  color: #1f7a93;
  outline: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  color: #888;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
  margin-top: 60px;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 30px 15px;
  }

  #site-title {
    font-size: 2.2rem;
  }

  .block-section h2 {
    font-size: 2rem;
  }

  .products-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
