@import url('https://fonts.googleapis.com/css2?family=Honk&family=Indie+Flower&family=Ubuntu+Condensed&display=swap');
*{
    margin:0;
    font-family: "Ubuntu Condensed";
    background-color: rgb(250,240,230);
}
html{
    font-size: 1.5vmax;
    margin: 0 2vw;
    scroll-behavior: smooth;
}
footer{
    height: 6vh;
    font-size: 3vh;
    display: flex;
    flex-direction: row;
    justify-content: right;
    align-items: center;
    padding: 3vh;
    color: rgb(227,119,204);
    gap: 0.5vw;
}

footer a{
    transition-duration: 400ms;
    color: rgb(227,119,204) !important;
    text-transform: uppercase;
    background: rgb(250,240,230);
    padding: 5px;
    border: 3px solid rgb(227,119,204) !important;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s ease 0s;
}

footer a:hover{
    color: rgb(124,98,72) !important;
border-radius: 50px;
background: #ffffff;
border-color: rgb(124,98,72) !important;
transition: all 0.3s ease 0s;
}

body{
    display: flex;
    flex-direction: column;
    justify-content: center;

}

nav{
    display: flex;
    justify-content: center ;
    height: 5vh;
    align-items: center;
    padding: 3vh 0;
}
nav ul {
    display: flex;
    gap: 2vw;
    list-style: none;
    font-size: 1.2rem;
}
a{
    text-decoration: none;
    color: rgb(124,98,72);
}
a:hover{
    transition-duration: 400ms;
    color: rgb(227,119,204);
}

h1{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 900;
    font-size: 4rem;
}

h2{
    font-size:3rem;
}

h3{
    font-size:2rem;
}

.overview{
    display: flex;
    flex-direction: row;
    height: 85vh;
    justify-content: space-around;
}

.preview{
    align-items: center;
    margin-bottom: 5vh;
}

.overview__title{
    padding-top: 15vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48vw;
    gap : 2vh;
}

.overview__title h2{
    font-size:2rem;
    text-align: center;
}
#icon{
    display: flex;
    align-items: center;
    justify-content: center;
}

.overview__title p{
    padding-top: 1vh;
    text-align: center;
}
.overview__content img{
    height: 80%;
    width: auto;
    border-radius: 20%;
}
.preview__text{
    width: 74vw;
}


.overview__title h1{
    font-style: italic;
}

.overview__content{
    width: 30vw;
    display: flex;
    align-items: center;
    justify-content: center;    
}

.preview__content{
   display:flex;
   flex-direction: row;
   width: 100%;
   justify-content: space-around;
   height: auto;
   align-items: center;
   margin-top: 4vh;
   gap:2vw;
}

.preview img{
    height: auto;
    width: 20vw;
    border-radius: 20%;
    margin: 2vh;
}

.preview h2{
    font-size: 3.5rem;
}



.character{
    display:flex;
    flex-direction: row;
    justify-content:center;
    width: 99.9%;   
    height: auto;
    margin-top:5vh;
}

.character h1{
    margin-left:0;
}

.character img{
    width: auto; 
    height: 35vh;
    padding-top: 2vh;
    border-radius: 100%;
    margin: auto;
}

.character section{
    text-align: left;
    width:auto;
    height:auto;
    max-width:60%;
    margin: auto;
    margin-left:5vw;
}

.character table{
    height:auto;
    width:auto;
}

.character table, th, td{
    text-align: left;
    border-collapse: collapse;
    border: 1px solid black;
}

#namecolumn{
    width : 15%;
}

#importancecolumn{
    width : 12%;
}

#descriptioncolumn{
    width : 63%;
    text-decoration-style: double;
    text-decoration-thickness: 5px;
}

.character a{
    text-decoration:none;
    color: black;
    text-shadow: 1px 1px rgb(227,119,204);
}

.character a:hover{
    transition-duration: 400ms;
    color: rgb(227,119,204);
}

.summary{
    display: flex;
    flex-direction: column;
    padding: 5%;
}

.summary section{
    display: grid;
    grid-template-columns: repeat( 3, minmax(200px, 1fr));
    grid-template-rows: auto auto;
    grid-auto-rows: 0px;
}
.summary img{
    height:auto;
    width:auto;
    max-height:50vh;
    margin:auto;
}

.summary p{
    padding-top:2vh;
    padding-left:1vw;
    width:auto;
}

.author article{
    width:80vw;
    align-self: center;
    margin-bottom:4vh;
}

.author div{
    display:flex;
    flex-direction: row;
    margin-top: 1vh;
    gap: 1vw;
}

.author section{
    display:flex !important;
    flex-direction:column !important;
}

.author img{
    width:auto;
    height:auto;
    max-height: 30vh;
    max-width:21vw;
    border-radius:20%;
}

.related__otherbook{
    display: grid;
    padding: 0 5vw;
}

.related__otherbook img{
    height: 75%;
    border-radius: 20px;
}

.related__otherbook h2{
    margin-top: 5vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.related__otherbook p{
    margin-top: 2vh;
}

.related__content{
    gap: 5vw;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-content: center;
    align-items: center;
    height: 35rem;   
}
#summary__part2{
    display: flex;
    justify-content: space-around;
    gap: 5vw;
}

@media only screen and (max-width: 650px){
    html{
        font-size: 2vmax;
    }
    .overview{
        flex-direction: column;
        width: 96vw;
    }
    .overview__title{
        width: 96vw;
        padding-top: 5vh;
    }
    .overview__content{
        width:96vw;
    }
    .preview__content{
        flex-direction:column;
    }
    .preview p{
        width:100%
    }
    .preview img{
    display: none;
    height: 12vh;
    }
    .related__otherbook{
        height: auto;
    }
    .related__otherbook img{
        width: 50vw;
        margin: auto;
    }
    .related__content{
        display: grid;
        height: auto;
    }
    .author div{
        flex-direction:column;
        justify-content: center;
        margin:auto;
        align-items: center;
    }
    .summary img{
        display:none;
    }
    .character{
        flex-direction:column; 
        align-items:center;
    }
    .character section{
        height:25%; 
        max-width:100%; 
        margin: 0 1vw;
    }
}

@media only screen and (max-width: 800px){
    .summary section{
    display:flex;
    flex-direction:column
    }
}
