/* Đặt toàn bộ màn hình theo kích thước bản vẽ */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box; /* Thêm box-sizing để quản lý kích thước tốt hơn */
}

:root {
    --primary-color: #229DBB; /* Màu chính */
    --background-color: #FFF; /* Màu nền */
    --font-family: 'Inter', sans-serif; /* Font chữ */
    --button-font-size: 20px; /* Kích thước font cho nút */
}

html {
    font-family: var(--font-family);



}button {
    cursor: pointer;
}
#login-button, #register-button {
    font-family: var(--font-family);

}
#register-button {
    display: inline-flex;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    background: var(--background-color);
    color: var(--primary-color);
    font-size: var(--button-font-size);
    font-weight: 900;
    border: none;
    line-height: normal;
}
#login-button {
    display: inline-flex;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    background: var(--background-color);
    color: var(--primary-color);
    font-size: var(--button-font-size);
    font-weight: 900;
    border: none;
    line-height: normal;
    position: absolute;
    left: 69rem;
}
body {
    font-size: 16px;
    width: 100rem;
    margin: 0 auto;
    position: relative;
}

/* Ví dụ phần nội dung bên trong */
#main-logo {
    width: 8.3125rem;
    height: 8.3125rem;
    object-fit: contain;
}
#text-logo  {
    width: 23.25rem;
    height: 3.1875rem;
    object-fit: contain;
}

#login-button {
    display: inline-flex;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    background: var(--background-color);
    color: var(--primary-color);
    font-size: var(--button-font-size);
    font-weight: 900;
    border: none;
    line-height: normal;
}

header {

    height: 4.375rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
header svg {
    position: absolute;
    z-index: 99;


}
header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width:   89.125rem;
    padding: 0.62rem 6.88rem;
    height: 4.375rem;
    z-index: 100;


}
.container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    align-items: center;
    padding: 1rem;
}

.row {
    display: flex;
    gap: 1rem; /* Khoảng cách giữa các nút trong hàng */
    justify-content: center;
    width: 100%;
    align-items: center;
}

.button-wrapper {
    display: flex;
    justify-content: center;
    flex: 1 1 30%; /* Đảm bảo mỗi nút chiếm khoảng 1/3 của hàng */
    max-width: 30%;
}

.task-button {
    padding: 0.625rem 1.875rem; /* Khoảng cách bên trong */
    white-space: nowrap; /* Ngăn không cho văn bản xuống dòng */
    color: #fff;
    border-radius: 4.0625rem;
    border: none;
    box-shadow:
        0 0 0 0.1rem var(--White, #FFF), /* Lớp ngoài cùng màu trắng */
        0 0 0 0.6rem #229DBB,           /* Lớp giữa màu xanh */
        0 0 0 0.7rem var(--White, #FFF); /* Lớp trong cùng màu trắng */
    cursor: pointer;
    background-image: url('/img/button-bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 2.5rem;
    font-weight: bolder;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s;
}

.task-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0; /* Đảm bảo nằm dưới văn bản */
}

.task-button:hover::before {
    opacity: 0.8;
}

.task-button span {
    position: relative; /* Đặt văn bản nằm trên lớp phủ */
    z-index: 1;
}

.task-button:hover {
    color: var(--primary-color);
}


/* Đảm bảo văn bản và nội dung button không bị lớp phủ che */


#row-1{
    margin-top: 4rem;
}
#row-2{
    margin-top: 4rem;
}



#whale-game-button {
    position: absolute;
    left: 51rem;
    top: 11rem;
}
#homework-button {
    position: absolute;
    top: 10rem;
    left: 17rem;
}
#test-button
 {
    position: absolute;
    top: 11rem;
    left: 73rem;
 }
#lecture-button
 {
    position: absolute;
    top: 24rem;
 }
#achievement-button
 {
    position: absolute;
    top: 33rem;
 }
#mindmap-button
 {
    position: absolute;
    top: 29rem;
    left: 74rem;

 }
#back-button
 {
    position: absolute;
    top: 42rem;
    left: 11rem;

 }


 #obtorbus {
    position: absolute;
    z-index: 100;
    width: 10.5rem;
    height: 13.5rem;
    left: 7rem;
    top: 21rem;
    object-fit: contain;

 }
 #sua_1 {
    position: absolute;
    z-index: 100;
    width: 8.6875rem;
    height: 11.125rem;
    left: 30rem;
    top: 5rem;
    object-fit: contain;

 }
 #sua_2 {
    position: absolute;
    z-index: 100;
    /* width: 10.5rem; */
    /* height: 13.5rem; */
    left: 15rem;
    top: 13rem;
    width: 6.01844rem;
    height: 7.70706rem;
    object-fit: contain;
 }
 #whale1 {
    position: absolute;
    z-index: 100;
    left: 42rem;
    top: 12rem;
    width: 24.125rem;
    height: 16.5rem;
    object-fit: contain;
 }
 #Whalekiller {
    position: absolute;
    z-index: 100;
    left: 83rem;
    top: 9rem;
    width: 9.6875rem;
    height: 11.9375rem;
    object-fit: contain;
 }
 #rua1 {
    position: absolute;
    z-index: 100;
    left: 66rem;
    top: 29rem;
    width: 14.25rem;
    height: 7.8125rem;
    object-fit: contain;
 }
 #so2 {
    position: absolute;
    z-index: 100;
    left: 31rem;
    top: 34rem;
    width: 12.9375rem;
    height: 7.0625rem;
    object-fit: contain;
 }
 #crab1 {
    position: absolute;
    z-index: 100;
    left: 43rem;
    top: 37rem;
    width: 10.375rem;
    height: 4.125rem;
    object-fit: contain;
 }
 #so3 {
    position: absolute;
    z-index: 100;
    left: 54rem;
    top: 37rem;
    width: 5.6875rem;
    height: 3.1875rem;
    object-fit: contain;
 }
 #crab2 {
    position: absolute;
    z-index: 99;
    left: 55rem;
    top: 37rem;
    width: 8.6875rem;
    height: 3.375rem;
    object-fit: contain;
 }
 .button-hover-trigger {
    position: absolute;
    z-index: 5; /* Ảnh nằm dưới button */
    cursor: pointer;
}

/* Hover trên ảnh sẽ thêm hiệu ứng như hover vào button */
.button-wrapper:hover .task-button::before {
    opacity: 0.7; /* Đậm hơn khi hover */
}
.button-wrapper:hover .task-button {
    color: var(--primary-color);
}

.login-card {
    width: 39.375rem;
    height: 29.375rem;
    padding: 0rem 3.75rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.875rem;
    flex-shrink: 0;
    background-color: #fff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    border-radius: 2.8125rem;
background: #FFF;
top: 11rem;
position: absolute;
}

.login-card h2 {
    align-self: stretch;color: var(--Primary, #229DBB);
    text-align: center;
    font-family: Inter;
    font-size: 3rem;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    position: absolute;
    top: 2rem;
    left: 12rem;
}

.login-card input[type="text"] {
    width: 100%;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    position: absolute;
    top: 8rem;
    left: 4rem;
    width: 31.25rem;
height: 3.125rem;
padding: 0.625rem 1.25rem;
align-items: center;
gap: 0.625rem;
}
.login-card input[type="password"] {
    width: 100%;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    position: absolute;
    top: 13rem;
    left: 4rem;
    width: 31.25rem;
height: 3.125rem;
padding: 0.625rem 1.25rem;
align-items: center;
gap: 0.625rem;
}

.login-card .form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    position: absolute;
    top: 17rem;
    width: 31.25rem;
}
.login-card .form-footer-register {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    position: absolute;
    top: 21rem;
    width: 17.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    width: 17.3;
    margin-left: 8rem;
    margin-top: 3rem;
}

.login-card .forgot-password {
    font-size: 0.9rem;
    color: #229DBB;
    text-decoration: none;
}

.login-card button {
    padding: 0.75rem 1.5rem;
    background-color: #229DBB;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 1.875rem;
background: var(--Primary, #229DBB);
color: var(--White, #FFF);
font-family: Inter;
font-size: 1.25rem;
font-style: normal;
font-weight: 900;
line-height: normal;
}

.login-card .register-link {
    color: var(--Primary, #229DBB);
    font-family: Inter;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
}
.login-card .register-link-action {
    display: flex;
    padding: 0.625rem 1.25rem;
    color: var(--Primary, #229DBB);
    color: var(--Primary, #229DBB);
    font-family: Inter;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    border-radius: 1.875rem;
background: var(--White, #FFF);
}

.login-card button:hover,
.login-card .forgot-password:hover,
.login-card .register-link:hover {
    text-decoration: underline;
}
