html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "DM Serif Text", serif;
    background-color: rgb(24, 24, 31);
    color: #fff;
    display: flex;
    flex-direction: column;
}
label {
    display: block; /* Ustawia etykiety jako elementy blokowe */
    margin-bottom: 8px; /* Dodaje odstęp poniżej etykiety */
    font-size: 16px; /* Ustawia rozmiar czcionki etykiety */
    color: #fff; /* Ustawia kolor czcionki etykiety */
    padding: 5px;
}

#nav_bck_top{
    width: 100%;
    background-color: #0a0b0c;
    height: 100px;
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

#nav_top {
    display: flex; 
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#nav_top li {
    padding-left: 50px;
    padding-right: 50px;
}
#spacial_link{
    text-decoration: none;
    color: white;
    font-size: 22px;
    transition: color 0.5s;
    cursor: pointer;
}
#spacial_link:hover{
    color: #ff6700;
}

#nav_top li a{
    text-decoration: none;
    color: white;
    font-size: 22px;
    transition: color 0.5s;
}
#nav_top li a:hover{
    color: #ff6700;
}
#bck1 {
    margin-top: 150px;
}
h1 {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
}
#bridge_bck {
    background-image: url(images/tower-bridge-5727975.jpg);
    width: 100%;
    height: 700px;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center top;
    background-size: cover;
    position: relative;
    top: 0;
}

#bridge_bck_top_layer {
    background-color: rgba(0, 0, 0, 0.596);
    width: 100%;
    height: 100%;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
}
#bridge_bck_top_layer h1{
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#bridge_bck_top_layer h1, #bridge_bck_top_layer p {
    margin: 0; 
    padding: 10px; 
    text-align: center; 
    word-wrap: break-word;
    overflow-wrap: break-word;
}
#main_cont{
    width: calc(100% - 100px);
    text-align: center;
    padding: 50px;
}
h2{
    letter-spacing: 3px;
    color: #ff6700;
    font-size: 35px;
}
#main_cont p {
    max-width: 80%;
    margin: 0 auto; /* Dodaj to */
    text-align: center; /* Dodaj to, aby wyśrodkować tekst wewnątrz p */
}
#top_arrow{
	position: fixed;
	bottom: 50px;
	right: 20px;
	background-color: #ff6700;
	width: 75px;
	height: 75px;
	border-radius: 50%;
	opacity: 0;
	transition: opacity 1s ease;
	cursor: pointer;
	scale: 1;
    background-image: url(images/top_arrow.png);
    background-position: center;
    background-size: 70%;
    background-repeat: no-repeat;
    transition: scale 0.5s;
    z-index: 2;
}
#top_arrow.show:hover{
    scale: 0.8;
}
#top_arrow.show{
	opacity: 1;
	scale: 1;
	animation: showArow 1s ease backwards;
	animation-fill-mode: backwards;
}
@keyframes showArow {
	0%{
		transform: translateX(100px);
	}
	100%{
		transform: translateX(0px);
	}
}
#foot_cont {
    background-color: #0a0b0c;
    width: calc(100% - 40px);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    position: relative;
    bottom: 0;
}
h3{
    letter-spacing: 2px;
}
#left_foot {
    width: 400px;
}

#right_foot {
    width: calc(100% - 420px); /* Poprawka szerokości, aby uwzględnić padding */
    display: flex; /* Dodaj to */
    justify-content: flex-end; /* Dodaj to, aby ustawić obrazki maksymalnie po prawej stronie */
    align-items: center; /* Dodaj to, aby wyśrodkować obrazki pionowo */
    gap: 25px; /* Dodaj to, aby dodać odstęp między obrazkami */
}

#right_foot img {
    max-height: 100px;
    padding: 25px;
    transition: scale 0.5s;
    user-select: none;
}
#right_foot img:hover{
    scale: 1.1;
}
#left_foot p{
    text-align: justify;
    color: rgb(60, 66, 73);
    word-wrap: break-word;
    overflow-wrap: break-word;
}
#left_foot h3{
    color: rgb(60, 66, 73);
}
#bottom_foot {
    width: calc(100% - 40px);
    padding: 20px;
    text-align: center;
    background-color: #0a0b0c;
    position: relative;
    bottom: 0px;
}
#registration_cont{
    text-align: center;
}
#registration_cont label{
    font-size: 20px;
}
.input_form_1{
    width: 300px;
    height: 50px;
    text-align: center;
    border-radius: 30px;
    background-color: transparent;
    border: 4px solid rgb(255, 255, 255);
    color:rgb(255, 255, 255);
    font-family: "DM Serif Text", serif;
    font-size: 25px;
    padding-top: 5px; 
    padding-bottom: 5px;
    margin-bottom: 10px;
}
.input_form_1:focus {
    outline: none; /* Usuwa domyślne obramowanie */
    box-shadow: none; /* Usuwa cień */
}
#form_cont_1{
    justify-content: center;
    align-items: center;
    width: calc(90% - 50px);
    margin-top: 100px;
    margin-bottom: 100px;
    background-image: url(images/request_bck.svg);
    background-size: cover;
    border-radius: 10px;
    margin-left: auto;
    margin-right: auto;
    padding: 50px;
    transition: border;
}
#input_level option{
    background-color: rgb(24, 24, 31);
}
#submit_form{
    transition: border 0.5s ease;
    transition: color 0.5s ease;
}
#submit_form:hover{
    border-color: #ff6700;
    color: #ff6700;
}
/* Stylizacja placeholdera */
.input_form_1::placeholder {
    color: rgba(255, 255, 255, 0.5); /* Zmiana koloru placeholdera */
    font-style: italic; /* Zmiana stylu czcionki placeholdera */
}

/* Stylizacja pól formularza, które są nieprawidłowe */
.input_form_1:invalid {
    border-color: #ff6700; /* Zmiana koloru obramowania na czerwony */
    background-color: rgba(235, 87, 87, 0.1); /* Zmiana koloru tła na lekko czerwony */
}

/* Stylizacja pól formularza, które są nieprawidłowe i mają focus */
.input_form_1:focus:invalid {
    outline: none; /* Usuwa domyślne obramowanie */
    box-shadow: 0 0 10px rgba(235, 87, 87, 0.5); /* Dodanie cienia */
}

/* Stylizacja komunikatów walidacji */
input:invalid::after {
    content: attr(title); /* Wyświetlanie atrybutu title jako komunikatu */
    color: rgb(235, 87, 87); /* Zmiana koloru tekstu komunikatu */
    font-size: 12px; /* Zmiana rozmiaru czcionki komunikatu */
    position: absolute; /* Ustawienie pozycji absolutnej */
    margin-top: 5px; /* Dodanie marginesu górnego */
}
#form_cont_1 h2{
    color: #ff6700;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
#link_more{
    text-decoration: none;
    color: #5f45f7;
    font-size: 15px;
    transition: color 0.5s;
    padding-top: 20px;
}
#link_more:visited{
    color: #5f45f7;
}
#contact_cont{
    padding: 40px;

}
#special_contact_link img{
    max-width: 150px;
    margin-top: 20px;
}
#special_contact_link {
    display: flex;
    align-items: center; /* Wyśrodkowanie obrazka i tekstu w pionie */
    gap: 20px; /* Odstęp między obrazkiem a tekstem */
    text-decoration: none; /* Usunięcie podkreślenia tekstu */
    color: inherit; /* Dziedziczenie koloru tekstu */
    font-size: 25px;
}
#left_foot img{
    max-width: 50px;
}
#login_cont{
    width: 500px;
    height: 600px;
    background-color: #0a0b0cd8;
    border-radius: 35px;
    text-align: center;
    margin: 50px;
}
#login_cont h2{
    color: #fff;
    font-size: 25px;
    margin-top: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.login_input{
    width: 300px;
    height: 40px;
    text-align: center;
    border-radius: 25px;
    background-color: transparent;
    border: 3px solid rgb(255, 255, 255);
    color:rgb(255, 255, 255);
    font-family: "DM Serif Text", serif;
    font-size: 20px;
    margin: 20px;
}
#h1_s{
    font-size: 40px;
    word-wrap: break-word;
        overflow-wrap: break-word;
}
.login_input:focus {
    outline: none; /* Usuwa domyślne obramowanie */
    box-shadow: none; /* Usuwa cień */
}
#submit_login{
    color: #ffffff;
    border-color: #ffffff;
    width: 200px;
}
#submit_login:hover{
    cursor: pointer;
    color: #ff6700;
    border-color: #ff6700;
}
#filler{
    width: 100%;
    height: 0px;
    background-color: #0a0b0c;
}
@media screen and (min-width: 2560px){
    #filler{
        height: 300px;
    }
}
#bridge_bck_top_layer a{
    color: #fff;
}
#table_cont{
    text-align: center;
}
#table_cont table{
    width: 90%;
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    margin-bottom: 40px;
}
#table_cont th, #table_cont td{
    border: 1px solid #ff6700;
    padding: 10px;
}
#table_cont a{
    color: red;
}
#bridge_bck_top_layer h2{
    color:aquamarine;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.title_h1{
    background-color: transparent;
    color: #fff;
    margin: 10px;
    border: none;
    text-align: center;
    padding: 10px;
    transition: border 0.5s ease;
    letter-spacing: 3px;
    font-size: 35px;
    font-family: "DM Serif Text", serif;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.title_h1:focus {
    outline: none; /* Usuwa domyślne obramowanie */
    box-shadow: none; /* Usuwa cień */
}
.title_s{
    width: 90%;
    background-color: transparent;
    color: #fff;
    margin: 10px;
    font-family: "DM Serif Text", serif;
    border: none;
    text-align: center;
    border-radius: 8px;;
    font-size: 16px; 
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
}
.title_s:focus {
    outline: none; /* Usuwa domyślne obramowanie */
    box-shadow: none; /* Usuwa cień */
}
.title_h2{
    width: 100%;
    background-color: transparent;
    color:#ff6700;
    margin: 10px;
    font-family: "DM Serif Text", serif;
    border: none;
    text-align: center;
    border-radius: 8px;;
    font-size: 35px;
    margin: 20px;
    margin-left: auto;
    margin-right: auto;
}
.title_h2:focus {
    outline: none; /* Usuwa domyślne obramowanie */
    box-shadow: none; /* Usuwa cień */
}
#main_cont p{
    word-wrap: break-word;
    overflow-wrap: break-word;
}
#main_cont h2{
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.admin_panel_link{
    color: #fff;
    text-decoration: none;
    border:3px solid #fff;
    padding: 10px;
    border-radius: 8px;
    margin: 10px;
    transition: color 0.5s ease, border 0.5s ease;
}
.admin_panel_link:hover{
    color: #ff6700;
    border-color: #ff6700;
}
#submit_edit{
    width: 200px;
    height: 40px;
    text-align: center;
    border-radius: 30px;
    background-color: transparent;
    border: 3px solid rgb(255, 255, 255);
    color: #fff;
    font-family: "DM Serif Text", serif;
    font-size: 20px;
    transition: color 0.5s ease, border 0.5s ease; 
}
#submit_edit:hover{
    cursor: pointer;
    color: #ff6700;
    border-color: #ff6700;
}
@media screen and (max-width: 768px) {
    h1 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    p{
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    #nav_top{
        text-align: center;
        flex-direction: column;
    }
    #nav_top li{
        padding: 10px;
        padding: 5px;
    }
    #nav_bck_top{
        width: calc(100% - 20px);
        height: 150px;
        padding: 10px;
    }
    #nav_top li a{
        font-size: 20px;
        padding: 5px;
    }
    #right_foot img{
        max-width: 50px;
        padding: 10px;
    }
    #right_foot {
        width: 50px; /* Poprawka szerokości, aby uwzględnić padding */
        display: flex;
        flex-direction: column; /* Ustawia elementy w kolumnie */
        justify-content: flex-start; /* Ustawia elementy na górze */
        align-items: center; /* Wyśrodkowuje elementy w poziomie */
        gap: 25px; /* Dodaje odstęp między elementami */
    }
    #left_foot {
        text-align: left;
    }
    .input_form_1{
        width: 200px;
        height: 40px;
        font-size: 15px;
    }
    #top_arrow{
        bottom: 20px;
        right: 10px;
        width: 50px;
        height: 50px;
    }
    #h1_s{
        font-size: 30px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    h1 {
        font-size: 30px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    #login_cont{
        width: 90%;
    }
    .login_input{
        width: 90%;
    }
}
@media screen and (max-width: 420px){
    #form_cont_1{
        width: 65%;
    }
        body h1{
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        #h1_s {
            font-size: 30px;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
    
        h1 {
            font-size: 30px;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
}