:root {
  --textColor: #dddbff;
  --textColorAlt: black;
  --backgroundColor: #11023a;
  --primaryColor: #004dff;
  --primaryColorTransparent: rgba(0, 77, 255, 0.33);
  --primaryColorDarker: #1a0cb8;
  --secondaryColor: #0e0658;
	--HeaderColor: rgba(17, 2, 58, 0.75);
  --accentColor: #00eeff;
  --accentColorLighter: #a3f9ff;

  --errorColor: hsl(351, 29%, 26%);
  --pinkColor: hsl(302, 100%, 50%);
  --confirmColor: hsl(184, 100%, 50%);
  --warnColor: hsl(40, 100%, 50%);
  --fontFamily: "Inter", "Raleway", sans-serif;

	--backgroundColorGradient: 
    radial-gradient(at 100% 0%, rgba(26, 12, 184, 0.75) 0, transparent 50%), 
    radial-gradient(at 0% 100%, rgba(0, 77, 255, 0.25) 0, transparent 50%),
    #11023a;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--fontFamily);
  color: var(--textColor);
}

/*::-webkit-scrollbar {
  display: none;
}*/

::-webkit-scrollbar {
  display: block;
  width: 10em;
  overflow: auto;
  height: 2em;
  padding: 1em;
  margin: 1em auto;

  width: 5px;
  height: 8px;
  background-color: var(--secondaryColor);
}

::-webkit-scrollbar-thumb {
  background: var(--primaryColor);
  cursor: pointer;
}

.card-thumbnail-wrapper::-webkit-scrollbar-thumb {
  background: var(--accentColor);
}

body {
	background: var(--backgroundColorGradient);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  margin: 0;
	
  color: var(--textColor);
}

header {
  display: flex;
  padding: 0.5rem 2rem !important;
  border-bottom: 1px solid var(--secondaryColor);
  overflow-x: auto;

  background-color: var(--HeaderColor);
	backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(10px); 
  position: sticky;
  top: 0;
  z-index: 10;

  min-height: 40px;
  padding-block: 20px;

  display: flex;
  justify-content: space-around;
  align-items: center;
}

footer {
  padding: 0 0 2rem 0;
  color: var(--textColor);
  display: flex;
  flex-direction: column;
  
  position: sticky;
  top: 85%;
  text-align: center;
}

.social-links ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;       
  padding: 0;            
  margin-top: 0.5rem;  
}

.social-links a {
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease-in-out;
  font-size: 1.5rem;
  text-decoration: none;
}

.social-links-content {
  color: var(--accentColor);
  transition: color 250ms;
}

.social-links-content:hover{
  color: var(--accentColorLighter);
}

button {
	background-color: transparent;
  border: none;
	transition: all 250ms;
	cursor: pointer;
}

.header-logo {
	width: auto;
	height: 40px;
  transform: translatey(6px);
}

.nav-desktop {
  display: flex;
  gap: 0.5rem;
  flex: 1;
}

nav button {
  color: var(--textColor);
  opacity: 0.9;
  font-size: medium;
  transition: all 250ms;

  border: 0px solid transparent;
  border-radius: 7px;
  padding: 10px 20px;
}

nav button.active {
  opacity: 1;
  color: var(--accentColor);
  
  background-color: var(--primaryColor);
  color: var(--textColor);
}

nav button:hover,
.header-logo-button:hover {
  opacity: 1;
  color: var(--accentColorLighter);
  transform: translateY(-3px);
}

main {
  max-width: 1100px;
  margin: auto;
  padding: 1.5rem;
}

.home {
  display: flex;
  justify-content: space-evenly;
  gap: 2rem;
  padding: 2rem 2rem 0 2rem;

  background: linear-gradient(none, var(--secondaryColor));
  border-radius: 1rem;
  border-bottom: 7px solid var(--primaryColor);
  box-shadow: 0 0px 500px var(--primaryColorTransparent);
}

.home-main-img {
  aspect-ratio: 1 / 1;
  width: 25rem;
  height: auto;
  object-fit: contain;
}

.home-main-div {
  margin-left: 2rem;
  display: flex;
  flex-direction: column;
  margin: 2rem 0;
  gap: 1rem;
}

.home-main-h1 {
  font-size: 4rem;
  font-family: Tahoma, sans-serif;;
  text-shadow: 0 8px 0px var(--primaryColor);

  opacity: 0;
  transform: translateX(-1rem);
  transition: opacity 500ms ease, transform 500ms ease;
}

.home-main-p {
  text-align: left;
  line-height: 1.5rem;

  opacity: 0;
  transition: opacity 500ms ease, transform 500ms ease;
}

.home-main-h1.active {
  opacity: 1;
  transform: translatex(0);
}

.home-main-p.active {
  opacity: 1;
  transform: translatex(0);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.grid > * {
  aspect-ratio: 1 / 1.25;
  width: 100%;
  min-height: 0; 
}

.card {
  background: linear-gradient(transparent, var(--secondaryColor));
  padding: 0.6rem;
  cursor: pointer;
  transition: all 500ms ease;
  
  display: flex;
  flex-direction: column;

	border-radius: 1rem;
	border: 0px solid transparent;
  border-bottom: 7px solid var(--primaryColor);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-top: 1px solid var(--primaryColor);
  border-left: 1px solid var(--primaryColor);
  border-right: 1px solid var(--primaryColor);
  box-shadow: 0 8px 25px var(--primaryColor);
}
/*.grid .card:hover {
  background: var(--primaryColorTransparent)
}*/

.card-small {
  max-height: 75vh;
  
  width: auto;
  max-width: 90vw;
}

.card-small iframe {
  height: 60vh;
  aspect-ratio: 16 / 9;
  width: auto;;
}

.card-thumbnail-wrapper {
  position: relative;
  flex-grow: 1;
  min-height: 0;

  overflow-y: auto;
  overflow-x: auto;

  border-radius: 0.75rem;
}

.card-thumbnail {
  width: 100%;
  flex-grow: 1;
  min-height: 0;
  object-fit: contain;
  transition: all 250ms;
}

.card-thumbnail-big {
  height: 150vh;
  object-fit: cover;
  width: auto;
  display: block;
  transition: transform 250ms ease;
}

.card h4 {
  margin: 2rem 0 1rem 0;
  font-size: 0.95rem;
  flex-shrink: 0;
	width: 100%;
	text-align: center;
}

.back,
.prev,
.next {
  cursor: pointer;
  margin-bottom: 1rem;
  color: var(--accentColor);
	transition: all 500ms;
}

.back:hover,
.prev:hover,
.next:hover {
  color: var(--accentColorLighter);
}

.detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.detail h2 {
  margin: 1rem 0;
}

.view {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.view.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .view {
    transition: opacity 160ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .view {
    transition: none;
    transform: none;
  }
}

.burger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
	font-weight: 500;
  color: var(--textColor);
  cursor: pointer;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100%;
  background: var(--secondaryColor);
  transform: translateX(-100%);
  transition: transform 220ms ease;
  z-index: 1000;
  padding: 1rem;
  overflow: auto;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 999;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.badge {
  position: absolute;
  top: -15px;
  right: -15px;

  width: 55px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 0px 12px var(--primaryColor);

  background: var(--primaryColorDarker);
  color: var(--textColor);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
  animation: pulse 1.8s infinite ease-in-out;
  cursor: default;

  z-index: 10;
}

.badge-center {
  overflow: hidden;
}

.badge-outline {
  z-index: 11;
  background: transparent;
  border: 5px solid var(--primaryColor);
}

.badge::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  right: 0;
  text-align: right;
  background: var(--backgroundColor);
  color: var(--textColor);
  box-shadow: 0 0px 25px var(--primaryColor);
  padding: 4px 6px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px) translateX(-30px);
  transition: opacity 120ms ease, transform 120ms ease;

  z-index: 1000;
}

.badge:hover::after {
  opacity: 1;
  transform: translateY(40px) translateX(-50px);
}

.detail-logo {
  width: 44px;
  height: auto;
  pointer-events: none;
}

.detail-nav,
.detail-back {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  
  position: sticky;
  bottom: 5vh; 
  z-index: 1000;
  
  pointer-events: none;
}

.detail-back {
  bottom: max(15vh, 5rem);
}

.detail-nav button,
.detail-back button {
  background: none;
  border: none;
  color: var(--textColor);
  background-color: var(--primaryColor);
  box-shadow: 0 0px 25px var(--primaryColor);
  font-size: 1.5rem;
  padding: 5px 10px;
  border-radius: 2rem;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.5;
}

.detail-back button{
  font-size: 1.25rem;
}

.detail-nav button:hover,
.detail-back button:hover {
  background-color: var(--primaryColorDarker);
  transform: translateY(-3px);
  opacity: 1;
}

/*.detail strong {
  color: var(--accentColorLighter);
}*/

.detail a,
.home a {
  color: var(--accentColor) !important;
}

.detail a:hover,
.home a:hover {
  color: var(--accentColorLighter) !important;
}

.detail-img-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-auto-rows: 160px;
  gap: 12px;

  width: 100%;
  padding: 12px;

  box-sizing: border-box;
}

.detail-img-container .img-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;

  background-color: #f3f3f3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.detail-img-container .img-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.detail-img-container img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;
}

.detail-img-container .img-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 100%;
  overflow-wrap: break-word; 
  word-break: break-word;   
  overflow: auto;   
  align-items: center;

}

.detail-content p {
  text-align: left;
  background: var(--backgroundColor);
  border-radius: 1rem;
  padding: 2rem;
  line-height: 1.5rem;
  border: 7px solid var(--primaryColorTransparent);
  border-bottom: 7px solid var(--primaryColor);
  box-shadow: 0 0px 500px var(--primaryColor);
  width: 100%;
}

.detail-content p h1{
  line-height: normal;
}

.detail-content img {
  max-width: 90%;
  object-fit: contain;
  z-index: 1;
}

.detail-content img.medium {
  max-width: min(100vw, 550px);
  aspect-ratio: 1 / 1;
}

.detail-content-title {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  background: var(--primaryColorTransparent);
  color: #fff;
  font-size: 0.9rem;
  border-radius: 2rem;
  z-index: 9999;
  opacity: 1;

  transition: opacity 300ms ease;
  pointer-events: none;
}


.read-more {
  text-decoration: none; 
  /*display: inline-flex; */
  display: none;
  gap: 8px;
  position: sticky;
  bottom: 11vh;
  opacity: 1;

  background: var(--primaryColorTransparent);
  border: none;
  color: var(--textColor);
  box-shadow: 0 0px 25px var(--primaryColor);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 250ms;
  z-index: 1001;
  animation: pulse 1.8s infinite ease-in-out;
}

.read-more:hover {
  background-color: var(--primaryColor);
  color: var(--accentColorLighter);
  transform: translateY(-3px);
}

.read-more-notvisible {
  opacity: 0 !important;
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.card {
  position: relative;
  overflow: visible;
}


@media (max-width: 908px) {
  .nav-desktop {
    display: none;
  }

  .burger {
    display: block;
  }

	header {
		justify-content: space-between;
		padding: 0 3rem;
	}

  .detail-nav button,
  .detail-back button {
    opacity: 0.5;
  }

  .home {
  flex-direction: column;
  align-items: center;
  height: 100%;
  }

  .home-main-h1 {
    font-size: min(8vw, 4rem);
  }
}

@media (max-width: 675px) {
	.grid {
    /*grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important*/
    gap: 0;
		grid-template-columns: 1fr 1fr;
	}

  .detail-content iframe {
    width: 100%;
  }

  .card-thumbnail {
    object-fit: cover;
  }

  .home-main-img{
    width: min(25rem, 90vw);
  }
}

@media (max-width: 515px) and (min-width: 351px) {
  .grid .badge {
    width: 12vw;
    height: 10.8vw;
  }

  .card h4 {
    font-size: 3.5vw;
    margin: 2vh 0 1vh 0;
  }

  .detail-logo {
    width: 9.6vw;
    height: auto;
  }
}

@media (max-width: 351px) {
	.grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1.2rem;
	}

  /*.card-thumbnail {
    object-fit: contain;
  }*/
}

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}
iframe.skiptranslate { visibility: hidden !important; }
body { top: 0px !important; }
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.goog-te-banner-frame {
    display: none !important;
}

#language-switcher {
  border-radius: 30px;
  font-family: var(--fontFamily);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;

  top: 10px;
  right: 10px;
  left: 10px;
  padding: 10px 15px;
  justify-content: center;
}

#language-switcher .lang-option {
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  font-size: 14px;
  color: var(--textColor);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 5px solid transparent;

  font-size: 12px;
  padding: 5px 10px;
}

#language-switcher .lang-option.active {
  color: var(--accentColor);
  border-color: var(--primaryColor);
  font-weight: 600;
}
  #language-switcher .lang-option:hover {
  color: var(--accentColorLighter);
  transform: translateY(-2px);
  opacity: 1;
  
}

#language-switcher .separator {
  color: var(--textColor);
  opacity: 0.3;
  font-weight: 300;
  user-select: none;
}

#google_translate_element {
  display: none !important;
}

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
  position: static !important;
}

.goog-te-ftab {
  display: none !important;
}

.goog-te-balloon-frame {
  display: none !important;
}

html body {
  top: 0 !important;
}

.translate-loading {
  position: fixed;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--secondaryColor);
  color: var(--textColor);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-family: var(--fontFamily);
  z-index: 9999;
  display: none;
}

.translate-loading.show {
  display: block;
}

#language-switcher .globe-icon {
  width: 20px;
  height: 20px;
  margin-right: 4px;
  stroke: var(--accentColor);
}

