html, body {
    margin: 0;
    padding: 0;
    height: 100vh; 
    width: 100vw;  
    font-family: 'Arial'; /*do zmiany*/
    overflow-x: hidden;

}
body {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100vw; 
    height: 100vh; 
    background-image: url("romantyzm_obraz1.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    
}
#main_background {
  
    position: relative;
    width: 80%;
    background-color: white;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh; /* Zapewnia, że zawsze ma wysokość ekranu */
    height: auto;
}
#div_for_main_title{
  /*  order: 1;
    background-color: #B87333;
    width: 100%;
    height: 70px;;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0; 
    z-index: 100; */
    background-color: #b07b49;
    width: 100%;
    height: 50px; 
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; 
}
#main_title{
    position:absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'playfair display';
    font-size:large
    
    
}
#nav{
    order: 1;
    width: 100%;
    background-color: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    padding: 10px 0;
    font-family: 'playfair display';
  
}
#div_a{
    display: flex;
    gap: 20px; 
}
#div_a a {
    text-decoration: none;
    color: white;
    font-size: 18px; 
}
a:hover{
    background-color: #b07b49;
}
#motto {
    order: 2;
    width: 80%; /* Kontener na cytat - szerokość */
    margin: 0 auto; /* Wyśrodkowanie w poziomie */
    text-align: center; /* Wyśrodkowanie samego cytatu */
    padding: 20px;
    display: flex;
    flex-direction: column;
 
    
}

#motto p {
    
    font-size: 24px;
    font-style: italic;
    color: #b07b49; 
    margin-bottom: 10px;
    order: 1;
    
}

#motto footer {
    text-align: right; 
    font-size: 18px;
    color: #555;
    order: 2;
}

#time{
    display: flex;
    order: 2;
    justify-content: center;
}
#time img{
    height:75%;
    width: 75%;
}
#autor{
    position: absolute;
    bottom: 0;
    right: 0;
}
#container{
    display: flex;
    flex-wrap: wrap;
    order:3;
    justify-content: center;
    margin-top: 10px;
    gap: 50px;
    max-width: 1000px;
    
}
.idee{
    height: 200px;
    width: 150px;
    border: solid black 3px;
    border-radius: 5%;
    background-color: #f5f5f5;

    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease-in-out;
}
.text_def {
    text-decoration: underline;
}
#mickiewicz{
    display: flex; 
    order:3;
    align-items: center; 
    width: 85%; 
    margin: 10px auto; 
    border: solid black 1px;
    gap: 20px; 
    padding: 15px; 
}
#mickiewicz img {
    width: 150px; 
    height: 100%; 
    border-radius: 10px; 
}
#text_mickiewicz {
    flex: 1; 
    font-size: 16px; 
    text-align: left; 
}

#slowacki{
    display: flex; 
    order:4;
    align-items: center; 
    width: 85%; 
    margin: 10px auto; 
    border: solid black 1px;
    gap: 20px; 
    padding: 15px; 
}
#slowacki img {
    width: 150px; 
    height: 95%;
    border-radius: 10px; 
}
#text_slowacki {
    flex: 1; 
    font-size: 16px; 
    text-align: left; 
}

#krasinski{
    display: flex; 
    order:5;
    align-items: center; 
    width: 85%; 
    margin: 10px auto; 
    border: solid black 1px;
    gap: 20px; 
    padding: 15px; 
}
#krasinski img {
    width: 150px; 
    height: 90%;
    border-radius: 10px; 
}
#text_norwid {
    flex: 1; 
    font-size: 16px; 
    text-align: left; 
}
#norwid{
    display: flex; 
    order:6;
    align-items: center; 
    width: 85%; 
    margin: 10px auto; 
    border: solid black 1px;
    gap: 20px; 
    padding: 15px; 
    margin-bottom: 30px;;
}
#norwid img {
    width: 150px; 
    height: 90%;
    border-radius: 10px; 
}
#text_norwid {
    flex: 1; 
    font-size: 16px; 
    text-align: left; 
}
#div_table{
    display: flex;
    order: 3;
}
table {
    
    border: solid black 1px;
    width: 80%; 
    margin: 20px auto; 
    border-collapse: collapse; 
    text-align: center;
}
th, td {
    border: 1px solid black; 
    padding: 10px; 
}
#buttons{
    display: flex;
    order: 2;
    padding: 50px 50px;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}
.button{
    background-color: #b07b49;
    height: 65px;
    border: solid black 3px;
    transition: transform 0.3s ease-in-out;
    flex: 1;
}
.button:hover{
    transform: scale(1.1);
    /*height: 71.5px;
    width: 176px;*/
}
#jakis_div{
    display: flex;
    order: 3;
    margin-top: 40px;
    width:50%;
    height:50%
}
@media (min-width: 1024px) {
    #container {
        justify-content: space-evenly; /* Przy większym ekranie odstępy rozkładają się równomiernie */
    }
}
@media (min-width: 2000px) {
    #container {
        justify-content: space-evenly; /* Przy większym ekranie odstępy rozkładają się równomiernie */
    }
}