
/* ──────────────────────────────── */
/*  Általános                       */
/* ──────────────────────────────── */

body {
  background-color: #4f6170;
  color: #fff;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: #000d1f; 
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  border-bottom: 1px solid rgba(126, 218, 255, 0.08);
}

nav {
  margin-bottom: 1rem;
}

.header-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: clamp(600px, 80vw, 1200px);
}

.video-wrapper {
  display: flex;
  justify-content: center;
  margin: 30px auto;
  max-width: 800px;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}
.video-wrapper iframe {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border: none !important;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(126, 218, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-wrapper iframe:hover {
  box-shadow: 0 0 25px rgba(126, 218, 255, 0.25);
}


/* ──────────────────────────────── */
/*  Nyelv-választó                  */
/* ──────────────────────────────── */

.language-selector {
  position: absolute;   
  z-index: 10;            
  top: clamp(10px, 2vw, 20px); 
  right: clamp(10px, 3vw, 40px); 
  box-sizing: border-box;
}

.language-selector select {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(126, 218, 255, 0.3);
  color: #7edaff;
  border-radius: 6px;
  padding: clamp(4px, 1vw, 6px) clamp(8px, 2vw, 12px);
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.7rem, 1.4vw, 0.9rem);
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 180px;
  min-width: 90px;
  text-align: center;
}

.language-selector select:hover {
  border-color: #7edaff;
  box-shadow: 0 0 10px #68f1d4;
}

/* ──────────────────────────────── */
/*  ASCII ábra a headerben          */
/* ──────────────────────────────── */

.ascii-art-wrapper {
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;     
  z-index: 0;
  opacity: 0.65; 
  pointer-events: none; 
  max-width: 100%;
}

.ascii-art-block {
  font-family: 'Courier New', Courier, monospace;
font-size: clamp(0.5rem, 1.5vw, 0.9rem);
  color: #cfefff;
  white-space: pre;
  line-height: 1.1;
}


/* ──────────────────────────────── */
/*  Animációk                       */
/* ──────────────────────────────── */

@keyframes pulse-in {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse-in-box {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes glow {
  0% {
    text-shadow: 0 0 6px rgba(110, 255, 255, 0.3),
                 0 0 12px rgba(110, 255, 255, 0.2);
  }
  100% {
    text-shadow: 0 0 16px rgba(126, 218, 255, 0.5),
                 0 0 30px rgba(126, 218, 255, 0.6);
  }
}

@keyframes glow-hover {
  0% {
    text-shadow: 0 0 10px rgba(110, 255, 255, 0.32),
                 0 0 20px rgba(110, 255, 255, 0.22);
  }
  100% {
    text-shadow: 0 0 14px rgba(126, 218, 255, 0.55),
                 0 0 28px rgba(126, 218, 255, 0.65);
  }
}


/* ──────────────────────────────── */
/*  Címstílus és HeaderHover        */
/* ──────────────────────────────── */
.dramatic-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 6vw, 5rem);
  letter-spacing: clamp(1px, 0.4vw, 4px);
  background: linear-gradient(90deg, #ffffff, #ffffff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin: 0 auto;
  display: inline-block;
  animation: glow 4s ease-in-out infinite alternate;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.dramatic-title a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.dramatic-title:hover {
  animation: glow-hover 4s ease-in-out infinite alternate;
}

@media (max-width:430px) {
  .dramatic-title {
     font-size: clamp(1rem, 7.5vw, 12rem);
     letter-spacing: clamp(1px, 0.2vw, 3px);
  }
}


/* ──────────────────────────────── */
/*          Navigáció               */
/* ──────────────────────────────── */
nav ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  justify-content: center;
  gap: clamp(10px, 4vw, 40px);
  display: flex;
  flex-wrap: nowrap;
}
nav li {
  display: inline-block;
  flex-shrink: 1;
}
nav a,
nav a:link,
nav a:visited {
  text-decoration: none;
  color: #7edaff;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}
nav a:hover {
  color: #fff;
  text-shadow: 0 0 10px #68f1d4;
}
nav a:active {
  text-decoration: none; 
  color:  #fff;
  text-shadow: 0 0 10px #68f1d4;
}

@media (max-width: 430px) {
  nav ul {
    flex-direction: column; 
    align-items: center;
    gap: 10px;
  }

  nav a,
  nav a:link,
  nav a:visited {
    font-size: clamp(0.8em, 4vw, 1.3rem);
    white-space: normal; 
  }
}


/* ──────────────────────────────── */
/*  Back to top funkció megjelenése */
/* ──────────────────────────────── */
.back-to-top {
  text-align: center;
  margin: 60px 0 40px 0;
}
.back-to-top a,
.back-to-top a:link,
.back-to-top a:visited {
  display: inline-block;
  background-color: #00192e;
  color: #7edaff;
  font-family: 'Orbitron', sans-serif;
  font-size: calc(10px + 0.6vw);
  font-weight: bold;
  padding: 10px 20px;
  border: 2px solid #7edaff;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.back-to-top a:hover,
.back-to-top a:active {
  color: #fff;
  background-color: #0e1f2f;
  border-color: #fff;
  box-shadow: 0 0 15px #68f1d4;
  text-shadow: 0 0 10px #68f1d4;
  text-decoration: none;
}
html {
  scroll-behavior: smooth;
 }

/* ──────────────────────────────── */
/*     Általános blokkstílusok      */
/* ──────────────────────────────── */
.indented-text,
#kapcsolat, .container,
#projektek,
#project-description {
  background-color: #00192e;
  padding: 2rem 2rem;
  border-radius: 12px;
  max-width: 1200px;
  width: 90%;
  margin: 2.5rem auto;
  color: #cfefff;
  line-height: 1.7;
  font-family: 'Arial', sans-serif;
  text-align: justify;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
    box-shadow: 0 0 20px rgba(126, 218, 255, 0.4); 
}


/* ──────────────────────────────── */
/*     Címek                        */
/* ──────────────────────────────── */
.indented-text h2,
#kapcsolat h2,
#projektek h2, #rolam-text h2
#project-description h2 {
  font-family: 'Orbitron', sans-serif;
  color: #7edaff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: clamp(1.1rem, 4vw, 2rem);
  text-align: center;
  text-shadow: 0 0 10px rgba(126, 218, 255, 0.4);
  animation: pulse-in 4.0s ease-out;
}

#project-description h2, #lostfred-description h2 {
  letter-spacing: clamp(1px, 0.4vw, 2px);
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  margin-bottom: clamp(10px, 3vw, 25px);
}

.indented-text caption {
  caption-side: top;
  font-weight: bold;
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #7edaff;
  text-align: left;
}

/* ──────────────────────────────── */
/*     Index oldal                  */
/* ──────────────────────────────── */

#topdiv h2 {
  font-size: clamp(5px, 1.2vw, 10px);
}

#topdiv fieldset {
  border: none;
}

#topdiv {
  position: relative;
  overflow: hidden;
}
#welcome-msg,
#topdiv p {
  position: relative;
  color: #beedff;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(16px, 2vw, 1.6rem);
  text-shadow: 0 0 10px rgba(126, 218, 255, 0.4);
  margin-bottom: clamp(8px, 2vw, 18px);
  line-height: 1.5;
  text-align: center;
  letter-spacing: clamp(1px, 0.3vw, 2px);
  z-index: +2;
}

#topdiv p::first-letter {
  font-size: 2rem;
  font-weight: bold;
}

#rolam-short-txt,
#rolam-short-a, #welcome-msg {
  animation: pulse-in 1.0s ease-out;
}

#rolam-short-txt::first-line {
  font-weight: bold;
  letter-spacing: 2px;
}

#rolam-short-a {
  display: inline-block;
  margin-left: -20%; 
  margin-top: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1rem, 2vw, 1.1rem);
  text-transform: uppercase;
  color: #7edaff;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

#rolam-short-a:hover {
  color: #fff;
  text-shadow: 0 0 10px #68f1d4;
  transform: translateX(4px);
}

.confetti {
  position: absolute;
  width: 100px ;
  height: auto;
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.confetti-left {
  bottom: 5px;
  left: 10px;
  transform: rotate(0deg);
}
.confetti-right {
  bottom: 5px;
  right:  10px;
  transform: scaleX(-1) rotate(0deg);
}

#lepj-kapcs-a {
  color: #cfefff;
  display: inline-block;
  font-size: 20px;
  border: 1px solid rgba(126, 218, 255, 0.2);
  border-radius: 12px;
  padding-bottom:  2px;
  padding-top:  2px;
  padding-left:  25px;
  padding-right:  25px;
  margin-top: 8px;
  margin-left: 00%;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

#lepj-kapcs-a:hover {
  text-shadow: 0 0 8px rgba(126, 218, 255, 0.6);
  transform: translateX(3px);
  color: #fff;
  background-color: #007acc;
  box-shadow: 0 0 10px rgba(126, 218, 255, 0.5);
  }

a.cta-button,
a:link,
a:visited {
  color: #00c8ff; 
  text-decoration: underline;
  display: inline-block;
  margin: 0 auto;
  text-align: center;
}

a:hover {
  color: #66eaff; 
}



/*  Reszponzív legyen */
@media (max-width: 700px) {
  .confetti {
  width: clamp(40px, 10vw, 100px);
  height: auto !important;
  }

  #lepj-kapcs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  #lepj-kapcs-txt {
    font-size: 14px;
    margin: 1rem;
    width: 90%;
  }

  #lepj-kapcs-a {
    font-size: calc(12px + 1vw);
    margin-top: 0.5rem;
  }

  #rolam-short-txt {
  width: 70% !important;
  margin: 0 auto !important;
  text-align: left !important;
  }

  img[alt="Perger Tamás portré"] {
  float: none !important;
  display: block;
  margin: 0 auto 20px auto !important;
  }

  #lostfred-description, 
  #project-description {
  padding-top: 10%;
  padding-right: 10%;
  padding-left: 10%;
  letter-spacing: 0px !important;
  }

  #rolam-short-h2 {
  margin-left: 0 !important;
  text-align: center;
  }
  #rolam-short-a {
  width: 60% !important;
  font-size: 15px;
  margin-left: 4%;
  padding-top: 7%;
  margin-bottom: 8%;
  }
}


/* ──────────────────────────────────────*/
/*    Index oldal - Beágyazott videók    */
/* ──────────────────────────────────────*/

.project-carousel {
  display: flex;
  scroll-snap-type: x mandatory;
  justify-content: center;
  min-width: max-content;

  gap: 2rem;
  padding: 1rem 0;
  margin: 0 auto;

  scrollbar-width: none;  /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

/* Projekt scroll pc-re */
@media (max-width: 1250px) {
.carousel-viewport {
  overflow-x: auto;       
  scrollbar-width: auto;
  -ms-overflow-style: auto;          
  -webkit-overflow-scrolling: touch;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0 auto 1rem auto;
  padding-right: 25px;
  padding-left: 25px;
  }
} 

.project-card {
  flex: 0 0 auto;
  scroll-snap-align: center;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(126, 218, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 15px rgba(126, 218, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(126, 218, 255, 0.2);
}

.project-card h3 {
  font-family: 'Orbitron', sans-serif;
  color: #7edaff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.indented-text h3 {
  font-family: 'Arial', sans-serif;
  font-style: italic;
}
.project-card a {
  color: #7edaff;
  text-decoration: none;
}

.project-card a:hover {
  text-shadow: 0 0 8px #68f1d4;
}

.project-card iframe {
  width: 100%;
  height: 170px;
  border: none;
  border-radius: 8px;
  margin-top: 0.5rem;
}

/* ──────────────────────────────── */
/*     Kapcsolat oldal              */
/* ──────────────────────────────── */


#kapcsolat {
  background-color: #00192e; 
  border-radius: 10px; 
  box-shadow: 0 0 20px rgba(126, 218, 255, 0.4); 
  padding: 2rem 2rem; 
  max-width: 1200px;
  width: 90%;
  margin: 2.5rem auto;
  padding-bottom: 4rem;
  box-sizing: border-box;
}

#kapcsolat fieldset {
  border: 3px solid rgba(126, 218, 255, 0.3);
  border-radius: 8px;
  padding: 25px 35px;
}

#kapcsolat legend {
  color: #7edaff;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
}

#kapcsolat label {
  display: inline-block;
  width: 120px;
  margin-top: 10px;
  color: #cfefff;
}

#kapcsolat form {
  max-width: 800px; 
  width: 100%;
  margin: 0 auto;
  display: block;
  box-sizing: border-box;
}


#kapcsolat input:not([type="radio"]),
#kapcsolat select {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(126, 218, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  padding: 8px 10px;
  margin-top: 8px;
  margin-bottom: 10px;
  width: 100%;
  max-width: 300px;
  font-family: 'Arial', sans-serif;
  display: inline-block;
  box-sizing: border-box;
}

#kapcsolat select option {
  background-color: #001024;
  color: #fff;
}

#kapcsolat button {
  background-color: rgba(110, 220, 255, 0.1);
  border: 1px solid #7edaff;
  color: #7edaff;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  padding: 10px 25px;
  margin: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#kapcsolat button:hover {
  background-color: #7edaff;
  color: #000d1f;
  box-shadow: 0 0 15px #68f1d4;
}

/* Toggle group */
.toggle-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
}

.toggle-option {
  position: relative;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  color: #7edaff;
  text-transform: uppercase;
  letter-spacing: 1px;
  user-select: none;
}

.toggle-option input {
  appearance: none;
  position: absolute;
}

.toggle-option span {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #7edaff;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.toggle-option input:checked + span {
  background-color: #7edaff;
  color: #000d1f;
  box-shadow: 0 0 15px #68f1d4;
}

/* ──────────────────────────────── */
/*          Táblázat                */
/* ──────────────────────────────── */
.styled-table {
  width: 100%;
  max-width: 700px;
  margin: 1rem auto;
  border-collapse: collapse;
  box-shadow: 0 0 15px rgba(126, 218, 255, 0.1);
}

.styled-table th,
.styled-table td {
  border: 1px solid rgba(126, 218, 255, 0.2);
  padding: 10px 15px;
  text-align: left;
  font-family: 'Arial', sans-serif;
  color: #cfefff;
}

.styled-table th {
  background-color: #00192e;
  color: #7edaff;
  font-weight: bold;
}

.styled-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.03);
}

.styled-table tbody tr:hover {
  background-color: rgba(126, 218, 255, 0.05);
}


/* ──────────────────────────────── */
/*    Projektek                     */
/* ──────────────────────────────── */

#project-description ul, #lostfred-description ul {
  list-style-type: none;
  padding: 0;
  margin: 0 auto;
  text-align: center;
  max-width: clamp(280px, 90vw, 800px);
}

#projektek li,
#project-description ul, #lostfred-description ul {
  color: #cfefff;
  font-family: 'Arial', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  margin: clamp(8px, 2vw, 15px) 0;
  line-height: 1.6;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  animation: pulse-in 1.0s ease-out;
}

#projektek li:hover {
  color: #fff;
  text-shadow: 0 0 10px #68f1d4;
}

#projektek a {
  color: #7edaff;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

#projektek a:hover {
  color: #fff;
  text-shadow: 0 0 10px #68f1d4;
}

#projektek a:visited {
  color:  #d1f1fd;
  text-shadow: 0 0 10px #68f1d4;
}

/* ──────────────────────────────── */
/*  About me                        */
/* ──────────────────────────────── */

.container {
display: flex;
justify-content: space-between; 
align-items: flex-start;
padding: 40px 80px;
background-color: #00192e; 
border-radius: 15px;
border-color: rgb(218, 218, 218);
margin: 50px auto;
box-shadow: 0 0 20px rgba(126, 218, 255, 0.4); 
overflow: hidden;
}

.bemutatkozas-text {
  line-height: 1.6;
  text-align: justify;
  width: 100%;
  max-width: 800px;
  flex-shrink: 1;
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  animation: pulse-in-box 3s ease-out;
}

.bemutatkozas-text h1::before {
  content: "★ ";
  color: #68f1d4;
}


#rolam img  {
  overflow-clip-margin: content-box;
  margin-top: 12%;
  margin-left: 10%;
  width: clamp(120px, 25vw, 400px);
  border-radius: 40px;
  box-shadow: 0 0 35px rgba(0, 0, 0, 80.9);
  animation: pulse-in-box 3s ease-out;
  float: right;
  height: auto;

}

#rolam p {
  clear: both;
}

  @media (max-width: 800px) {
  .container {
    flex-direction:column-reverse;
    align-items: flex-start;
    padding: 10px 30px;
  }

  @media (max-width: 800px) {
  .container img {
    min-width: 200px;
    margin-right: auto;
    }
  }
}

/* ──────────────────────────────── */
/*  About me - Donations funkció    */
/* ──────────────────────────────── */

#donations {
  background-color: #00192e; 
  border: 1px solid rgba(126, 218, 255, 0.2);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(126, 218, 255, 0.1);
  padding: 40px 60px;
  max-width: 920px;
  margin: 40px auto 60px auto;
  text-align: center;
  animation: pulse-in-box 3s ease-out;

}

#donations h2 {
  font-family: 'Orbitron', sans-serif;
  color: #7edaff;
  text-transform: uppercase;
  margin-bottom: 25px;
      font-size: 1.5em;
}

.donations-p-div {
    float: none !important;
    display: block;
    margin: 0 auto 20px auto !important;
align-items: center;
}

#donations p {
  color: #cfefff;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.6;
  text-align: justify;
  margin: 0 auto 1.5em auto;
}


.donation-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}



#buy-me-kofi {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background-color: rgba(0, 147, 192, 0.795);
  margin-bottom: 8%;
  margin-top: 3%;
  color: #7edaff;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-size: clamp(0.8rem, 2vw, 1rem);
}

#buy-me-kofi img {
  height: 36px;
  width: auto;
}

#PayPal-donate img {
  height: 120px;
  width: auto;
}


/* ──────────────────────────────── */
/*  Egyéb Mobilbarát *javítások*    */
/* ──────────────────────────────── */

/* tabletre */
@media (max-width: 800px) {
  .project-card {
    flex: 0 0 calc(60vw);
    max-width: 300px; 
    min-width: 60px; 
    padding: 0.8rem;
  }

  .project-card iframe {
    flex: 0 0 calc(80vw);
    height: 180px; 
  }
}

@media (max-width: 600px) {
  .project-card {
    flex: 0 0 calc(100vw);
    max-width: 250px;
    min-width: 100px;
    min-height: 20px;
    padding: 0rem;
  }

  .project-carousel::-webkit-scrollbar, .indented-text:-webkit-scrollbar {
  display: none;
  }

  .project-viewport::-webkit-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;   
  }
  .carousel-viewport::-webkit-scrollbar {
  display: none;
  }   
}

@media (max-width: 800px) {
  #kapcsolat label {
    width: 100%;
    text-align: left;
    margin-bottom: 6px;
  }

  #kapcsolat input,
  #kapcsolat select {
    width: 100%;
    max-width: none;
  }

  .toggle-group {
    flex-direction: column;
    align-items: center;
    font-size: 14px;
  }

  .indented-text,
  #kapcsolat,
  #projektek,
  #project-description,
  #topdiv {
    width: 90vw;
    text-align: left;
    padding: 10%;
    letter-spacing: 0px !important;
  } 
}