*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #fff;
}
/* Background Images - Practice*/
/*CSS Styles*/
h2 {
    display: flex;
    color: gray;
    font-size: 15px;
    width: 100%;
    justify-content: center; /* Горизонтальне вирівнювання (по центру) */
    align-items: center;
    height: 20%;
    padding-top: 15px;
    padding-bottom: 15px;
    text-transform: uppercase;
    font-weight: bold;
}
/* General */
body{
    width: 633px;
    height: 911px;
    background-color: black ;
    margin: auto;
    font-family: 'Montserrat', sans-serif;
}
/* Header */
header{
    width: 100%;
    height: 23%;
    background-image: url("../img/bg-01.jpg");
    background-size: cover;
    background-position: center;
    margin: 0 auto;
}
#topbar {
    width: 100%;
    height: 14%;
    margin: auto;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}
header .container {
    width: 70%;
    height: 100%;
    margin: auto;
}
header li:first-child {
    background-color: red;
    display: inline-block;
}
header li{
    font-size: 10px;
    display: inline-block;
    width: 40px;
    height: 30px;
    text-align: center;
    line-height: 30px; /* Задаємо висоту рядка рівною висоті блоку */
    text-decoration: none;
}
header li a{
    font-size: 8px;
    text-transform: uppercase;
    color: white;
    margin-left: 0;
    text-decoration: none;
}

h1 {
    font-family: 'Metal Mania', sans-serif;
    color: white;
    text-transform: uppercase;
    font-size: 2rem;
    width: 100%;
    text-align: center;
    height: 50%;
    display: flex;
    justify-content: center; /* Горизонтальне вирівнювання (по центру) */
    align-items: center;   /* Вертикальне вирівнювання (прижати до низу) */
}
header a:not(nav ul li a)  {
    font-size: 10px;
    width: 150px;
    height: 30px;
    margin: auto;
    text-decoration: none;
    display: flex;
    justify-content: center; /* Горизонтальне вирівнювання (по центру) */
    align-items: center;
    text-transform: uppercase;
}
.button {
    color: white;
    background-color: red;
}

/* Tour */
#tour{
    color: white;
    background-image: url("../img/bg.png");
    background-color: #373737;
    width: 633px;
    height: 15%;
    margin: auto;
}
#tour .container{
    width: 70%;
    height: 100%;
    margin: auto;
}
.tour-card {
    font-size: 12px;
    display: inline-block;
    width: 107px;
    height: 107px;
    vertical-align: top;
    padding-top: 15px;
}
.tour-card h3{
    font-size: 8px;
}
.madrid{
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/tour/madrid.jpg");
    background-size: cover;
    background-position: center;
}
.turin{
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/tour/turin.jpg");
    background-size: cover;
    background-position: center;
}
.hamburg{
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/tour/hamburg.jpg");
    background-size: cover;
    background-position: center;
}
.krakow{
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/tour/krakow.jpg");
    background-size: cover;
    background-position: center;
}

.tour-place, .tour-date {
    font-size: 0.5rem;
    margin-top: 3px;
    margin-bottom: 3px;
}
#tour a{
    font-size: 0.6rem;
    display: block;
    width: 70px;
    height: 20px;
    margin: auto;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 20px;
}
/* Gallery */
#gallery{
    width: 100%;
    height: 40%;
    background-image: url("../img/bg.png");
    background-color: #373737;
    margin: 0 auto;
}
#gallery .container{
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    justify-content: center; /* Горизонтальне вирівнювання (по центру) */
    align-items: center;   /* Вертикальне вирівнювання (прижати до низу) */
}
.photo{
    width: 143px;
    height: 143px;
    margin: 4px;
}
.photo img {
    max-width: 100%; /* Зображення не перевищує ширину блоку */
    height: auto;    /* Висота змінюється пропорційно */
}


/* Subscribe */
#subscribe{
    font-size: 10px;
    width: 100%;
    height: 15%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/bg-02.jpg");
    background-size: cover;
    background-position: center;
    text-align: center;
    padding-top: 20px;
}
.pitch p{
    color: gray;
}
#subscribe .subscribe-form{
    margin-top: 10px;
}
#subscribe button {
    height: 100%;
    font-size: 13px;
    background: red;
}
/* Footer */
footer{
    width: 100%;
    height: 7%;
    background-image: url("../img/bg.png");
    background-color: #373737;
    margin: 0 auto;
    text-align: center;
}
footer .container{
    width: 100%;
    height: 100%;
     font-size: 10px;
    margin: auto;
    display: flex;
    justify-content: center; /* Горизонтальне вирівнювання (по центру) */
    align-items: center;
    flex-direction: column;
    gap: 10px;
}
.social {
    display: flex;
    gap: 10px;
}
.copyright {
    font-size: 7px;
}


