Professional Documents
Culture Documents
DOCTYPE html>
<html>
<head>
<meta name="viewport"
content="width=device-width, initial-scale=1">
<style>
@import url('https://fonts.googleapis.com/css2?
family=Roboto:wght@400;500;700;900&display=swap');
*,
*::before,
*::after {
box-sizing: border-box;
body{
font-weight: 500;
font-size: 15px;
line-height: 1.4;
color: #fff;
background-color: green;
overflow-x: hidden;
background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1462889/pat-back.svg');
background-position: center;
background-repeat: repeat;
background-size: 4%;
width: 100%;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-ms-flex-pack: center;
justify-content: center;
padding-top: 100px;
padding-bottom: 300px;
.sec-center {
position: relative;
max-width: 100%;
text-align: center;
z-index: 200;
[type="checkbox"]:checked,
[type="checkbox"]:not(:checked){
position: absolute;
left: -9999px;
opacity: 0;
pointer-events: none;
.dark-light:checked + label,
.dark-light:not(:checked) + label{
position: fixed;
top: 40px;
right: 40px;
z-index: 20000;
display: block;
border-radius: 50%;
width: 46px;
height: 46px;
cursor: pointer;
.dark-light:checked + label{
transform: rotate(360deg);
.dark-light:checked + label:after,
.dark-light:not(:checked) + label:after{
position: absolute;
content: '';
top: 1px;
left: 1px;
overflow: hidden;
z-index: 2;
display: block;
border-radius: 50%;
width: 44px;
height: 44px;
background-color: #102770;
background-image: url('https://assets.codepen.io/1462889/moon.svg');
background-repeat: no-repeat;
background-position: center;
transition: all 200ms linear;
opacity: 0;
.dark-light:checked + label:after {
opacity: 1;
.dark-light:checked + label:before,
.dark-light:not(:checked) + label:before{
position: absolute;
content: '';
top: 0;
left: 0;
overflow: hidden;
z-index: 1;
display: block;
border-radius: 50%;
width: 46px;
height: 46px;
background-color: #48dbfb;
background-image: url('https://assets.codepen.io/1462889/sun.svg');
background-repeat: no-repeat;
background-position: center;
.dark-light:checked + label:before{
background-color: #000;
.light-back{
position: fixed;
top: 0;
left: 0;
z-index: 1;
background-color: #fff;
overflow: hidden;
background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1462889/pat-back.svg');
background-position: center;
background-repeat: repeat;
background-size: 4%;
height: 100%;
width: 100%;
opacity: 0;
.dark-light:checked ~ .light-back{
opacity: 1;
.dropdown:checked + label,
.dropdown:not(:checked) + label{
position: relative;
font-weight: 500;
font-size: 15px;
line-height: 2;
height: 50px;
border-radius: 4px;
width: 220px;
letter-spacing: 1px;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
align-items: center;
-webkit-justify-content: center;
-moz-justify-content: center;
-ms-justify-content: center;
justify-content: center;
-ms-flex-pack: center;
text-align: center;
border: none;
background-color: #ffeba7;
cursor: pointer;
color: #102770;
background-color: #102770;
color: #ffeba7;
.dropdown:checked + label:before,
.dropdown:not(:checked) + label:before{
position: fixed;
top: 0;
left: 0;
content: '';
width: 100%;
height: 100%;
z-index: -1;
cursor: auto;
pointer-events: none;
.dropdown:checked + label:before{
pointer-events: auto;
font-size: 24px;
margin-left: 10px;
transform: rotate(180deg);
font-size: 24px;
margin-left: 10px;
.section-dropdown {
position: absolute;
padding: 5px;
background-color: #111;
top: 70px;
left: 0;
width: 100%;
border-radius: 4px;
display: block;
z-index: 2;
opacity: 0;
pointer-events: none;
transform: translateY(20px);
background-color: #fff;
.dropdown:checked ~ .section-dropdown{
opacity: 1;
pointer-events: auto;
transform: translateY(0);
.section-dropdown:before {
position: absolute;
top: -20px;
left: 0;
width: 100%;
height: 20px;
content: '';
display: block;
z-index: 1;
.section-dropdown:after {
position: absolute;
top: -7px;
left: 30px;
width: 0;
height: 0;
content: '';
display: block;
z-index: 2;
a{
position: relative;
color: #fff;
font-weight: 500;
font-size: 15px;
border-radius: 2px;
padding: 5px 0;
padding-left: 20px;
padding-right: 15px;
margin: 2px 0;
text-align: left;
text-decoration: none;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
align-items: center;
justify-content: space-between;
-ms-flex-pack: distribute;
a:hover {
color: #102770;
background-color: #ffeba7;
color: #ffeba7;
background-color: #102770;
a .uil {
font-size: 22px;
.dropdown-sub:checked + label,
.dropdown-sub:not(:checked) + label{
position: relative;
color: #fff;
font-weight: 500;
font-size: 15px;
border-radius: 2px;
padding: 5px 0;
padding-left: 20px;
padding-right: 15px;
text-align: left;
text-decoration: none;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
align-items: center;
justify-content: space-between;
-ms-flex-pack: distribute;
cursor: pointer;
font-size: 22px;
transform: rotate(135deg);
.dropdown-sub:checked + label:hover,
.dropdown-sub:not(:checked) + label:hover{
color: #102770;
background-color: #ffeba7;
color: #102770;
color: #ffeba7;
background-color: #102770;
.section-dropdown-sub {
position: relative;
display: block;
width: 100%;
pointer-events: none;
opacity: 0;
max-height: 0;
padding-left: 10px;
padding-right: 3px;
overflow: hidden;
.dropdown-sub:checked ~ .section-dropdown-sub{
pointer-events: auto;
opacity: 1;
max-height: 999px;
.section-dropdown-sub a {
font-size: 14px;
.section-dropdown-sub a .uil {
font-size: 20px;
.logo {
position: fixed;
top: 50px;
left: 40px;
display: block;
z-index: 11000000;
background-color: transparent;
border-radius: 0;
padding: 0;
transition: all 250ms linear;
.logo:hover {
background-color: transparent;
.logo img {
height: 26px;
width: auto;
display: block;
filter: brightness(10%);
.logo {
top: 30px;
left: 20px;
.dark-light:checked + label,
.dark-light:not(:checked) + label{
top: 20px;
right: 20px;
</style>
</head>
<body>
<div class="light-back"></div>
</a>
<div class="sec-center">
<div class="section-dropdown">
<div class="section-dropdown-sub">
</div>
</div>
</div>
<div class="sec-center1">
</div>
</body>
</html>