/* styles.css */

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    flex-direction: column;
}

header, footer {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#header-image {
    height: 260px; /* Înălțimea dorită pentru imaginea de sus */
    background-image: url('header.png'); /* Poza pentru header */
}

#footer-image {
    height: 220px; /* Înălțimea dorită pentru imaginea de jos */
    background-image: url('footer.png'); /* Poza pentru footer */
    margin-top: auto; /* Asigură-te că imaginea stă jos */
}

#content {
    flex-grow: 1;
    padding: 20px;
    text-align: center;
}

h1 {
    color: #333;
}

.screen {
    max-width: 600px;
    margin: auto;
}

#teams-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px 20px;
    margin-bottom: 30px;
}
#niceToKnow{
    padding: 5%;
}


#mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    backdrop-filter: blur(5px);
}
#mobile-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    max-width: 80%;
}
#mobile-overlay-content h2 {
    color: #1e3d75;
}
#mobile-overlay-content p {
    color: #ff6c00;
}
.team-card {
    width: calc(34% - 20px);
    text-align: center;
    cursor: pointer;
}

.team-card img {
    width: 100%;
    height: auto;
}

.team-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

#register-form {
    display: flex;
    flex-direction: column;
}

#register-form label {
    margin-top: 10px;
}

#register-form input {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    margin-top: 20px;
    padding: 10px;
    /* background-color: #4CAF50; */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #1e3d75;
    font-weight: bold;
}

button:hover {
    background-color: #45a049;
}

#message {
    text-align: center;
    color: red;
    font-weight: bold;
}

#form-message {
    margin-top: 20px;
    color: red;
    font-weight: bold;
}
#team-screen {
    text-align: center;
}
#form-screen h1,
#team-screen h1 {
    font-family: sans-serif;
    text-transform: uppercase;
    padding: 0 10px;
    font-size: 22px;
    color: #ff6c00;
}

#form-screen h1 {
    color: #1e3d75;
}

#team-screen h2 {
    font-family: sans-serif;
    text-transform: uppercase;
    padding: 0 10px;
    font-size: 14px;
    color: #203d75;
}

button:hover {
    background-color: transparent;
    color: #000;
}

.centeredText {
    display: block;
    text-align: center;
    font-size: 18px;
    padding: 0 20px;
    font-weight: bold;
    font-family: sans-serif;
}



#teams-container .team-card:nth-last-child(2),
#teams-container .team-card:nth-last-child(1) {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}
#teams-container .team-card:nth-last-child(2) {
    margin-left: 15vw;
}
#teams-container .team-card:nth-last-child(1) {
    margin-right: 15vw;
}
.niceToKnow{
    padding: 5%;
}
.deco {
    text-decoration: none;
    color: #f15b27;
    border: 1px solid #f15b27;
    font-size: 14px;
    padding: 9px;
    display: block;
}