*
{
    margin: 0;
    padding: 0;
}

 /*************************************************header, nav bar, and globals***************************************************************/


body {
    height: 100px;
    font-family: 'Julius Sans One', sans-serif;
    background: linear-gradient(to right, white 0%, white 50%, black 0%, black 100%);
}


header {
   
    display: flex;
    flex-wrap:wrap;
    align-items: center;
    text-transform: uppercase;
    background-color: rgb(74, 72, 72, 0.5);
    animation: fadein 2s ease-in;
}

h1 {
    font-weight: lighter;
}


h2 {
    position: absolute;
    padding: 5% 5%;
    font-size: 50px;
    text-transform: uppercase;
    letter-spacing: 5px;
}


h3 {
 
    padding-top: 10%;
    padding-left: 5%;
    font-weight: bold;
    text-transform: uppercase;
}

h4
{
    margin-top: 5%;
    
}

p {
    margin-left: 5%;
}

p a:hover
{
    color: lightgray
}

.navbar-header 
{
    margin-left: 10%;

}

.famous-navbar-header {
    margin-left: 2.5%;
}



a 
{
    text-decoration: none;
    color: black;
}


li {
    list-style-type: none;
    display: inline-block;  
    margin-left: 40px;
}


li a:hover{
    color: lightgray;
}


.navbar-left 
{
    color: black;
    font-size: large;
}

.navbar-right
{
    color: white;
    font-size:large;
}

 /************************************************History and Famous chess players info goes here************************************************/





.famous-h2
{
    padding: 5% 1%;
}



.famous-h3 {
    
    padding-top: 18%;
    font-weight: bold;
    text-transform: uppercase;
}

.stratagies-h3 
{
    position: absolute;
    top: 5%;
    right: 39%;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}


.p-history-info 
{
    position: absolute;
    top: 25%;
    inline-size: 600px;
    overflow-wrap: break-word;
    font-size: large;
}

.p-famous-info 
{
    position: absolute;
    top: 30%;
    inline-size: 600px;
    overflow-wrap: break-word;
    font-size: large;
}

.p-second-famous-info {
    position: absolute;
    top: 68%;
    inline-size: 600px;
    overflow-wrap: break-word;
    font-size: large;
}


.p-stratagy-info 
{
    position: absolute;
    top: 30%;
    inline-size: 600px;
    overflow-wrap: break-word;
    font-size: large;
}

.p-second-stratagy-info 
{
    position: absolute;
    top: 30%;
    right: 7%;
    color: white;
    inline-size: 700px;
    overflow-wrap: break-word;
    font-size: large;
}

.p-second-stratagy-info a
{
 color: white;
}


.history-info-image
{
    position:absolute;
    top: 25%;
    right: 5%;
}

.famous-info-image {
    position: absolute;
    top: 25%;
    right: 18%;
}

.second-famous-info-image {
    position: absolute;
    top: 68%;
    right: 18%;
}

.history-img-border{
    
    border: 1px solid white;
    

}

.info-image-caption 
{
    color: white;
    text-align: center;
}

.famous-info-image-border 
{
    border: 2px solid;
    border-color: white;
}




  /************************************************Chess home images************************************************************/

.landing-page-chess {
    margin-top: 16%;
    margin-right: 2.5%;
    text-align: center;
    animation: fadein 2s ease-in;
}




.knightdiv 
{
    
    animation: fadein 2s ease-in;
}





img.kingdiv:hover 
{
    animation: fadeinhover 1s ease-out;
}

img.queendiv:hover 
{
    animation: fadeinhover 1s ease-out;
}

img.bishopdiv:hover {
    animation: fadeinhover 1s ease-out;
}

img.knightdiv:hover {
    animation: fadeinhover 1s ease-out;
}

img.castlediv:hover {
    animation: fadeinhover 1s ease-out;
}

img.pawndiv:hover {
    animation: fadeinhover 1s ease-out;
}



 /*******************************************Chess piece modal*******************************************************/

.modalbackground {
    display: none;
    z-index: 1;
    position:fixed;
    top: 0%;
    left: 0;
    right: 0;
    overflow:auto;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgb(255, 255, 255, 0.7), rgba(0, 0, 0, 0.7));
}

.close-modal-button
{
position:absolute;
top: 20%;
height: 3.2%;
margin-left: 95%;
border-style: solid;
}

.specific-close-modal-button
{
position:absolute;
top: 25%;
height: 3.2%;
margin-left: 95%;
border-style: solid;
}

.specific-pawn-close-modal-button
{
position:absolute;
top: 25%;
height: 3.2%;
margin-left: 96%;
border-style: solid;
}

.specific-rook-close-modal-button
{
position:absolute;
top: 27%;
height: 3.2%;
margin-left: 95%;
border-style: solid;
cursor: pointer;
}



.king-modal-content-box 
{
  
    margin-top: 8%;
    padding-top: 5%;
    padding-bottom: 5%;
    background-color: white;
    animation: fadeinmodal 2s ease-in;
}

.specific-chess-modal-content-box {
    margin-top: 11%;
    padding-top: 5%;
    padding-bottom: 7%;
    background-color: white;
    animation: fadeinmodal 2s ease-in;
}


.castle-modal-content-box {
    margin-top: 12%;
    padding-top: 5%;
    padding-bottom: 7%;
    background-color: white;
    animation: fadeinmodal 2s ease-in;
}


.inner-modal-content-box a:hover {
    color: lightgray;
}

.h1-modal-content-box 
{
    font-weight: 100;
    margin-left: 5%;
    font-size: 100px;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.p-inner-modal-content-box 
{
    inline-size: 900px;
    overflow-wrap: break-word;
    font-size: x-large;

}

.position-figure-container
{
    position:absolute;
    top: 33%;
    margin-left: 75%;
    text-align: center;
}

.position-pawn-figure-container
{
    position:absolute;
    top: 30%;
    margin-left: 75%;
    text-align: center;
}

.position-rook-figure-container 
{
    position: absolute;
    top: 28%;
    margin-left: 75%;
    text-align: center;
}

.link-span {
    color: black;
    margin-left: 5%;
    font-size: x-large;
}



 /*************************************************Stratagy and Opening modals***********************************************************/

.basic-concept-container
{
    display: block;
    position: absolute;
    top: 47%;
    cursor: pointer;
    height: 50%;
    width: 50%;
    color: black;
}
.basic-concept-container h4{
    border-style: solid;
}

.basic-concept-container div{
   height: 40%;
}



.stratagy-figure-material-count
    {
        position: absolute;
        top: 20%;
        left: 65%;
    
    }
    
    .stratagy-figure-piece-activity
    {
        position: absolute;
        top: 35%;
        left: 65%;
    
    }
    
    .stratagy-figure-pawn-structure
    {
        position: absolute;
        top: 50%;
        left: 65%;
    
    }
    
    .stratagy-figure-space
    {
        position: absolute;
        top: 65%;
        left: 65%;
    
    }
    
    .stratagy-figure-king-safety
    {
        position: absolute;
        top: 80%;
        left: 65%;
    
    }



.p-basic-concept-and-openings
{
    text-align:left;
    position: absolute;
    top: 30%;
    inline-size: 350px;
    overflow-wrap:break-word;
}

.p-piece-activity
    {
    text-align:left;
    position: absolute;
    top: 35%;
    inline-size: 350px;
    overflow-wrap:break-word;
    }

.p-pawn-structure
    {
    text-align:left;
    position: absolute;
    top: 50%;
    inline-size: 350px;
    overflow-wrap:break-word;
    }

    .p-pawn-space
    {
    text-align:left;
    position: absolute;
    top: 65%;
    inline-size: 350px;
    overflow-wrap:break-word;
    }

    .p-pawn-king-safety
    {
    text-align:left;
    position: absolute;
    top: 80%;
    inline-size: 350px;
    overflow-wrap:break-word;
    }


.openings-container
{
    position: absolute;
    top: 47%;
    margin-left: 55%;
    display: block;
    cursor: pointer;
    height: 50%;
    width: 50%;
    color: white;
}

.openings-container h4{
    border-style: solid;
}

.openings-container div{
   height: 40%;
}

.stratagy-figure-sicillian
{
    position: absolute;
    top: 20%;
    left: 65%;

}

.stratagy-figure-french
{
    position: absolute;
    top: 35%;
    left: 65%;

}

.stratagy-figure-ruy
{
    position: absolute;
    top: 50%;
    left: 65%;

}

.stratagy-figure-caro
{
    position: absolute;
    top: 65%;
    left: 65%;

}

.p-french
{
text-align:left;
position: absolute;
top: 45%;
inline-size: 350px;
overflow-wrap:break-word;
}

.p-ruy
{
text-align:left;
position: absolute;
top: 50%;
inline-size: 350px;
overflow-wrap:break-word;
}

.p-caro
{
text-align:left;
position: absolute;
top: 70%;
inline-size: 350px;
overflow-wrap:break-word;
}



.link-span-modal
{
    text-decoration: underline;
    
}

.link-span-modal:hover
{
    color:lightgrey;
    cursor: pointer;

}

/*************************************************Chess Clubs**************************************************************/


.chess-club-center-and-school-h3 {

    padding-top: 14%;
    font-weight: bold;
    
    
}

.chess-club-p{
    position: absolute;
    top: 27%;
    inline-size: 550px;
    overflow-wrap: break-word;
}

.chess-club-center-and-school-p{
    position: absolute;
    top: 63%;
    inline-size: 550px;
    overflow-wrap: break-word;
    
}


.chess-club-figure
{
    position: absolute;
    top: 10%;
    left: 68%;
    color: white;
    text-align: center;
}

.chess-club-images{
    border-style: solid;
    border-color: white;
    
}

.chess-club-center-and-school-figure
{
    position: absolute;
    top: 65%;
    left: 68%;
    color: white;
    text-align: center;
}


/******************************************************contact page***********************************************************/

.parent-contact-info
{
    position: relative;
  
}


.contact-figure{
    position: absolute;
    top: 30%;
    left: 70%;
    color: white;
    text-align: center;

}

.contact-figure-img{
    border-style: solid;
    border-color: white;
}

.contact-form{
    background-color: black;
    color: white;
    padding: 2%;
    position: absolute;
    top: 30%;
    margin-left: 5%;
}

.contact-paragraph{
    position: absolute;
    left: 25%;
    top: 40%;
}



/*************************************************media quary**************************************************************/

@media screen
and (min-width: 1200px)
and (max-width: 1600px)
and (-webkit-min-device-pixel-ratio: 1)
{
    header {
   
        display: flex;
        flex-wrap:wrap;
        align-items: center;
        text-transform: uppercase;
        background-color: rgb(74, 72, 72, 0.5);
        animation: fadein 2s ease-in;
    }

    li {
        list-style-type: none;
        display: inline-block;  
        margin-left: 30px;
    }

    h3 {
   
        padding-top: 10%;
        padding-left: 5%;
        font-weight: bold;
        text-transform: uppercase;
    }
    .navbar-header 
    {
        margin-left: 3%;
    }

    .famous-navbar-header {
        margin-left: 2.5%;
    }

    .p-history-info {
        position: absolute;
        top: 25%;
        inline-size: 600px;
        overflow-wrap: break-word;
        font-size: large;
    }

    .history-info-image {
        position: absolute;
        top: 25%;
        right: 2%;
    }

    .famous-h2 {
        padding: 5% 1%;
    }

    .famous-h3 {
       
        padding-top: 18%;
        font-weight: bold;
        
    }

    .p-famous-info {
        position: absolute;
        top: 30%;
        inline-size: 600px;
        overflow-wrap: break-word;
        font-size: large;
    }

    .p-second-famous-info {
        position: absolute;
        top: 68%;
        inline-size: 600px;
        overflow-wrap: break-word;
        font-size: large;
    }

    .second-famous-info-image {
        position: absolute;
        top: 68%;
        right: 18%;
    }

    .stratagies-h3 
    {
    
    position: absolute;
    top: 5%;
    right: 38%;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    }

    .p-stratagy-info 
    {
    position: absolute;
    top: 30%;
    inline-size: 600px;
    overflow-wrap: break-word;
    font-size: large;
    }

    .p-second-stratagy-info 
    {
    position: absolute;
    top: 30%;
    right: 0%;
    color: white;
    inline-size: 700px;
    overflow-wrap: break-word;
    font-size: large;
    }

    .chess-club-center-and-school-h3 {

      
        font-weight: bold;
        pointer-events: all;
        
    }
    
    .chess-club-p{
        position: absolute;
        top: 30%;
        inline-size: 550px;
        overflow-wrap: break-word;
    }
    
    .chess-club-center-and-school-p{
        position: absolute;
        top: 64%;
        inline-size: 550px;
        overflow-wrap: break-word;
        
    }
    
    
    .chess-club-figure
    {
        position: absolute;
        top: 10%;
        left: 65%;
        color: white;
        text-align: center;
    }
    
    .chess-club-images{
        border-style: solid;
        border-color: white;
        
    }
    
    .chess-club-center-and-school-figure
    {
        position: absolute;
        top: 65%;
        left: 65%;
        color: white;
        text-align: center;
    }
    

    .basic-concept-container
    {
        display: block;
        position: absolute;
        top: 47%;
        cursor: pointer;
        height: 50%;
        width: 50%;
        color: black;
    }
    .basic-concept-container h4{
        border-style: solid;
    }
    
    .basic-concept-container div{
       height: 40%;
    }
    
    
    
    .stratagy-figure-material-count
    {
        position: absolute;
        top: 20%;
        left: 65%;
    
    }
    
    .stratagy-figure-piece-activity
    {
        position: absolute;
        top: 30%;
        left: 65%;
    
    }
    
    .stratagy-figure-pawn-structure
    {
        position: absolute;
        top: 45%;
        left: 65%;
    
    }
    
    .stratagy-figure-space
    {
        position: absolute;
        top: 60%;
        left: 65%;
    
    }
    
    .stratagy-figure-king-safety
    {
        position: absolute;
        top: 70%;
        left: 65%;
    
    }

    .p-pawn-structure
    {
    text-align:left;
    position: absolute;
    top: 45%;
    inline-size: 350px;
    overflow-wrap:break-word;
    }

    .p-pawn-space
    {
    text-align:left;
    position: absolute;
    top: 60%;
    inline-size: 350px;
    overflow-wrap:break-word;
    }

    .p-pawn-king-safety
    {
    text-align:left;
    position: absolute;
    top: 70%;
    inline-size: 350px;
    overflow-wrap:break-word;
    }



    .openings-container
    {
        position: absolute;
        top: 47%;
        margin-left: 55%;
        display: block;
        cursor: pointer;
        height: 50%;
        width: 50%;
        color: white;
    }
    
    .openings-container h4{
        border-style: solid;
    }
    
    .openings-container div{
       height: 40%;
    }

    .stratagy-figure-sicillian
    {
        position: absolute;
        top: 20%;
        left: 65%;
    
    }
    
    .stratagy-figure-french
    {
        position: absolute;
        top: 30%;
        left: 65%;
    
    }
    
    .stratagy-figure-ruy
    {
        position: absolute;
        top: 45%;
        left: 65%;
    
    }
    
    .stratagy-figure-caro
    {
        position: absolute;
        top: 60%;
        left: 65%;
    
    }

    .p-french
    {
    text-align:left;
    position: absolute;
    top: 45%;
    inline-size: 350px;
    overflow-wrap:break-word;
    }

    .p-ruy
    {
    text-align:left;
    position: absolute;
    top: 50%;
    inline-size: 350px;
    overflow-wrap:break-word;
    }

    .p-caro
    {
    text-align:left;
    position: absolute;
    top: 70%;
    inline-size: 350px;
    overflow-wrap:break-word;
    }
    

    .landing-page-chess {
        margin-top: 14%;
        text-align: center;
        margin-right: 3%;
        animation: fadein 2s ease-in;
    }

    .knightdiv {
       
        animation: fadein 2s ease-in;
    }

    .modalbackground {
        display: none;
        z-index: 1;
        position: fixed;
        top: 0%;
        left: 0;
        right: 0;
        overflow: auto;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, rgb(255, 255, 255, 0.7), rgba(0, 0, 0, 0.7));
    }

    .king-modal-content-box {
        margin-top: 8%;
        padding-bottom: 5%;
        background-color: white;
        animation: fadeinmodal 2s ease-in;
    }

    .specific-chess-modal-content-box {
        margin-top: 11%;
        padding-bottom: 7%;
        background-color: white;
        animation: fadeinmodal 2s ease-in;
    }


    .castle-modal-content-box {
        margin-top: 12%;
        padding-bottom: 7%;
        background-color: white;
        animation: fadeinmodal 2s ease-in;
    }


    .inner-modal-content-box a:hover {
        color: lightgray;
    }

    .h1-modal-content-box {
        font-weight: 100;
        margin-left: 5%;
        font-size: 100px;
        text-transform: uppercase;
        letter-spacing: 5px;
    }

    .p-inner-modal-content-box {
        inline-size: 900px;
        overflow-wrap: break-word;
        font-size: x-large;
    }
    .close-modal-button
    {
    position:absolute;
    top: 20%;
    height: 4%;
    margin-left: 90%;
    border-style: solid;
    cursor: pointer;
    }

    .specific-close-modal-button
    {
    position:absolute;
    top: 25%;
    height: 4%;
    margin-left: 90%;
    border-style: solid;
    cursor: pointer;
    }

    .specific-rook-close-modal-button
    {
    position:absolute;
    top: 27%;
    height: 4%;
    margin-left: 90%;
    border-style: solid;
    cursor: pointer;
    }

    .position-figure-container
    {
    position:absolute;
    top: 33%;
    margin-left: 75%;
    text-align: center;
    }

    .position-pawn-figure-container
    {
    position:absolute;
    top: 30%;
    margin-left: 60%;
    text-align: center;
    }

    .position-rook-figure-container 
    {
        position: absolute;
        top: 35%;
        margin-left: 75%;
        text-align: center;
    }

    .contact-figure{
        position: absolute;
        top: 30%;
        left: 70%;
        color: white;
        text-align: center;

    }

    .contact-figure-img{
        border-style: solid;
        border-color: white;
    }

    .contact-form{
        background-color: black;
        color: white;
        padding: 2%;
        position: absolute;
        top: 30%;
        margin-left: 5%;
    }

   
}
                            
/*************************************************animations***************************************************************/



@keyframes fadein
{
    0% 
    {
        opacity: 0;
    }

    20% 
    {
        opacity: 0.2;
    }

    40% 
    {
        opacity: 1;
        
    }
    60%
    {
        opacity: 1;
    }

    80%
    {
        opacity: 1;
    }

    100% 
    {
        opacity: 1;
    }
}

@keyframes fadeinmodal 
{
    0% 
    {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    40% {
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
} 

@keyframes fadeinhover 
{
    0% 
    {
        opacity: 0.1;
    }

    20% 
    {
        opacity: 0.2;
    }

    40% 
    {
        opacity: 0.4;
    }

    60% 
    {
        opacity: 0.6;
    }

    80% 
    {
        opacity: 0.8;
    }

    100% 
    {
        opacity: 1;
    }
}




