body {
    background-color: rgb(27, 27, 27);
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgb(216, 216, 216) rgb(27, 27, 27);
    scrollbar-width: 5px;
}

a, a:hover, a:focus, a:active {
    text-decoration: none;
    color: inherit;
    transition: .2s;

}

button {
    font: inherit;
    cursor: pointer;

}

.wikiLink {
    background-color: black;
    color: azure;
    transition: .2s;
}

.elementsBox button {
    height: 100%;
    width: 100%;
    float: left;
    font: inherit;
    background: none;
    color: inherit;
    padding: 0;
    top: 0;
    border: none;
}

#main {
    height: auto;
    width: 1500px;
    margin: 5% auto;
}

.elementsBox {
    height: 70px;
    width: 70px;
    margin: 3px;
    border: solid 2px;
    float: left;
    
}

.atomicNo {
    font-size: 8pt;
    font-weight: 700;
    margin: 5 0 0 5;
    float: left;
}

.atomicMass {
    font-size: 8pt;
    font-weight: 700;
    margin: 5 5 0 0;
    float: right;
}
.atomName {
    font-size: 8pt;
    font-weight: 700;
    padding: 10px 0 0 0;
    margin: -25px 0 0 0;
}

.atomSymbol {
    font-size: 15pt;
    font-weight: 700;
    text-align: center;
    padding: 0;
}

.blank {
    background-color: none;
    height: 70px;
    width: 70px;
    margin: 5px;
    display: block;
    text-align: center;
    float: left;
}

.row {
    margin: auto;
    align-self: center;
    background-color: palegoldenrod;
    float: left;
}

.topSection h1 {
    height: 70px;
    width: 70px;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 5px;
    padding: auto;
    margin-top: 50px;
    transition: .2s;
    text-align: center;
}

.topSection h1:hover {
    background-color: rgb(27, 27, 27);
    transition: .2s;
}

.topSection {
    top: 0;
    border-bottom: solid 2px white;
    margin: 0 10px;
    color: white;
    width: 93%;
    padding: 20px 0;
}


#closePopup {
    background-color: rgb(34, 34, 34);
    position: fixed;
    height: 40px;
    width: 40px;
    border: none;
    border-radius: 20px;
    margin: 10px;
    color: white;
    transition: .2s;
}

#closePopup:hover , #closePopup:active{
    background-color: crimson;
    color: white;
    transition: .2s;

}
@media only screen  and (min-width : 1080px) {
            
    
    .popup {
        position: absolute;
        height: auto;
        width: 60%;
        top: 5%;
        z-index: 2;
        border-radius: 20px;
        float: left;
        text-align: left;
        padding-bottom: 4%;
    }
    
    #blurLayer {
        width: 100%;
        height: 100%;
        position: absolute;
        background-color: rgba(0, 0, 0, 0.288);
        top: 0;
        right: 0;
        border: none;
    }
    
    

    .middleSummary {
        width: 60%;
        float: left;
        display: inline;
        padding:  1% 0 1% 1%;
        font-size: 15pt;
    }
    
    .quickInfo {
        width: 24%;
        float: right;
        padding: 1%;
        border-left: solid 3px white;
        margin: 10px 0;
        font: inherit;
    }
    
    .bottomSection {
        float: left;
        width: 60%;
        padding: 0 1% 1% 1%;
        word-wrap: break-word;
        
    }
    
    

    .popup {
        left:0;
        right:0;
        margin:auto;
        height: 75%;
        width: 75%;
        overflow-y: scroll;
    }
}


/* inline grid for small display*/

@media only screen  and (max-width : 1080px) {
    .elementsBox {
        width: 98%;
    }
	
    
    .atomicMass {
        font-size: 15pt;
        padding: 0  20px;
    }

    .atomicNo {
        float: left;
        font-size: 15pt;
        padding: 0  20px;
    }

    .atomName {
        font-size: 15pt;
        float: left;
        margin: 0;
    }

    .atomSymbol {
        float: left;
        margin: 0;
        padding: 0 20px;
    }
    #main {
        display: unset;
        margin: 10px;
        padding: 10%;
    }

    .atomSymbol {
        font-size: 25pt;
    }

    .blank {
        display: none;
    }

    .elementsBox:hover, .elementsBox:active, .elementsBox:active{
        transform: none;
        transition: .2s;

    }
	
	.popup {
        position: fixed;
		width: 100%;
		height: 100%;
        border-radius: unset;
        top: 0;
        left: 0;
        overflow-x:hidden;
        overflow-y: auto;
        text-align: center;
	}

    #closePopup {
        position: fixed;
        right: 10px;
    }

    .topSection h1 {
        margin: auto;    
    }


    .middleSummary {
        width: 93%;
        padding: 20px;
    }
    
    .quickInfo {
        width: 93%;
        padding: 20px;
    }
    
    .bottomSection {
        width: 93%;
        padding: 20px;
        word-wrap: break-word;
    }


}