:root {
  --bg: #eae6e5;      /* világos oldal háttér */
  --ink: #375742;     /* szövegszín */
  --panel: #3c4d42;   /* zöld panel */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(to right, var(--bg) 0 50%, var(--panel) 50% 100%);
  color: var(--ink);
  font-family: Verdana, sans-serif;
  display: flex;
  flex-direction: column;  
  align-items: center;
  justify-content: flex-start;
  padding: 16px 0;
  gap: 30px;
}

/* Név sor */
.name-row {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 8px;
  position: relative;
  top: -40px;
}
.name-row .first {
  width: 50%;
  text-align: right;
  padding-right: 10px;
  color: #3c4d42;
}
.name-row .last {
  width: 50%;
  text-align: left;
  padding-left: 10px;
  color: #d9d4d2;
}

/* CV blokk */
.cv-wrap {
  display: flex;
  flex-direction: row;
  gap: 40px;
  width: min(1200px, 92%);
  margin: 80px auto 0;
  align-items: flex-start;
}

/* Bal oldal - kép */
.cv-left {
  flex: 0 0 45%;
  display: flex;
  justify-content: flex-start;
}
.cv-left img {
  width: auto;
  max-width: 70%;
  height: auto;
  border-radius: 8px;
  margin-top: -50px;
  object-fit: cover;
}

/* Jobb oldal - szöveg */
.cv-right {
  flex: 1 1 55%;
  padding: 40px;
  color: #eae6e5;
}

.cv-right h1 {
  margin-top: -100px;
  font-size: 1.2rem;
  line-height: 2;
  text-decoration: underline;
}
.cv-right h2 {
  font-size: 1.2rem;
  line-height: 2;
  text-decoration: underline;
}
.cv-right h3 {
  font-size: 0.8rem;
  line-height: 2;
}
.cv-right p {
  font-size: 0.8rem;
  line-height: 2;
}

/* Link */
a {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  font-family: verdana;
  font-size: 100%;
  text-decoration: underline; 
  font-weight: bold;
}

details { margin-bottom: 12px; }
summary {
  font-size: 0.8rem;
  line-height: 2;
  cursor: pointer;
  font-weight: bold;
}

/* --- Reszponzív: <940px --- */
@media (max-width: 940px) {
  body {
    background: var(--panel);
  }

  .name-row {
    flex-direction: column;
    align-items: center;
    top: 0;
  }
  .name-row .first,
  .name-row .last {
    width: auto;
    text-align: center;
    padding: 0;
    color: #d9d4d2;
    font-size: 15px; 
  }

  .cv-wrap {
    flex-direction: column;
    align-items: flex-start; 
    margin: 20px auto 0;     
  }

  .cv-left {
    width: 100%;
    display: block;
  }

  .cv-left img {
    max-width: 220px;   
    height: auto;
    margin-left: 20px;
    display: block;
    margin: 40px 0 20px 20px;
  }

  .cv-right {
    width: 100%;
    padding: 20px;
    margin-top: 60px;   
    text-align: left;
  }
}