/* Tegyük a HTML és BODY elemeket teljes szélességre és magasságra */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100dvh;
    box-sizing: border-box;
}

/* A BODY-n már ne legyen háttér, csak a betűk és alapbeállítások */
body {
    font-family: 'Poppins', sans-serif;
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/* TELJES KÉPERNYŐS HÁTTÉR KONTAINER */
.background {
    position: fixed;       /* fix pozíció, mindig kitölti a képernyőt */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;      /* a körök ne lógjanak ki görgetéssel */
    z-index: -1;           /* a háttér mögött legyen minden */
    
    /* Itt van a színátmenet és (ha kell) háttérkép beállítása */
    /*background: linear-gradient(135deg, #1a1a2e, #16213e); regi backgorund*/
    /*background: linear-gradient(320deg,rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(0, 212, 255, 1) 100%);*/
    background: linear-gradient(140deg,rgba(251, 251, 249, 1) 0%, rgba(130, 147, 141, 1) 50%, rgba(130, 147, 141, 1) 100%);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

canvas#bubbles {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  /*background: linear-gradient(320deg,rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(0, 212, 255, 1) 100%);*/
  background: linear-gradient(140deg, rgba(251, 251, 249, 1) 0%, rgba(130, 147, 141, 1) 50%, rgba(130, 147, 141, 1) 100%);
}

/* FORM */
form {
    width: 100%;
    max-width: 400px;
    border: none;
    padding: 25px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
}

input {
    display: block;
    border: 2px solid #4ecca3;
    width: calc(100% - 20px);
    padding: 12px;
    margin: 10px auto;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.4);
    color: white;
    outline: none;
}

.gomb {
    display: block;
    width: 100%;
    max-width: 320px;
    background: #4ecca3;
    padding: 12px;
    color: #16213e;
    border-radius: 8px;
    border: none;
    margin: 20px auto 0;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

.gomb:hover {
    background: #2c9e81;
    transform: scale(1.05);
}

/* STÁTUSZ BOXOK, HIBÁK, SIKERÜZENETEK */
.status-box, .error, .success {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    margin: 10px auto;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.status-entry {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    color: #f5f5f5;
}

.status-entry strong {
    color: #4ecca3;
    font-weight: bold;
}

.status-entry p {
    margin: 5px 0 0;
    font-size: 14px;
}

.error {
    text-align: center;
    background: #ff4d4d;
    color: white;
    width: calc(100% - 40px);
    border-radius: 10px;
    margin: 20px auto;
}

.success {
    background: #28a745;
    color: white;
    width: calc(100% - 40px);
    border-radius: 10px;
    margin: 20px auto;
}

/* KÖZPONTI SZÖVEGEK, KÉPEK */
h1, h2, h3, h4, p {
    text-align: center;
    margin: 0 0 10px;
}

h1 {
    font-size: 26px;
    font-weight: bold;
}

h2 {
    font-size: 22px;
    font-weight: bold;
}

h3 {
    font-size: 18px;
}

h4 {
    font-size: 16px;
}

.logo {
  text-align: center;
  margin-bottom: 20px;
}

.logoimage {
  width: 300px; 
  height: auto;   
}

/* KISEBB KÉPERNYŐK ESETÉN */
@media (max-width: 600px) {
    h1 {
        font-size: 22px;
    }
    h2 {
        font-size: 18px;
    }
    h3 {
        font-size: 16px;
    }
    h4 {
        font-size: 14px;
    }
    .background .circle {
        width: 80px;
        height: 80px;
    }

    form, .status-box, .status-entry {
        width: 80vw;          /* a képernyő X%-a */
        max-width: 340px;     /* de legfeljebb 340px */
        height: auto;
    }
}
