@import url(https://fonts.bunny.net/css?family=poppins:100,200,300,400,500,600,700,800,900);

:root {
  --color-primary: rebeccapurple;
  --color-accent: red;
  --color-surface: #f0f0f0;
  --color-background: #ffffff;
  --color-border: #e0e0e0;
  --color-text: #000000;
  --color-text-muted: #333333;
  --color-highlight: burlywood;
  --color-warning: brown;
  --color-disabled-bg: goldenrod;
  --color-disabled-text: gray;
  --color-first: #E6B800;
  --color-second: #8E939E;
  --color-third: #B87436;
  --color-footer-bg: #111111;
  --color-footer-text: #ffffff;

  --font-family-base: "Poppins", sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.25rem;
  --font-size-lg: 1.5rem;
  --font-size-xl: 1.75rem;
  --font-size-xxl: 2rem;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 5rem;

  --radius-sm: 4px;
  --radius-md: 5px;
  --radius-lg: 10px;
  --border-width: 1px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family-base);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body {
  background-color: #f6f6f6;
}

header {
  margin-bottom: var(--space-xl);
}

.navbar-arrow {
  width: 10px;
  height: 10px;
}

.mobilenav {
  position: fixed;
  z-index: 200;
  height: 72px;
  right: 20px;
  top: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  transition: background-color 0.2s ease-in-out;
  width: 64px;
  border-radius: 8px;
  display: none;
}

.mobilenav.viz {
  background-color: rgba(0, 0, 0, 0.75);
}

.mobilenav .btn {
  width: 100%;
  height: 100%;
  padding: 16px 0 0 18px;
  box-sizing: border-box;
  cursor: pointer;
}

.mobilenav .btn i {
  display: block;
  height: 2px;
  background-color: var(--color-background);
  margin-bottom: 6px;
  position: relative;
}

.mobilenav .btn i:before {
  position: absolute;
  content: '';
  width: 0px;
  height: 2px;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
}

.mobilenav .btn:hover i:before {
  width: 100%;
}

.mobilenav .btn .l1 {
  width: 28px;
}

.mobilenav .btn .l2 {
  width: 19.6px;
  transition: all 0.2s ease-in-out;
}

.mobilenav .btn:hover .l2 {
  width: 28px;
}

.mobilenav .btn span {
  color: #fff;
  font-size: 11px;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s ease-in-out;
  text-align: center;
}

.mobilenav .btn:hover span {
  color: var(--color-background);
}

.mobilemenu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: rgba(36, 36, 36, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out 0.8s, visibility 0s linear 1.1s;
  overflow: hidden;
}

.mobilemenu.viz {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in-out, visibility 0s linear 0s;
  overflow: hidden;
}

.mobilemenu .menu {
  position: absolute;
  height: 100%;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}

.mobilemenu.viz .menu {
  overflow: hidden;
}

.mobilemenu .menu .shadow {
  display: none;
}

.mobilemenu .menu .shadow .closebtn {
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  top: 20px;
  right: 20px;
  opacity: 1;
  visibility: visible;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  z-index: 10;
}

.mobilemenu .menu .shadow .closebtn::before,
.mobilemenu .menu .shadow .closebtn::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: #fff;
  top: 50%;
  left: 50%;
}

.mobilemenu .menu .shadow .closebtn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobilemenu .menu .shadow .closebtn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobilemenu .menu .content {
  position: absolute;
  height: 100%;
  top: 0;
  right: 0;
  background-color: #101010;
  width: 0;
  transition: width 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  overflow: hidden;
  transform-origin: right center;
}

.mobilemenu.viz .menu .content {
  width: 100%;
  transition: width 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.mobilemenu .menu .content .front {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.3s ease 0.5s;
}

.mobilemenu.viz .menu .content .front {
  opacity: 1;
  transition: opacity 0.3s ease 0.5s;
}

.mobilemenu .menu .content .back {
  position: absolute;
  width: 80px;
  border-right: solid 2px #550005;
  height: 100%;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease 0.5s;
}

.mobilemenu.viz .menu .content .back {
  opacity: 1;
  transition: opacity 0.3s ease 0.5s;
}

.mobilemenu .menu .content .front h1 {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  background-color: #101010;
  padding: 20px 0 21px 0;
  font-size: 22px;
  margin: 80px 0 0 50px;
  line-height: 1;
}

.mobilemenu .menu .content .front ul {
  margin: 20px 0 0 70px;
  padding: 24px 0;
  list-style: none;
  background-color: #101010;
}

.mobilemenu .menu .content .front ul li {
  margin-top: 20px;
  margin-left: 0;
  border: none;
  padding: 0;
}

.mobilemenu .menu .content .front ul li:nth-child(1) {
  margin-top: 0;
}

.mobilemenu .menu .content .front ul li a {
  color: #fff;
  text-decoration: none;
  line-height: 1;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1.5px;
  display: block;
}

.mobilemenu .menu .content .front ul li.has-dropdown {
  position: relative;
  cursor: pointer;
}

.mobilemenu .menu .content .front ul li.has-dropdown>span {
  color: #fff;
  text-decoration: none;
  line-height: 1;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobilemenu .menu .content .front ul li.has-dropdown>span img {
  width: 10px;
  height: 10px;
  filter: invert(1);
  transition: transform 0.3s ease;
}

.mobilemenu .menu .content .front ul li.has-dropdown.open>span img {
  transform: rotate(90deg);
}

.mobilemenu .menu .content .front ul li.has-dropdown .mobile-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 10px;
  padding-left: 20px;
}

.mobilemenu .menu .content .front ul li.has-dropdown.open .mobile-dropdown {
  max-height: 300px;
}

.mobilemenu .menu .content .front ul li.has-dropdown .mobile-dropdown a {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  color: var(--color-background);
  border: none;
}

.logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: 1;
}

.navbar {
  margin-top: var(--space-xl);
  padding-inline: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
}

.links {
  display: flex;
  justify-content: center;
  flex: 1;
  align-items: center;

  font-weight: 600;
  gap: var(--space-md);
  font-size: var(--font-size-md);
}

.links .editii img,
.links .poze img {
  width: 10px;
  height: 10px;
}

.regulament {
  font-size: var(--font-size-md);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  font-weight: 600;
}

.links>div {
  cursor: pointer;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.links>div:hover {
  background-color: var(--color-surface);
}

.regulament a {
  transition: color var(--transition-fast);
}

.regulament a:hover {
  color: #550005;
}

.editii,
.poze {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 9999;
  gap: var(--space-xs);
}

.editii img,
.poze img {
  transition: all var(--transition-normal);
}

.dropdown {
  position: absolute;
  min-width: 150px;
  top: 100%;
  left: 0;
  background-color: var(--color-background);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  border: var(--border-width) solid var(--color-border);

  font-weight: initial;
}

.dropdown a {
  display: block;
  text-decoration: none;
  color: var(--color-text-muted);
  padding: 0.75rem 1rem;
  transition: background-color var(--transition-fast);
}

.dropdown a:hover {
  background-color: var(--color-surface);
}

.editii:hover img,
.poze:hover img {
  rotate: 90deg;
}

.editii:hover .dropdown,
.poze:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a:first-child {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.dropdown a:not(:last-child) {
  border-bottom: var(--border-width) solid var(--color-border);
}

.dropdown a:last-child {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

main {
  flex: 1;

  display: flex;
  justify-content: center;
  align-items: center;
}

.tab-parent {
  background-color: var(--color-background);

  width: 80vw;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0px 0px 10px 10px rgba(0,0,0,0.2);
}

.tab-parent .top-bar {
  display: flex;
  justify-content: space-between;
  padding: var(--space-md);
  background-color: #e8e8e8;
}

.tab-parent .top-bar button {
  border: none;
  background-color: #830009;
  color: #fff;  
  width: 2em;
  height: 2em;
  font-size: x-large;
  font-weight: bolder;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.tab-parent .top-bar button:hover {
  background-color: #550005;
  color: var(--color-background);
}

.tab-parent .top-bar button:disabled {
  background-color: #a80009;
  color: #D9D9D9;
  cursor: no-drop;
}

.tab-wrapper {
  position: relative;
  min-height: 30rem;
  overflow: visible;
}

.tab-wrapper .tab,
.tab-wrapper .second-tab {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: var(--space-md);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  place-items: center;
}

.podium-parent {
  margin-top: var(--space-xl);
  display: flex;
  align-items: end;
  height: 17.5rem;
  position: relative;
}

.podium {
  position: relative;
  width: 7.5rem;
  height: 0;
  margin: 0 var(--space-sm);
  cursor: pointer;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.first.active {
  height: 17.5rem;
  background-color: var(--color-first);
}

.second.active {
  height: 12.5rem;
  background-color: var(--color-second);
}

.third.active {
  height: 7.5rem;
  background-color: var(--color-third);
}

.fourth {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  height: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
}

.fourth.active {
  position: inherit;
  transform: translateX(0);
  height: 7.5rem;
  width: 7.5rem;
  opacity: 1;
  pointer-events: auto;
  background-color: var(--color-third);
}

.podium .name {
  color: var(--color-warning);
  text-align: center;
  font-weight: bolder;
  font-size: var(--font-size-base);
  transform: translateY(-150%);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.podium .name.active {
  opacity: 1;
}

.podium.dimmed {
  opacity: 0.5;
}

.info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: var(--space-md);
  overflow: auto;
  margin: auto;
}

.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.visible {
  opacity: 1;
  pointer-events: auto;
}

.info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);

  width: 100%;
  max-width: 500px;
  min-width: 300px;
}

.info-card {
  width: 100%;
  background: var(--color-background);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;

  opacity: 0;
  transition: opacity var(--transition-normal), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.info-card.visible {
  opacity: 1;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 10px 8px 12px rgba(0, 0, 0, 0.15);
}


.link {
  color: #830009;

  transition: color var(--transition-normal);
}

.link:hover {
  color: #550005;
}

footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl);
  margin-top: var(--space-xl);
  text-align: center;
}

footer .left,
footer .middle,
footer .right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
}

footer .middle {
  flex: 2;
}

footer .left {
  align-items: flex-start;
}

footer .right {
  align-items: flex-end;
}

footer .left img,
footer .right img {
  max-width: 250px;
  height: auto; 
  object-fit: contain; 
}

.cncv-logo {
  border-radius: 10px;
  max-width: 250px;
}

@media only screen and (max-width: 480px) {
  .mobilemenu .menu {
    max-width: 100%;
  }
}

@media only screen and (max-width: 600px) {
    .mobilenav {
    display: block;
  }

  .navbar .logo img {
    max-width: 250px;
  }

  .navbar .links,
  .navbar .regulament {
    display: none;
  }

  .navbar {
    padding-inline: var(--space-md);
  }

  .tab-parent {
    width: 95vw;
  }

  .tab-wrapper {
    min-height: 50rem;
    height: auto;
  }

  .tab-wrapper .tab,
  .tab-wrapper .second-tab {
    position: absolute;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    min-height: 100%;
    padding-bottom: var(--space-xl);
    padding-inline: var(--space-sm);
  }

  .podium-parent {
    margin-bottom: var(--space-lg);
    height: auto;
    min-height: 14rem;
    padding-bottom: 2rem;
    gap: var(--space-xs);
  }


  .podium {
    flex: 1;
    max-width: 4.5rem;
  }

  .first.active {
    height: 10rem;
  }

  .second.active {
    height: 7rem;
  }

  .third.active,
  .fourth.active {
    height: 5rem;
  }

  .info {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    padding: var(--space-md);
    align-self: start;
  }

  .info-card {
    width: 100%;
  }

  footer {
    flex-direction: column;
    gap: var(--space-md);
  }

  footer .left,
  footer .right .img-container {
    align-items: center;
  }
}

@media only screen and (min-width: 601px) and (max-width: 768px) {
  .mobilenav {
    display: block;
  }

  .navbar .logo img {
    max-width: 250px;
  }

  .navbar .links,
  .navbar .regulament {
    display: none;
  }

  .navbar {
    padding-inline: var(--space-md);
  }

  .tab-parent {
    width: 95vw;
  }

  .tab-wrapper {
    min-height: 50rem;
    height: auto;
  }

  .tab-wrapper .tab,
  .tab-wrapper .second-tab {
    position: absolute;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    min-height: 100%;
    padding-bottom: var(--space-xl);
    padding-inline: var(--space-sm);
  }

  .podium-parent {
    margin-bottom: var(--space-lg);
    height: auto;
    min-height: 14rem;
    padding-bottom: 2rem;
    gap: var(--space-xs);
  }


  .podium {
    flex: 1;
    max-width: 7.5rem;
  }

  .first.active {
    height: 12.5rem;
  }

  .second.active {
    height: 10rem;
  }

  .third.active,
  .fourth.active {
    height: 7.5rem;
  }

  .info {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    padding: var(--space-md);
    align-self: start;
  }

  .info-card {
    width: 100%;
  }

  footer {
    flex-direction: column;
    gap: var(--space-md);
  }

  footer .left,
  footer .right .img-container {
    align-items: center;
  }
}

@media only screen and (min-width: 769px) and (max-width: 1279px) {
  .mobilenav {
    display: block;
  }

  .navbar .logo img {
    max-width: 250px;
  }

  .navbar .links,
  .navbar .regulament {
    display: none;
  }

  .navbar {
    padding-inline: var(--space-md);
  }

  .tab-parent {
    width: 95vw;
  }

  .tab-wrapper {
    min-height: 50rem;
    height: auto;
  }

  .tab-wrapper .tab,
  .tab-wrapper .second-tab {
    position: absolute;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    min-height: 100%;
    padding-bottom: var(--space-xl);
    padding-inline: var(--space-sm);
  }

  .podium-parent {
    margin-bottom: var(--space-lg);
    height: auto;
    min-height: 14rem;
    padding-bottom: 2rem;
    gap: var(--space-xs);
  }

  .info {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    padding: var(--space-md);
    align-self: start;
  }

  .info-card {
    width: 100%;
  }

  footer {
    flex-direction: column;
    gap: var(--space-md);
  }

  footer .left,
  footer .right .img-container {
    align-items: center;
  }
}

