/*This whole page is for Jayla*/
*{
    margin: 0;
    box-sizing: border-box;
}


html, body {
    width: 90%;
    margin: 0 auto;
}
body{
    background-color: white;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}




header{
    background-color: #503C3C;
    text-align: center;
    padding: 2%;
    font-family: Futura, 'Times New Roman', Times, serif;


}
h1{
    color: #FCF9EA;
    font-family: Futura, 'Times New Roman', Times, serif;
    font-size: calc(22px + 1vw);
}




header p {
    color: #FCF9EA;
    padding-top: 1%;
    font-family: Futura, 'Times New Roman', Times, serif;
    padding-bottom: 0.5%;
}
nav {
    text-align: center;
    background-color: #B77466;
    padding: 25px 0;
}




nav ul {
    display: inline;
    list-style-type: none;
    margin: 0;
    padding-left: 0;
}




nav li {
    display: inline;
    margin: 3%;
    padding-left: 0;
}




nav a {
    color: black;
    text-decoration: none;
    font-size: calc(12px + 0.2vw);
    font-family: Futura, 'Times New Roman', Times, serif;
}
nav a:hover {
    color: #d4a017;
}


.star {
    display: inline-block;
    width: 160px;
    height: 110px;
    margin: 10px;
    background-color: #FFE797;
    clip-path: polygon(
            50% 0%,
            61% 32%,
            98% 35%,
            68% 55%,
            79% 92%,
            50% 74%,
            21% 92%,
            32% 55%,
            2% 35%,
            39% 32%);




    justify-content: center;
    align-items: center;
    text-align: center;
    align-content: center;
}
h2{
    text-align: center;
    padding-top: 5%;
    padding-bottom: 20px;
    font-family: Futura, Helvetica, sans-serif;
}
main{
    font-family: Futura, Helvetica, sans-serif;
}


footer{
    background-color: #503C3C;
    color: #FCF9EA;
    padding: 2%;
    text-align: center;
    width: 100%;
    font-size: calc(14px + 0.2vw);
    font-family: Futura, 'Times New Roman', Times, serif;
}
footer a{
    color: #FCF9EA;
}

main{
    background-color: #FCF9EA;
    flex: 1;
    position: relative;   /* so #one–#five are positioned inside main */
    padding-bottom: 100px;
}
#about{
    text-align: center;
}
#recommendation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2%;
    margin-top: 2%;
}
#one, #two, #three, #four, #five{
    margin-top: 3%;
    width: 350px;
    height: 350px;
    background-color: #F8F2DE;
    border: 5px #503C3C solid;
    border-radius: 15%;
    text-align: center;
    align-content: center;
    color: rgba(122, 20, 222, 0);
    font-size: calc(2px + 2vw);
    z-index:0;
    /* So my text doesnt go outside the box and overflow onto the screen*/
    overflow-y: auto;
    overflow-x: hidden;
}
.text {
    font-family: Futura, Helvetica, sans-serif;
    font-size: 22px;
    line-height: 1.3;
    word-wrap: break-word;
    white-space: normal;
}


#one{
    background: url("../jayla/src-jayla/sizzling.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    left: 5%;
    transition: color 2s linear;


}
#two{
    left: 25%;
    background: url("../jayla/src-jayla/califas.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: color 2s linear;
}


#three{
    left: 48%;
    background: url("../jayla/src-jayla/shadow.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: color 2s linear;
}
#four{
    left: 70%;
    background: url("../jayla/src-jayla/taste.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: color 2s linear;
}
#five{
    left: 90%;
    background: url("../jayla/src-jayla/original.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: color 2s linear;
}


#one:hover{


    color: white;
    z-index:1;
    /* That way there is a border on the text so that its visible on colored photos*/
    text-shadow: 0 0 6px black;


}
#two:hover{
    color: white;
    text-shadow: 0 0 6px black;
    z-index:2;
}


#three:hover{
    color: white;
    text-shadow: 0 0 6px black;
    z-index:3;
}
#four:hover{
    color: white;
    text-shadow: 0 0 6px black;
    z-index:4;
}
#five:hover {
    color: white;
    text-shadow: 0 0 6px black;
    z-index: 5;
}
@media screen and (max-width: 800px){
    nav a{
        font-size: calc(14px + 0.3vw);
    }
}







