
/* Global reset and default styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, button, a {
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--color-main-bkg);
  font-family: sans-serif;
  color: var(--color-panel-title-main);
  display: flex;
  flex-direction: column;

  min-height: 500px;
  height: 100dvh;
  
  min-width:300px;
  width: 100%;
  
}



.header {
  letter-spacing: 3px;
  text-align: center;
  font-size: 2rem;
  /*font-weight: bold;*/
  padding-top: 15px;
  padding-bottom: 10px;
}

.footer {
  text-align: center;
  font-size: 28px;
  /*font-weight: bold;*/
  padding-bottom: 15px;
  cursor: pointer;
}

.corner-img {
  border-radius: 50%;
  padding: 2px;
  flex: 0 0 8vh; /* Fixed width for the icon */
  width: auto;
  height: 8vh;
  object-fit: cover;
  cursor: pointer;
  aspect-ratio: 1; /* Ensures the aspect ratio remains 1:1 */  
  justify-self: left;
}




.main-container {
  /* Csak középre igazítjuk a tartalmat */
  display: flex;
  flex-direction: column; /* Ez teszi egymás alá */

  justify-content: center;
  width: 90%;
  margin: 0 auto;
  padding: 0;
}



/* Szekció stílusai */
.content-section {
  width: 100%;
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  background-color: var(--color-panel-btn-bkg);
  border-radius: 5px;
  padding-bottom: 10px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  
  flex: 1;
}

.section-header {
  text-align: left;
  margin-bottom: 5px; 
  width: 100%;
}

.section-header h2 {
  font-size: 1rem;
  margin: 0;
  padding: 5px;
}

.section-header p {
  text-align: left;
  padding: 15px 15px;
  width: 100%;
  background-color: rgba(29, 47, 104, 0.595);
}

.section-subtitle {
  width: 100%;
  padding-right: 10px;
  text-align: right;
  font-size: 1rem;
  color: #ececec;
  font-weight: normal;
}



/* Kártyák elrendezése grid használatával */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px;
  padding: 10px;
}

/* Kártya stílusok */
.card-content {
  background-color: var(--color-panel-btn-bkg, #f9f9f9);
  border-radius: 5px;
  text-align: center;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;  
  padding-left: 5px;
  padding-right: 5px;
  margin: 10px;
}

.card-content:hover {
  filter: brightness(1.05);
  transform: scale(1.02);
}


.card-header {
  font-size: 1rem;
  /*font-weight: bold;*/
  /*white-space: pre-line; /* A \n helyett is jól jöhet, ha így adnád meg a sortöréseket */
  padding-bottom: 5px;
  padding-top: 1px;
}



.cards-container {
  /* Grid elrendezés, mely automatikusan elosztja a kártyákat */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  width: 100%;
  padding: 0;
}


/* A kártyák stílusa */
.card-content {
  padding: 5px;
}

.card-content:hover {
  filter: brightness(1.2);
  transform: scale(1.02);
}



.card-embedd {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  background-color: var(--color-panel-btn-bkg);
  border-radius: 5px;
  transition: transform 0.3s ease, background-color 0.3s ease;  
  padding: 0;

}

.card-embedd img {
  width: 100%;
  height: auto;
}








.bottom-right-button{
  position: fixed;
  padding: 5px;
  bottom: 0px;
  right: 0px;
  overflow: hidden;
  aspect-ratio: 1;  
 
  background-color: rgba(255, 255, 255, 0);
  border-color: rgba(255, 1, 1, 0);
  font-size: 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;  
  border-radius: 50%;
}

.bottom-right-button:hover {
  transform: scale(1.1);
}


.top-right-button {
  z-index: 9999; /* make sure it's higher than other elements */
  position: fixed;
  padding: 5px;

  top: 0px;
  right: 0px;
  
  border-radius: 50%;
  aspect-ratio: 1;
  overflow: hidden;
  color: white;
  fill: #888;

  width: auto;
  height: auto;
  align-items: center;
  justify-content: center;
  
  background-color: rgba(0, 0, 0, 0);
  border-color: rgba(0, 0, 0, 0);
  font-size: 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease; 
}

.top-right-button:hover {
  transform: scale(1.1);
  /*filter: brightness(1.5);*/
}


/* Dropdown Menu */
.info-dropdown-menu {
  position: fixed;
  bottom: 50px; /* Adjust based on button size */
  right: 10px;
  background-color: rgb(19, 19, 100);
  box-shadow: 0px 0px 40px 40px rgba(0,0,0,0.5);

  color: var(--color-panel-btn-text);
  border: 2px solid var(--color-panel-stroke);
  border-radius: 10px;
  width: auto;
  overflow: hidden;
  
  display: none; /* Hidden by default */
  flex-direction: column;
  z-index: 999;
}


.user-dropdown-menu {
  position: fixed;
  top: 50px; /* Adjust based on button size */
  right: 10px;
  background-color: rgb(19, 19, 100);
  color: var(--color-panel-btn-text);
  border: 2px solid var(--color-panel-stroke);
  border-radius: 10px;
  width: auto;
  overflow: hidden;
  
  box-shadow: 0px 0px 40px 40px rgba(0,0,0,0.5);
  display: none; /* Hidden by default */
  flex-direction: column;
  z-index: 999;
}


.close-btn {
  cursor: pointer;
}



.menu-item {
  padding: 10px 20px;
  /*font-size: 2rem;*/
  font-size: 3vh;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  /*border-bottom: 1px solid var(--color-panel-stroke);*/
}

.menu-item-head {
  cursor: pointer;
  padding: 10px 5px 10px 10px;
  font-size: 3vh;
  /*font-weight: bold;*/
  letter-spacing: 2px;
  gap: 20px;

  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  display: flex;
  background-color: var(--color-panel-btn-bkg);
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.menu-item-head:hover {
  /*transform: scale(1.05);*/
  filter: brightness(1.5);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:first-child {
  border-bottom: none;
}
.menu-item a {
  text-decoration: none;
  color: var(--color-panel-btn-text);
}
.menu-item:hover {
  transform: scale(1.05)
}

.hidden {
  display: none;
}
