/* PontyFotó.hu – szándékosan egyszerű, "régi iskolás" portál-kinézet. */

body {
  margin: 0;
  padding: 10px 0;
  background: #b9c9d6 url("/img/bg.svg");
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 12px;
  color: #000;
}

a { color: #0033cc; }
a:visited { color: #551a8b; }
a:hover { color: #cc0000; }

#wrap {
  width: 960px;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #556677;
  box-sizing: border-box;
}

/* ---------- fejléc ---------- */
#header {
  background: #1f4e79;
  background: linear-gradient(#3b6fa0, #1f4e79);
  border-bottom: 3px solid #f2c200;
  padding: 12px 15px;
  color: #fff;
}
#header .logo {
  color: #fff;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 2px 2px 0 #0b2740;
}
#header .logo img { vertical-align: middle; }
#header .tagline { font-style: italic; color: #dce8f3; margin-top: 2px; }

#menubar {
  background: #dfe7ee;
  border-bottom: 1px solid #8fa3b5;
  padding: 6px 10px;
  font-weight: bold;
}
#menubar a { color: #1f4e79; text-decoration: none; }
#menubar a:hover { text-decoration: underline; color: #cc0000; }

/* ---------- oszlopok: tartalom + oldalsáv ---------- */
#cols { display: flex; align-items: flex-start; gap: 10px; padding: 10px; }
#main { flex: 1; min-width: 0; }
#side { width: 220px; flex-shrink: 0; }

/* ---------- dobozok ---------- */
.box { border: 1px solid #8fa3b5; margin-bottom: 10px; background: #fff; }
.boxtitle {
  background: #c9d7e4;
  background: linear-gradient(#e3ebf2, #b8c9d9);
  border-bottom: 1px solid #8fa3b5;
  padding: 4px 6px;
  font-weight: bold;
  color: #1f3a55;
}
.boxbody { padding: 8px; }
.box.narrow { max-width: 520px; }
.welcome .boxbody { background: #ffffe0; }

/* ---------- posztok ---------- */
.post { border: 1px solid #8fa3b5; margin-bottom: 12px; }
.posthead { background: #eef2f6; border-bottom: 1px dotted #8fa3b5; padding: 4px 6px; }
.posthead .avatar-s { vertical-align: middle; }
.postbody { padding: 8px; }
.postbody::after { content: ""; display: block; clear: both; }
.postfoot { background: #f6f6f6; border-top: 1px dotted #8fa3b5; padding: 4px 6px; }
.postfoot.tools { background: #fff; }

.photo { max-width: 100%; max-height: 380px; border: 1px solid #333; display: block; margin-bottom: 6px; }
.photo.big { max-height: none; }
.desc { white-space: pre-line; margin: 6px 0 0; }

.date { color: #777; font-size: 11px; float: right; }

table.data { border-collapse: collapse; margin: 4px 0; }
table.data th { text-align: left; padding: 1px 8px 1px 0; color: #444; font-weight: normal; white-space: nowrap; }
table.data td { padding: 1px 0; }

/* ---------- gombok, űrlapok ---------- */
button {
  font-family: Verdana, Arial, sans-serif;
  font-size: 11px;
  background: #e8e8e8;
  border: 2px outset #ccc;
  padding: 2px 8px;
  cursor: pointer;
}
button:active { border-style: inset; }
.likebtn { background: #dfeaff; border-color: #9db5e0; font-weight: bold; color: #1f4e79; }
.likebtn.liked { background: #ffe0e0; border-color: #e0a0a0; color: #a00; }
.linkbtn { background: none; border: none; padding: 0; color: #0033cc; text-decoration: underline; font-size: 12px; }
form.inline { display: inline; }

input[type=text], input[type=password], select, textarea {
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
  border: 1px solid #7f9db9;
  padding: 2px;
}
.full { width: 100%; box-sizing: border-box; }
table.form th { text-align: right; vertical-align: top; padding: 4px 8px 4px 0; white-space: nowrap; }
table.form td { padding: 4px 0; }
.filter { margin: 0; }

/* ---------- kommentek ---------- */
.comment { display: flex; gap: 8px; border-bottom: 1px dotted #ccc; padding: 6px 0; }
.commentbody { flex: 1; min-width: 0; }
.commentform { margin-top: 10px; }
.pre { white-space: pre-line; overflow-wrap: anywhere; }
.quote { display: block; background: #f4f4f4; border-left: 3px solid #ccc; padding: 3px 6px; margin: 3px 0; }

/* ---------- profil / galéria / listák ---------- */
.avatar { border: 1px solid #333; background: #eee; }
.avatar-s { border: 1px solid #999; background: #eee; }
table.profile td { vertical-align: top; }
table.profile td.pic { padding-right: 12px; }
.bio { margin-top: 8px; border: 1px solid #ccc; }
.gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { width: 164px; text-align: center; font-size: 11px; }
.thumb img { border: 1px solid #333; }

table.list { width: 100%; border-collapse: collapse; }
table.list th { background: #dfe7ee; text-align: left; padding: 3px; border: 1px solid #b8c9d9; }
table.list td { padding: 3px; border: 1px solid #e3e3e3; }
table.list tr.odd td { background: #f3f6f9; }

.report { border: 1px dashed #c99; background: #fff6f6; padding: 6px; margin-bottom: 8px; }

/* ---------- oldalsáv ---------- */
#side ul.links { list-style: none; margin: 0 0 6px; padding: 0; }
#side ul.links li { padding: 2px 0; }
.toplist { margin: 0; padding-left: 20px; }
.toplist li { margin-bottom: 4px; }
.minicomment { margin-bottom: 6px; }

/* ---------- apróságok ---------- */
.flash { padding: 6px 8px; margin-bottom: 10px; border: 1px solid; font-weight: bold; }
.flash-ok { background: #e6ffe6; border-color: #6c6; color: #060; }
.flash-err { background: #ffe6e6; border-color: #c66; color: #900; }
.small { font-size: 11px; color: #555; }
.center { text-align: center; }
.right { float: right; }
.red { color: #c00; font-weight: bold; }
.badge { background: #c00; color: #fff; font-size: 9px; padding: 1px 4px; font-weight: bold; }
.pager { text-align: center; padding: 6px; border: 1px solid #ccc; background: #f6f6f6; margin-bottom: 10px; }
.pager a, .pager b { margin: 0 3px; }
.rules li { margin-bottom: 4px; }

#footer {
  border-top: 3px solid #f2c200;
  background: #1f4e79;
  color: #dce8f3;
  text-align: center;
  padding: 10px;
  font-size: 11px;
}
#footer a { color: #fff; }
#footer .small { color: #a9c0d6; }
.counter {
  font-family: "Courier New", monospace;
  background: #000;
  color: #0f0;
  padding: 1px 4px;
  letter-spacing: 2px;
}

/* ---------- telefon ---------- */
@media (max-width: 720px) {
  body { padding: 0; }
  #wrap { border: none; }
  #cols { flex-direction: column; padding: 8px; }
  #side { width: 100%; }
  #header .logo { font-size: 22px; }
  table.form th { text-align: left; display: block; padding-bottom: 0; }
  table.form td { display: block; }
  .date { float: none; display: block; }
}
