/* Đặ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;
}
#register-button, #login-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;
}



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);
}

.register-card {
    width: 50.75rem;
    height: 33.5rem;
    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;
}

.register-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: 1rem;
    left: 19rem;
}

.register-card input  {
    width: 100%;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    width: 20.8125rem;
    height: 3.125rem;
padding: 0.625rem 1.25rem;
align-items: center;
gap: 0.625rem;
}
.register-card input[type="checkbox"] {
    width: 1.5rem !important;
    height: 1.5rem !important;
    outline: 1px solid #229DBB;
    border-radius: .3rem;
    border: none;
    appearance: none;
    margin: 0   ;
}
#agree{
    color: var(--Primary, #229DBB);
font-family: Inter;
font-size: 1rem;
font-style: normal;
font-weight: 400;
line-height: normal;
}
.checkbox-group {
    display: flex;
    gap: .2rem;
    align-items: center;
    vertical-align: middle;
    justify-content: start;
}
.register-card .form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    position: absolute;
    top: 17rem;
    width: 31.25rem;
}
.register-card .form-footer-register {
    display: flex
;
    align-items: center;
    margin-top: 1rem;
    position: absolute;
    top: 26rem;
    width: 17.3rem;
    display: flex
;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    width: 17.3;
    margin-top: 3rem;
    width: 17.8rem;
    margin-left: 13rem;
}
form{
    position: absolute;
    top: 6rem;
}
.register-card .forgot-password {
    font-size: 0.9rem;
    color: #229DBB;
    text-decoration: none;
}

.register-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;

}

.register-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;
}
.register-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);
}

.register-card button:hover,
.register-card .forgot-password:hover,
.register-card .register-link:hover {
    text-decoration: underline;
}
input[type="checkbox"] {
    display: none; /* Ẩn checkbox mặc định */
}

.custom-checkbox {
    width: 24px; /* Kích thước của checkbox */
    height: 24px; /* Kích thước của checkbox */
    background-color: transparent; /* Màu nền */
    border-radius: 4px; /* Bo góc */
    display: inline-block; /* Đảm bảo hiển thị dưới dạng khối */
    margin-right: 10px; /* Khoảng cách giữa checkbox và nhãn */
    position: relative; /* Để có thể thêm svg vào bên trong */
    cursor: pointer; /* Thay đổi con trỏ khi hover */
}

input[type="checkbox"]:checked + label .custom-checkbox {
    background-color: none; /* Màu nền khi được chọn */

}

input[type="checkbox"]:checked + label .custom-checkbox::before {
    content: '';
    position: absolute;
    width: 24px; /* Độ rộng cho svg */
    height: 24px; /* Chiều cao cho svg */
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><rect x="3" y="3" width="18" height="18" rx="2" fill="%23229DBB" stroke="%23229DBB" stroke-width="2"/><path d="M7 13.6L9.53846 16L18 8" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center; /* SVG đã check */
    background-size: contain; /* Đảm bảo SVG phù hợp với kích thước */
}

input[type="checkbox"]:not(:checked) + label .custom-checkbox::before {
    content: '';
    position: absolute;
    width: 24px; /* Độ rộng cho svg */
    height: 24px; /* Chiều cao cho svg */
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><rect x="3" y="3" width="18" height="18" rx="2" stroke="%23229DBB" stroke-width="2"/></svg>') no-repeat center; /* SVG chưa check */
    background-size: contain; /* Đảm bảo SVG phù hợp với kích thước */
}
