@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

* {
    transition: all 0.4s ease;
}

body {
    font-family: "Playfair Display", serif;
    color: white;
}

html {
    font-size: 62.5%;
}

h2,h3 {
    font-size: 3rem;
    font-weight: 540;
    position: relative;
    z-index: 1;
}

a,p {
    position: relative;
    z-index: 1;
}

section {
    padding-top: 60px;
    padding-bottom: 60px;
}

header {
    padding: 2.7rem  5.4rem;
    text-shadow: black 1px 3px 6px;
    z-index: 1000;
    position: fixed;
}

header .menu-bar {
    position: absolute;
    top: 30vh;
    right: -200px;
    background-color: black;
    width: 170px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2.5rem;
    box-shadow: var(--box-shadow);
    opacity: 0;
}

header .menu-bar.active {
    right: -20px;
    opacity: 1;
}

header .menu-bar li {
    margin-bottom: 3rem;
}

header .menu-bar li a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
}

header .menu-bar li a:hover {
    color: blue;
}

header .book-open-btn {
    display: none;
}

header .book-open-btn.active {
    display: block;
}

header .book-close-btn {
    display: block;
}

header .book-close-btn.active {
    display: none;
}

.logo-title {
    cursor: pointer;
}

header img {
    width: 3.5rem;
    cursor: pointer;
}

.fantasy {
    background-image: url("../images/aig-ai230706153-xl_TP_V.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;

}

.fantasy::after {
    content: "";
    position: absolute;
    background-color: rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.fantasy .title {
    transform: translateY(240px);
}

.fantasy h1 {
    text-shadow: black 1px 3px 6px;
    font-size: 7.5em;
}

.fantasy h3 {
    width: 450px;
    text-align: right;
    text-shadow: black 1px 3px 6px;
}

.game h2 {
    font-size: 4rem;
}

.game h3 {
    font-size: 3rem;
}

.game img {
    width: 100%;
    height: 100%;
}

.card-effect {
    box-shadow: var(--box-shadow);
}

.game-card {
    background-color: rgba(255,255,255);
}

.game-card h5 {
    font-size: 2rem;
}

.game-card p {
    font-size: 1.7rem;
    line-height: 1.8rem;
    letter-spacing: 0.1rem;
}

.game-card:hover {
    box-shadow: none;
    transform: translateY(4px);
}

.company {
    background-image: url("../images/aig-ai230706386-xl_TP_V.jpg");
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.company::after {
    content: "";
    position: absolute;
    background-color: rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.company h2 {
    font-size: 4rem;
}

.company p {
    font-size: 2.4rem;
    line-height: 4rem;
}

.company-text {
    position: absolute;
    top: 70%;
    left: 7%;
}

.company-text .detail-content a {
    display: inline-block;
    font-size: 1.7rem;
    color: white;
    padding: 0.7rem;
}

.company-text .detail-content a:hover {
    color: blue;
    transform: translateX(1rem);
}

.hardware-card img {
    width: 100%;
    height: 100%;
}

.hardware-card {
   position: relative;
   display: flex;
   align-items: center;
   justify-content: center;
   overflow: hidden; 
}

.hardware-card h3 {
   position: absolute;
   color: white;
   font-size: 4rem;
   opacity: 0; 
}

.hardware-card:hover img{
    transform: scale(1.1);
}

.hardware-card:hover h3 {
    opacity: 1;
}

.hardware-card .overlay {
    content: "";
    position: absolute;
    background-color: rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
}

.hardware-card:hover .overlay {
    background-color: rgb(13, 71, 92);
    opacity: 0.2;
}

.contact {
    background-image: url("../images/aig-ai230706361-xl_TP_V.jpg");
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

@media (max-width: 1000px) {
    .fantasy h1 {
        font-size: 5rem;
    }

    .fantasy h3 {
        width: 400px;
        font-size: 3rem;
    }
}

.contact input {
    height: 4rem;
    margin-bottom: 2rem;
}

.contact textarea {
   width: 70%; 
}

.contact .site-logo h3 {
    position: absolute;
    bottom: 10%;
    right: 8%;
    font-size: 4rem;
}

footer {
    padding: 40px;
    font-size: 2rem;
}

footer h2 {
    font-size: 3rem;
    height: 50%;
}

footer a {
    text-decoration: none;
    color: white;
}

footer a:hover {
    color: blue;
}


@media (max-width: 768px) {
    .fantasy .title {
        transform: translateY(-50px);
        text-align: center;
    }

    .fantasy h1 {
        font-size: 6rem;
    }
    .fantasy h3 {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 45%;
    }
    
    .fantasy h3 {
        font-size: 2rem;
    }


.company-info {
    text-align: center !important;
    padding: 2rem !important;
    }
    
.company-text {
    position: static;
    margin-top: 30rem;
 }
 
.company-info h2 {
    margin-bottom: 4.5rem;
}

.company-info p {
    line-height: 5rem;
    font-size: 2.2rem;
}

.company-info .detail-content {
    margin-top: 10rem;
}

.contact h2 {
    font-size: 4.6rem;
    text-align: center;
}

footer {
    padding-top: 20px;
}

}