body.home {
    background-image: url('./Img/bg1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

header {
    text-align: right; /* H1 sang phải */
    padding: 20px;
    color: rgb(8, 0, 54);
}

h1 {
    font-size: 4vw; /* Co giãn theo chiều rộng màn hình */
    margin-right: 5vw; /* Đẩy vào trong một chút (5% màn hình) */
}

section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.button {
    background-color: #04AA6D; /* Green */
    color: white;
    padding: 10px 15px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    margin-left: auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    display: inline-block;
    max-width: 130px; /* Giới hạn nút nhỏ hơn */
    width: 100%;
    cursor: pointer;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
}

.button img {
    width: 80%; /* Ảnh nhỏ lại, chỉ chiếm 80% khung nút */
    height: auto;
    border-radius: 8px;
}

.button-title {
    background-color: white; 
    color: black; 
    border: 2px solid #008CBA;
    padding: 10px;
    margin-top: 10px;
    font-size: 1rem;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: 0.4s;
}
.button-title:hover {  /* Chỉnh lại tên lớp */
    background-color: #008CBA;
    color: white;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body.hobby {
    background-image: url('./Img/bg2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
a {
    text-decoration: none;
}
section {
    display: flex;
    justify-content: flex-end;  /* Căn toàn bộ button sang phải */
    flex-wrap: wrap;            /* Cho phép button xuống dòng khi hết chỗ */
    gap: 15px;
    padding: 20px;
}
.header-hobby {
    text-align: center; 
    padding: 10px;           /* Giảm padding tổng, từ 20px xuống 10px */
    padding-bottom: 0;       /* Xóa hẳn padding dưới */
    color: rgb(197, 0, 0);
    margin-bottom: 0; 
}

.section-hobby {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    margin: 0 20px 20px 20px;
}

.section-hobby p {
    width: 16cm;          /* Chiều rộng text 14cm */
    text-align: center;   /* Căn giữa nội dung bên trong */
    margin: 0 auto;       /* Căn giữa khối này trong section */
}
.hobby img {
    width: 5cm;    /* Chiều rộng 5 cm */
    height: 6cm;   /* Chiều cao 6 cm */
    object-fit: cover; /* Giúp ảnh không bị méo nếu tỷ lệ khác */
    display: block;
    margin: 0 auto; /* Căn giữa trong thẻ a */
}
.hobby-container {
    display: flex;              /* Xếp ngang */
    gap: 3cm;                  /* Khoảng cách giữa các ảnh */
    justify-content: center;    /* Căn giữa toàn bộ hàng */
}

.hobby img {
    width: 5cm;                 /* Hoặc kích thước bạn muốn */
    height: 6cm;
    object-fit: cover;          /* Giữ tỉ lệ, không méo ảnh */
    display: block;
}
.back-container {
    display: flex;
    justify-content: flex-end;   /* Đẩy nút sang phải */
    padding-right: 24cm;          /* Cách mép phải 9 cm */
    margin-bottom: 20px;
    margin-top: 20px;
}


.back-button {
    padding: 10px 20px;          /* Đủ cho chữ ZPĚT */
    font-size: 1rem;
    background-color: #008CBA;   /* Màu nền xanh */
    color: white;                /* Màu chữ trắng */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.back-button:hover {
    background-color: #005f7a;   /* Màu nền khi hover */
    transform: scale(1.05);      /* Phóng to nhẹ khi hover */
}
body.Me {
    background-image: url('./Img/bg3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.me img {
    width: 5cm;    /* Chiều rộng 5 cm */
    height: 6cm;   /* Chiều cao 6 cm */
    object-fit: cover; /* Giúp ảnh không bị méo nếu tỷ lệ khác */
    display: block;
    margin: 0 auto; /* Căn giữa trong thẻ a */
}
.me-container {
    display: flex;              /* Xếp ngang */
    gap: 3cm;                  /* Khoảng cách giữa các ảnh */
    justify-content: center;    /* Căn giữa toàn bộ hàng */
}

.me img {
    width: 5cm;                 /* Hoặc kích thước bạn muốn */
    height: 6cm;
    object-fit: cover;          /* Giữ tỉ lệ, không méo ảnh */
    display: block;
}
.back-container {
    display: flex;
    justify-content: flex-end;   /* Đẩy nút sang phải */
    padding-right: 24cm;          /* Cách mép phải 9 cm */
    margin-bottom: 20px;
    margin-top: 20px;
}
.button1 {
    background-color: #04AA6D;
    border: none;
    color: white;
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition: all 0.4s ease;
    cursor: pointer;
    border-radius: 8px;
  }
  
  .button1 {
    background-color: white; 
    color: black; 
    border: 2px solid #04AA6D;
  }
  
  .button1:hover {
    background-color: #04AA6D;
    color: white;
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  body.Skola {
    background-image: url('./Img/bg4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.me-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 85px; /* khoảng ngang giữa các cột ~3cm */
}

.me-item {
    text-align: center;
    width: 200px; /* khớp chiều rộng ảnh */
}

.me-item img {
    width: 200px;
}

.section-skola {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    background-color: #f0f0f0;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.cestovani-container {
    display: flex;
    flex-direction: column; /* xếp dọc */
    align-items: flex-start; /* căn trái */
    gap: 30px; /* khoảng cách giữa các cặp ~3cm gần bằng 85px, có thể chỉnh */
    padding-left: 20px; /* cách lề trái một chút */
}

.cestovani-item {
    text-align: center;
    width: 200px; /* cố định chiều rộng theo ảnh */
}

.cestovani-item img {
    width: 200px;
    display: block;
}

.section-skola {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    background-color: #f0f0f0;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.main-container {
    display: flex;
    align-items: flex-start;
    gap: 100px; /* khoảng cách giữa ảnh và button */
}

.cestovani-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.button-container {
    margin-top: 230px; /* điều chỉnh để nút ngang hàng ảnh thứ 2 */
}
body.cestovani {
    margin-left: 3cm; /* Đẩy toàn bộ nội dung sang phải 5cm */
    background-image: url('./Img/bg5.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}