body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Alata', sans-serif;
    overflow-x: hidden;
    background-image: url(/imghome/tlo.png);
    background-size: contain;
}

header {
    background-color: #8cbadc; 
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    height: 10vh;
    box-shadow: 0 8px 6px -6px #5788ab;
    z-index: 10;
    font-size: 1.2rem;
}

#logo-container {
    display: flex;
    align-items: center;
}

#logo {
    width: 50px;
    margin: 0 20px;
}

nav {
    flex-grow: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    justify-content: flex-start; 
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 10px 20px; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

nav ul li a:hover, nav ul li a:focus {
    background-color: rgba(255, 255, 255, 0.2); 
    border-radius: 50px; 
}

#contact-socials {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#contact-info p, 
#contact-info a {
    align-items: center;
    margin: 0; 
    border-radius: 50px;
}

#mail {
    background-color: #ffc759;
    border: 1px solid #ffc759;
    padding: 10px 30px;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

#mail:hover {
    background-color: white;
    border: 1px solid white;
    color: #ffc759;
    text-shadow: none;
}

#contact-info p {
    margin: 0 15px;
}

#contact-info i {
    margin-right: 8px; 
}

#contact-info span {
    display: inline;
}

#contact-info a {
    text-decoration: none; 
    color: inherit;
    padding: 0; 
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    position: relative;
    display: inline-block;
}

/* Styl dla rozwijanego menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 15px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-shadow: none;
    color: #333;
    font-weight: 300;
    font-size: 0.8rem
}

.dropdown-content a:hover {background-color: #f1f1f1}

.dropdown:hover .dropdown-content {
    display: block;
}

#contact-socials {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#contact-info p, 
#contact-info a {
    align-items: center;
    margin: 0; 
    border-radius: 50px;
}

#mail {
    background-color: #ffc759;
    border: 1px solid #ffc759;
    padding: 10px 30px;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

#mail:hover {
    background-color: white;
    border: 1px solid white;
    color: #ffc759;
    text-shadow: none;
}

#contact-info p {
    margin: 0 15px;
}

#contact-info i {
    margin-right: 8px; 
}

#contact-info span {
    display: inline;
}

#contact-info a {
    text-decoration: none; 
    color: inherit;
    padding: 0; 
}

#contact-info a {
    text-decoration: none; 
    color: inherit;
    padding: 0; 
}

#contact {
    padding: 40px 0;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#contact .container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    color: #333
}

#contact h2 {
    margin-bottom: 10px;
    font-size: 2.5rem;
    color: #333
}

#contact h4 {
    margin-bottom: 20px;
    font-size: 1.75rem;
    color: #333;
    margin-top: 0;
}

.contact-info p, .social-links a {
    margin: 10px 0;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-family: 'Alata', sans-serif;
}

.contact-form input[type="text"]:last-child {
    flex-basis: 100%;
}

.contact-form label {
    align-self: start;
    margin-bottom: 5px;
}

.dropdown {
  position: relative;
}

.dropdown-selection {
    padding: 8px;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    background-color: #fff;
    z-index: 10;
    width: 100%;
}

.dropdown-menu div {
    padding: 8px;
    cursor: pointer;
}

.dropdown-menu div:hover {
  background-color: rgba(87, 136, 171, 0.1);
}

#subjects-dropdown {
    font-size: 1.2rem;
    background-color: white;
    width: 400px;
    margin: auto;
    border-radius: 50px;
    color: #333
}

.arrow {
    float: right;
}

.contact-form button {
    background-color: #ffc759; 
    color: white;
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 25px;
    transition: background-color 0.3s;
    width: 100px;
    margin: auto;
    font-family: 'Alata', sans-serif;
}

.contact-form button:hover {
    color: #ffc759;
    background-color: white;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

#subjects, #participation-type, #school-type, #class {
    background-color: white;
    border-radius: 50px 0 0 50px;
    font-family: 'Alata', sans-serif;
    padding: 10px;
    border: none;
}

.form-row input {
    flex-basis: calc(50% - 10px); 
}

.consent-label {
    display: block;
    margin-bottom: 15px; 
    margin: auto;
}

.gwiazdki p {
    font-style: italic;
    color: #333;
    font-size: 0.9rem
}

.consent-label input[type="checkbox"] {
  margin-top: 10px; 
  margin-left: 0;
}

input:focus, button:focus, a:focus, select:focus, textarea:focus {
    outline: none;
}

/*podforlumarzem
formularzmapkpa*/

.container {
    text-align: center;
    margin: auto;
    color: #333;
    text-shadow: none;
}

.social-media-links i {
    font-size: 2rem;
    margin-left: 10px;
    margin-right: 10px
}

.contact-details {
    font-size: 1.2rem;

    margin: 20px auto;
}


.map-location h3 {
    font-size: 1.5rem
}

.map-location p {
    padding-bottom: 20px;
}

iframe {
    margin-top: 20px;
    margin-bottom: 40px;
    border-radius: 10px;
    width: 90%;
}

footer {
    text-align: center;
    padding: 20px;
    color: white; 
}

footer a {
    color: white
}

/*wyslanie
maila*/

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cursor-wait {
  cursor: progress;
}

.loading-spinner {
  border: 4px solid rgba(0,0,0,.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #09f;
  animation: spin 1s linear infinite;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
    * {
        margin: 0;
        padding: 0;
    }
    
    #contact h2 {
        font-size: 2rem
    }
    
    #contact h4 {
        font-size: 1.2rem;
        margin-bottom: 10px
    }
    
    #contact p {
        margin-bottom: 20px;
    }
    
    #contact-info h2 {
        width: 50%;
        margin: auto auto 20px;
    }
    
    iframe {
        width: 80%;
    }
    
    .contact-form {
        gap: 0px;
        width: 95%;
        margin: auto
    }
}
    
/* Style dla formularza */
.contact-form {
    gap: 0px;
    width: 75%;
    margin: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    color: black
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: 'Alata', sans-serif;
    color: black
}

.form-group textarea {
    height: 150px;
    font-family: 'Alata', sans-serif;
    resize: none;
    color: black
}

.form-group label {
    margin-bottom: 5px;
    color: black;
}


@media (max-width: 930px) {
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        height: auto
    }

    #logo-container {
        margin-bottom: 10px; 
    }

    #contact-socials {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }

    nav {
        order: 2; 
        margin: auto
    }

    nav ul {
        display: flex;
        flex-wrap: wrap; 
        justify-content: center;
        padding: 0;
        margin: 0;
        list-style-type: none;
    }

    nav ul li {
        margin: 5px; 
        font-size: 1.25rem;
    }

    #contact-info {
        display: flex;
        flex-wrap: wrap; 
        justify-content: center;
        gap: 10px; 
        font-size: 0.8rem;
        margin: auto;
    }
}

@media (min-width: 930px) and (max-width: 1600px) {  
  header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: auto;
    }

    #logo-container {
        flex-basis: auto; 
        justify-content: flex-start; 
        margin-top: 10px;
    }

    nav {
        width: 100%;
        justify-content: center;
        padding: 0;
        margin-top: 20px;
    }

    nav ul {
        justify-content: center;
    }

    nav ul li {
        padding: 0 10px;
        font-size: 1.3rem;
        text-align: 
    }

    #contact-socials {
        width: 100%; 
        justify-content: space-evenly; 
        flex-direction: row;
        margin-top: 20px; 
    }

    #contact-info {
        justify-content: center;
    }

    #contact-info p, 
    #contact-info a {
        display: block; 
    }
}

@media (max-width: 768px) {
    #contact .container, .social-media-links, .contact-details, .map-location, .contact-form {
        padding: 00px;
        width: 90%;
        margin: auto;
    }

    /* Formularz kontaktowy */
    .contact-form {
        width: 100%; 
    }

    .dropdown-selection, .contact-form button {
        width: 200px; 
    }

    .form-row {
        flex-direction: column;
    }

    .social-media-links i, .contact-details p, .contact-details a {
        margin: 10px 5px; /* Mniejsze marginesy */
        font-size: 1.5rem; /* Większe ikony */
    }

    iframe, footer {
        width: 100%;
    }
    
    #contact-info {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.1rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        width: 90%
    }
}

