@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Figtree:ital,wght@0,300..900;1,300..900&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Young+Serif&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: hsl(215, 67%, 12%);
    color: hsl(0, 0%, 100%);
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
}


/*Container and card sizing/positioning--
image active state*/
.portfolio-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 1em;
}


.nft-card {
    background-color: hsl(215, 59%, 21%);
    width: 400px;
    border-radius: 15px;
    padding: 30px 30px 5px 30px;
}

.img-wrapper {
    position: relative;
}

.nft-image {
    display: block;
    width: 100%;
    border-radius: 10px;
    transition: opacity 0.3s ease-in-out;
}

.view-icon {
    position: absolute;
    left: 45%;
    top: 45%; 
    opacity: 0;
    width: 45px; 
    height: 45px; 
    transition: opacity 0.2s ease-in-out, transform 0.3s ease-in-out;
    transform: translate(-5%, -5%); 
}

.img-wrapper:hover {
    background-color: white;
    border-radius: 11px;
}

.img-wrapper:hover .nft-image {
    opacity: 0.8;
}

.img-wrapper:hover .view-icon {
    opacity: 1;
    transform: scale(1.2);
}

/*End of section*/

/*Nft card design*/

a {
    text-decoration: none;
    color: hsl(0, 0%, 100%);
}

.cards-details {
    margin: 20px 0;
}

.card-title {
    font-size: 25px;
    font-weight: 400;
}

.card-description {
    color: hsl(215, 38%, 60%);
    padding: 25px 0;
    font-weight: 300;
}

/*Price and Timer Section*/
.price-timer {
    border-bottom: 1px solid hsl(215, 38%, 60%);
    ;
    display: flex;
    justify-content: space-between;
    padding: 15px 15px 15px 0;
}

.ethereum-icon,
.timer-icon {
    display: inline-block;
    margin-right: 15px;
}

.eth-text,
.timer-text {
    float: right;
    position: relative;
    bottom: 2px;
}

.timer-text {
    color: hsl(215, 51%, 70%);
}

.eth-text {
    color: hsl(178, 100%, 50%);

}

/*End of section*/

/*Creator Section*/

.creator-info {
    display: flex;
    align-items: center;
    padding-top: 15px;
}

.creator-avatar {
    width: 45px;
    margin-right: 15px;
    border: 1px solid hsl(0, 0%, 100%);
    border-radius: 50%;
}

.creator-label {
    color: hsl(215, 51%, 70%);
}

/*End of Section*/

/*Title & Name active states*/
.card-title:hover,
.creator-name:hover {
    color: hsl(178, 100%, 50%);
}

.attribution {
    color: hsl(215, 35%, 49%);
    ;
    font-size: 11px;
    width: 400px;
    text-align: center;
    margin: 0 auto 70px auto;
    position: relative;
    bottom: 80px;
}

.attribution img {
    width: 14px;
    margin: 0 5px;
}

.attribution a {
    text-decoration: none;
    color: hsl(178, 100%, 50%);
    ;
}

.attribution a:hover {
    color: hsl(212, 7%, 52%);
}

@media only screen and (max-width: 390px) and (max-height: 844px) {
    .attribution {
        width: 200px;
        position: relative;
        bottom: 50px;
    }
}
/* Landscape view adjustments */
@media only screen and (max-width: 896px) and (max-height: 414px) {
    .portfolio-container {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }

    .attribution {
        width: 200px;
        position: relative;
        top: 270px;
        padding-bottom: 15px;
    }
}

@media only screen and (max-width: 375px) {
    .card-title {
        font-size: 22px;
    }

    .view-icon {
        position: absolute;
        left: 42%; 
        top: 42%;  
    }

    .card-description,
    .price-timer,
    .creator-info {
        font-size: 16px;
    }

    .creator-avatar {
        width: 35px;
    }
}
