/* ===============================
   BASE & TYPOGRAPHY STYLES
   =============================== */
body {
    margin-left: 40px;
    margin-right: 40px;
    font-family: 'Segoe UI', sans-serif;
    background-color: #040404;
    color: #e4e4e4;
    display: flex;
    flex-direction: column;
}

a {
  color: #e0b621;
  font-size: 16px;
}

h1 {
  font-size: 70px;
  color: #e4e4e4;
}

h2 {
  font-size: 55px;
  color: #e4e4e4;
}

h3 {
  font-size: 35px;
  color: #e4e4e4;
  line-height: 1px;
}

h4 {
  font-size: 20px;
  color: #e4e4e4;
}

p {
  font-size: 16px;
  color: #e4e4e4;
}



/*---------------------------
   HEADER, NAVIGATION & MENU
-----------------------------*/

header {
    display: flex;
    align-items: center;
    padding: 2px 20px;
    background-color: transparent;
}

#headerPHP {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#title {
  width: 50%;
}

#nav {
  display: flex;
  justify-content: flex-end;
  width: 50%;
  text-align: right;
}

.menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding-top: 10px;
  gap: 0;
}

.menu li {
  position: relative;
}

.menu > li > a {
  color: #e4e4e4;
  text-decoration: none;
  font-weight: 500;
  padding: 10px;
  display: block;
  width: 100px;
  transition: color 0.3s;
}

.menu > li > a:hover {
  color: #40bcc0;
}

nav a.active {
  color: #40bcc0;
  font-weight: bold;
}



/* ===============================
   MAIN LAYOUT & BACKGROUND
   =============================== */

#esilehtbody {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#taust {
  width: 100%;
  object-fit: cover;
  display: block;
}

#AvalehePealkiri {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}



/* -------------------------------
   FORM ELEMENTS & INTERACTIONS
--------------------------------- */

label {
  font-size: 16px;
}

input[type=text],
input[type=number],
input[type=submit],
input[type=button],
input[type=email],
input[type=tel],
input[type=password],
input[type=date],
input[type=time],
select {
  background-color: #e4e4e4;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 16px;
  color: black;
  box-shadow: inset 0 0 0 1px #3c3c3c;
  transition: all 0.3s ease;
  outline: none;
  margin-top: 5px;
  margin-right: 10px;
}

input[type=text],
input[type=number],
input[type=email],
input[type=tel],
input[type=password],
input[type=date],
input[type=time] {
  width: 200px;
}

select {
  width: 230px;
}

/* Hover effect */
input[type=text]:hover,
input[type=number]:hover,
input[type=submit]:hover,
input[type=button]:hover,
input[type=email]:hover,
input[type=tel]:hover,
input[type=password]:hover,
input[type=date]:hover,
input[type=time]:hover,
select:hover {
  box-shadow: inset 0 0 0 1px #40bcc0;
  background-color: #e4e4e4;
}

/* Focus effect */
input[type=text]:focus,
input[type=number]:focus,
input[type=submit]:focus,
input[type=button]:focus,
input[type=email]:focus,
input[type=tel]:focus,
input[type=password]:focus,
input[type=date]:focus,
input[type=time]:focus,
select:focus {
  box-shadow: 0 0 8px 2px rgba(64, 188, 192, 0.6);
  border: none;
  outline: none;
  background-color: #e4e4e4;
  color: black;
}

/* Radio accent */
input[type=radio] {
  accent-color: #40bcc0;
}



/* ----------------------
   BUTTON STYLES
------------------------ */

input[type=submit],
input[type=button] {
  cursor: pointer;
  font-weight: bold;
  background-color: #000000;  /* black */
  color: #ffffff;             /* white */
  box-shadow: none;
  border-radius: 10px;
  padding: 14px 30px;         /* bigger padding for size */
  font-size: 18px;            /* bigger font */
  width: auto;                /* allow width to adjust */
  min-width: 140px;           /* minimum width */
  margin: 5px;                /* spacing between buttons */
  display: inline-block;      /* inline block for side-by-side */
}

/* Hover effect */
input[type=submit]:hover,
input[type=button]:hover {
  background-color: #40bcc0;
  color: #040404;
}

/* Container or form holding buttons: add flexbox to arrange side-by-side */
form {
  display: flex;
  gap: 15px;                  /* space between buttons */
  justify-content: center;    /* center horizontally */
  flex-wrap: wrap;            /* wrap if screen is narrow */
  padding: 10px;
  border-radius: 10px;
  margin-top: 10px;
  margin-right: 10px;
}



/* ----------------------
   FLEX & CONTAINER LAYOUTS
------------------------ */

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.flexcontainer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 5px;
}



/* ----------------------
   FORM SIZING & TABLES
------------------------ */

form {
  padding: 10px;
  border-radius: 10px;
  margin-top: 10px;
  margin-right: 10px;
}

#dinner {
  width: 200px;
}

#bronlist,
#menuulist {
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
}

#bronlist th,
#bronlist td,
#menuulist th,
#menuulist td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #666;
}

#bronlist th,
#menuulist th {
  background-color: #1d1d1d;
  color: #40bcc0;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 1px;
}

#bronlist td,
#menuulist td {
  color: #f2f2f2;
}

#bronlist tr:hover,
#menuulist tr:hover {
  background-color: #292929;
}


/* ----------------------
   FORM TABLES & BUTTON WIDTHS
------------------------ */

#forms {
  flex: 1;
  min-width: 400px;
  max-width: 500px;
  align-self: flex-start;
}

#bronlist {
  overflow: hidden;
}

#loginform th,
#loginform td,
#regform th,
#regform td {
  padding: 0 10px;
  text-align: left;
}

#broneeri,
#lisa,
#lisamine {
  width: 230px;
}



/* ----------------------
   MISCELLANEOUS
------------------------ */

#menuutooded {
  text-align: left;
}

#lisamenuu {
  /* no styles defined */
}

footer {
  text-align: center;
  width: 100%;
}
