body {
    background-color: #ed3226;
    /*start code from https://forum.freecodecamp.org/t/position-fixed-question/491765*/
    position: fixed;
    top: 0;
    width: 100%;
    /*end code from https://forum.freecodecamp.org/t/position-fixed-question/491765*/
}

.grid {
    display: grid;
    grid-template-columns: 45% 40% 10%;
    grid-gap: 1%;
}

/*1font*/

.inter-text {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
}

.jersey-10-regular {
    font-family: "Jersey 10", sans-serif;
    font-weight: 400;
    font-style: normal;
}
/*1endfont*/

/*2settings*/
#settings {
    grid-column: span 3;
    height: 10vh;
    justify-self: end;
}

.bsettings {
    height: 10vh;
    width: 10vh;
    margin-top: 3vh;
    background-color: #3466ae;
    border-radius: 10px;
    /*Align object Start code from https://www.youtube.com/watch?v=X2-x-4wA9V4*/
    align-content: center;
    justify-content: center;
    /*end code from https://www.youtube.com/watch?v=X2-x-4wA9V4*/
}

.button:hover {
    background-color: #143a6f;
}
.gear {
    height: 6vh;
    right: 0;
    /*justify-self: center;*/
}
.menu {
    height: 300px;
    width: 600px;
    /*start code from https://stackoverflow.com/questions/7720730/how-to-align-absolutely-positioned-element-to-center*/
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    /*end code from https://stackoverflow.com/questions/7720730/how-to-align-absolutely-positioned-element-to-center*/
    top: 0;
    bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
    background-color: white;
    border: #143a6f solid;
    border-width: 15px;
    position: absolute;
    margin: auto;
    border-radius: 20px;
    justify-content: center;
    align-content: center;
}

.save {
    background-color: #ed3226;
    border-radius: 50px;
    border: none;
    width: 150px;
    height: 30px;
    color: white;
    margin-top: 20px;
    /*margin: auto;*/
    /*margin: auto;*/
}
.save:hover {
    background-color: #8c130b;
    cursor: pointer;
}
#error {
    color: #ed3226;
}
.gen {
    margin: 10px 0;
}
.pop {
    visibility: hidden;
}
.middle {
    justify-self: center;
    align-self: center;
    align-content: center;
    justify-content: center;
}
/*2end settings*/

/*3pokemon*/
#pcontainer {
    /*width: 50vw;  */
    height: 90vh;
    grid-column: span 1;
    /*align-self: baseline;*/
    /*align-content: center;*/
    text-align: center;
    /*justify-self: start;*/
}
/*star*/
/*transform-origin exist to change x y coordinate*/
.star {
    position: absolute;
    width: 180vh;
    z-index: -1;
    top: -40vh;
    left: -17vw;
}

.pokemon {
    /*border: 20px solid #555;*/
    /*background-color: aqua;*/
    /*Start code from (youtube) https://www.youtube.com/watch?v=iBR-Pmr-l6E*/
    filter: brightness(0);
    transition: filter 0.5s ease-out;
    /*transform: scale(2.5);*/
    /*end code from (youtube) https://www.youtube.com/watch?v=iBR-Pmr-l6E*/
    margin-top: 50px;

    width: 280px;
    /*bottom: 100px;*/
}
#pokeball {
    visibility: hidden;
    display: none;
}
.button {
    bottom: 20%;
    left: 35%;
    background-color: #3466ae;
    width: 10rem;
    height: 3rem;
    border-radius: 20px;
    text-align: center;
    align-content: center;
    font-size: 1.5rem;
    font-family: "Inter";
    color: #ffcb05;
}

.button:hover {
    background-color: #143a6f;
}
/*3end pokemon*/

/*4question*/
#question {
    grid-column: span 1;
    height: 70vh;
    align-content: center;
    text-align: center;
}
.logo {
    width: 40vw;
}
.text {
    color: #fff;
    font-size: 1.5rem;
}
.answer {
    visibility: hidden;
    display: none;
}
#answer {
    font-size: 2rem;
    color: #ffcb05;
    font-weight: 900;
    visibility: hidden;
    display: none;
    /*-webkit-text-stroke: medium;*/
    /*-webkit-text-stroke-color: #143a6f;*/
    text-transform: capitalize;
    text-shadow:
        -5px 0 #143a6f,
        -5px -5px #143a6f,
        -5px 5px #143a6f,
        0 5px #143a6f,
        5px -5px #143a6f,
        5px 0 #143a6f,
        5px 5px #143a6f,
        0 -5px #143a6f,
        -5px -5px #143a6f;
}
#type {
    text-transform: capitalize;
}

#start {
    visibility: hidden;
    display: none;
}

.dexTem {
    visibility: hidden;
    display: none;
    /*padding-top: 30px;*/
    padding: 20px;
    /*background-color: aqua;*/
    /*border: 3px #143a6f solid 8px #143a6f solid 3px #143a6f solid 8px #143a6f solid;*/
    border: #143a6f solid;
    border-width: 5px 15px;
    background-color: white;
    border-radius: 10px;
    width: 200px;
    height: 150px;
    margin: auto;
    margin-top: 20px;
    justify-content: center;
    align-content: center;
    /*color: red;*/
}
#dex {
    margin-top: 10px;
}
/*4end question*/

/*Start code from (youtube) https://www.youtube.com/watch?v=iBR-Pmr-l6E*/
/*basically a switch between 3 modes: fetching(pokeball), none(shadow), reveal(pokemon).*/
main.fetching #pokemon {
    visibility: hidden;
    display: none;
}
main.fetching #pokeball {
    visibility: visible;
    display: inline;
}

main.fetching #start {
    visibility: visible;
    display: inline;
}

main.fetching #show {
    visibility: hidden;
    display: none;
}

main.revealed #pokemon {
    filter: none;
}
main.revealed #start {
    visibility: visible;
    display: inline;
}
main.revealed .answer {
    visibility: visible;
    display: contents;
}
main.revealed #show {
    visibility: hidden;
    display: none;
}
main.revealed .question {
    visibility: hidden;
    display: none;
}

main.revealed #logo {
    visibility: hidden;
    display: none;
}
main.revealed #start {
    visibility: visible;
    display: inline;
}
main.revealed .dexTem {
    visibility: visible;
    display: block;
}
main.revealed #answer {
    visibility: visible;
    display: inline;
}
/*end code from (youtube) https://www.youtube.com/watch?v=iBR-Pmr-l6E*/
@keyframes dexOpen {
    from {
        height: 0;
    }
    to {
        height: 100%;
    }
}
@keyframes dexText {
    from {
        visibility: hidden;
    }
    to {
        visibility: visible;
    }
}
