/**Typeo CSS Start**/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
* {
box-sizing: border-box;
}
body {
margin: 0px;
}
.text-center {
text-align: center;
}
.page-width {
max-width: 1280px;
width: 100%;
padding: 0px 15px;
margin: auto;
}
/**Typeo CSS End**/
.plans-scn, .plans-scn * {
--page-width: 1280px;
--base-clr: #444444;
--base-fm: "Poppins", sans-serif;
--base-fs: 16px;
--title-fs: 35px;
--white-clr: #ffffff;
--black-clr: #000000;
--theme-clr: #FF4820;
}
.plans-scn {
width: 100%;
padding: 50px 0px;
font-family: var(--base-fm);
font-size: var(--base-fs);
color: var(--base-clr);
text-align: center;
}
.plans-top-prt {
max-width: 820px;
margin: auto;
}
.plans-scn h2 {
font-size: var(--title-fs);
margin: 0px;
}
.my-switch-option {
display: flex;
flex-flow: row wrap;
justify-content: center;
font-size: var(--base-fs);
align-items: center;
padding: 10px 0px;
}
.my-switch-btn {
width: 80px;
margin: 0px 10px;
border: #ccc 1px solid;
height: 30px;
border-radius: 30px;
cursor: pointer;
position: relative;
}
.my-switch-btn:before {
content: '';
position: absolute;
left: 3px;
top: 2px;
width: 24px;
height: 24px;
border-radius: 100%;
background-color: #161a34;
transition: 0.5s all;
}
.flatoff {
padding: 3px 14px 2px 14px;
border: #425df9 1px solid;
margin-left: 9px;
display: inline-block;
border-radius: 24px;
line-height: normal;
color: #425df9;
font-size: 14px;
}
.my-switch-btn.switch-active:before {
left: calc(100% - 26px);
}
.plans-list {
width: calc(100% + 30px);
display: flex;
flex-flow: row wrap;
margin-left: -15px;
margin-top: 70px;
}
.plans-list .plans-item {
position: relative;
width: calc(33.33% - 30px);
margin: 15px;
padding: 25px 15px;
color: var(--base-clr);
border-radius: 10px;
border: #f3f3f3 1px solid;
box-shadow: rgba(0, 0, 0, 0.1) 0 0 12px;
background-color: var(--white-clr);
}
.most-p-txt {
background-color: #425df9;
color: var(--white-clr);
padding: 9px;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
border-radius: 8px 8px 0 0;
min-height: 40px;
display: flex;
flex-flow: row wrap;
align-items: center;
justify-content: center;
text-transform: uppercase;
}
.plans-list .plans-item.most-p-item {
background-color: #161a34;
color: var(--white-clr);
padding-top: 66px;
margin-top: -30px;
}
.plans-scn .itemplan {
font-size: 24px;
margin-bottom: 10px;
display: inline-block;
width: 100%;
}
.itemprice {
font-size: 40px;
font-weight: 700;
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: center;
}
.itemprice * {
font-weight: 400;
}
.my-txt {
font-size: 20px;
margin-left: 5px;
display: flex;
flex-flow: row wrap;
}
.y-price, .y-txt {
display: none;
}
.plan-itemyearly .y-price, .plan-itemyearly .y-txt {
display: block;
}
.plan-itemyearly .m-price, .plan-itemyearly .m-txt {
display: none;
}
.plans-features {
width: 100%;
max-width: 330px;
margin: 10px auto 0px auto;
}
.plans-features .f-item {
width: 100%;
padding: 10px;
}
.plans-features .f-item:nth-child(2n+2) {
background-color: rgba(0, 0, 0, 0.1);
}
.plans-scn .planbtn {
border: var(--black-clr) 2px solid;
color: var(--black-clr);
padding: 10px 26px;
min-width: 200px;
display: inline-block;
text-decoration: none;
margin-top: 30px;
font-weight: 500;
border-radius: 4px;
transition: 0.5s all;
}
.plans-scn .planbtn:hover {
background-color: var(--black-clr);
color: var(--white-clr);
}
.plans-scn .most-p-item .planbtn {
border-color: var(--white-clr);
color: var(--white-clr);
}
.plans-scn .most-p-item .planbtn:hover {
border-color: var(--white-clr);
background-color: var(--white-clr);
color: var(--black-clr);
}
@media(max-width:1200px) {
.plans-scn {
padding: 30px 0px;
}
.plans-list {
width: calc(100% + 10px);
margin-left: -5px;
margin-top: 40px;
}
.plans-list .plans-item {
position: relative;
width: calc(33.33% - 10px);
margin: 5px;
padding: 25px 10px;
}
}
@media(max-width:767px) {
.plans-scn h2 {
font-size: calc(var(--title-fs) - 6px);
}
.plans-list {
width: 100%;
margin-left: 0px;
margin-top: 20px;
}
.plans-list .plans-item {
position: relative;
width: 100%;
margin: 10px 0px;
}
.plans-list .plans-item.most-p-item {
padding-top: 66px;
margin-top: 10px;
}
.itemprice {
font-size: 30px;
}
}
const mySwitch = document.querySelector(".my-switch-btn");
mySwitch.addEventListener("click", function() {
mySwitch.classList.toggle("switch-active");
let itemplan = document.querySelectorAll(".plans-list .plans-item");
itemplan.forEach(function(e) {
e.classList.toggle("plan-itemyearly");
});
});