Проблема была проста: у меня был неправильный файл 'styles. css', открытый в моем редакторе, и я добавил класс вместо предполагаемых стилей. css файл.
Фактический CSS:
.boxStyle {
height: 245px;
width: 245px;
background-color: rgb(139, 219, 215);
margin-left: auto;
margin-right: auto;
margin-bottom: 20px;
background-image:
-webkit-radial-gradient(100% 10%,circle,rgb(214, 20, 166),transparent),
-webkit-radial-gradient(80% 50%,circle,rgba(29, 191, 191, 0.93),#1ba3e500),
-webkit-radial-gradient(10% 10%, 40em 40em,#3da3fa,transparent)
;
border: 1px solid #000;
border-radius: 10px;
}
.blueBox {
background-image:
-webkit-radial-gradient(100% 10%,circle,rgba(54, 176, 247, 0.658),transparent),
-webkit-radial-gradient(80% 50%,circle,rgba(241, 245, 21, 0.945),#1ba3e500),
-webkit-radial-gradient(10% 10%, 40em 40em,#055daa,transparent)
;
}
.purpleBox {
background-image:
-webkit-radial-gradient(100% 10%,circle,rgb(214, 20, 166),transparent),
-webkit-radial-gradient(80% 50%,circle,rgba(29, 191, 191, 0.93),#1ba3e500),
-webkit-radial-gradient(10% 10%, 40em 40em,#3da3fa,transparent)
;
}
.centerBtns {
text-align: center;
}
.btnStyle {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
cursor: pointer;
font-weight: bold;
color: black;
border: 1px solid black;
border-radius: 10%;
opacity: .8;
background-color: rgb(46, 115, 243);
margin: 5px;
}
.btnText {
color: black;
opacity: 1;
}
.btnStyle:hover {
opacity: 1;
-webkit-transform: scale(1.3);
-ms-transform: scale(1.3);
transform: scale(1.3);
}
.growBoxAnimate {
-webkit-transform: scale(1.3);
-ms-transform: scale(1.3);
transform: scale(1.3);
}
.fade
{
opacity: 0.5;
}
.buttonfx{
color: black;
outline: none;
background: transparent;
letter-spacing: 0.0625em;
padding: 7px 10px;
text-transform: uppercase;
font: bold 16px 'Bitter', sans-serif;
line-height: 2;
position: relative;
display: inline-block;
margin-right: 20px;
margin-bottom: 20px;
cursor: pointer;
text-decoration: none;
overflow: hidden;
transition: all .5s;
}
.buttonfx:before,
.buttonfx:after{
content: '';
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
height: 100%;
background: #107e8d; /* hover background color */
z-index: -1;
transform: translate3D(0,-100%,0);
transition: all .5s;
}
.buttonfx:before{
background: #fafcd6; /* default background color */
z-index: -2;
transform: translate3D(0,0,0);
}
.buttonfx:hover:after{
transform: translate3D(0,0,0);
transition: all .5s;
}
.doubletake:before,
.doubletake:after{
width: 200%;
background: #18b8e0d7;
transform-origin: 0 bottom;
transform: translate3D(-50%,0,0) rotate(-50deg);
}
.doubletake:before{
opacity: .4;
}
.doubletake:hover:before,
.doubletake:hover:after{
transform: rotate(0deg);
transition: all .25s;
}
.doubletake:hover:after{
transition-delay: .25s;
}
.textDescription {
text-align: center;
margin-top: 10px;
margin-right: auto;
margin-left: auto;
font: bold 22px 'Bitter', sans-serif;
}
.noselect {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
-moz-user-select: -moz-none;
}
.active {
border: 2px solid #000;
}