* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: consolas;
}

body {
    width: 100%;
    height: auto;
    overflow-x: hidden;
}

/*Переход по страницам*/

.header {
    position: fixed;
    z-index: 1000;
    display: flex;
    width: 100%;
    background: rgb(102, 0, 204);
    padding: 15px 0;
}

.navigation {
    display: none;
}

.conteiner1 {
    width: 700px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.conteiner1 .btn {
    position: relative;
    width: 210px;
    height: 50px;
    margin: 5px;
}

.conteiner1 .btn a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #fff;
    z-index: 1;
    font-weight: 400;
    letter-spacing: 1px;
    text-decoration: none;
    overflow: hidden;
    transition: 0.5s;
    backdrop-filter: blur(15px);
}

.conteiner1 .btn:hover a {
    letter-spacing: 3px;
}

.conteiner1 .btn a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
}

.conteiner1 .btn::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -5px;
    width: 30px;
    height: 10px;
    background: #f00;
    border-radius: 10px;
    transition: 0.5s;
    transition-delay: 0s;
}

.conteiner1 .btn:hover::before {
    bottom: 0;
    height: 50%;
    width: 80%;
    border-radius: 30px;
    transition-delay: 0.5s;
}

.conteiner1 .btn::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -5px;
    width: 30px;
    height: 10px;
    background: #f00;
    border-radius: 10px;
    transition: 0.5s;
    transition-delay: 0s;
}

.conteiner1 .btn:hover::after {
    top: 0;
    height: 50%;
    width: 80%;
    border-radius: 30px;
    transition-delay: 0.5s;
}

.conteiner1 .btn:nth-child(1)::before,
.conteiner1 .btn:nth-child(1)::after {
    background: #ff1f71;
    box-shadow: 0 0 5px #ff1f71,
        0 0 15px #ff1f71,
        0 0 30px #ff1f71,
        0 0 60px #ff1f71;
}

.conteiner1 .btn:nth-child(2)::before,
.conteiner1 .btn:nth-child(2)::after {
    background: #2bd2ff;
    box-shadow: 0 0 5px #2bd2ff,
        0 0 15px #2bd2ff,
        0 0 30px #2bd2ff,
        0 0 60px #2bd2ff;
}

.conteiner1 .btn:nth-child(3)::before,
.conteiner1 .btn:nth-child(3)::after {
    background: #1eff45;
    box-shadow: 0 0 5px #1eff45,
        0 0 15px #1eff45,
        0 0 30px #1eff45,
        0 0 60px #1eff45;
}

/*Элементы*/

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(#e91e63, #ffc107);
    clip-path: circle(20% at 35% 25%)
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(50deg, #4dff03, #00d0ff);
    clip-path: circle(20% at 65% 85%)
}

.section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #1d061a;
}

.conteiner2 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 100px 0 0 0 ;
    
    
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    z-index: 10;
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.2);
}

.conteiner2 .calculator {
    position: relative;
    display: grid;
}

.conteiner2 .calculator .value {
    grid-column: span 4;
    width: 300px;
    height: 140px;
    text-align: right;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 30px;
    background: transparent;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.conteiner2 .calculator span {
    display: grid;
    place-items: center;
    width: 75px;
    height: 75px;
    color: #fff;
    font-weight: 400;
    cursor: pointer;
    font-size: 20px;
    user-select: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.5s;
}

.conteiner2 .calculator span:hover {
    transition: 0s;
    background: rgba(255, 255, 255, 0.05);
}

.conteiner2 .calculator span:active {
    background: #14ff47;
    color: #111;
    font-size: 24px;
    font-weight: 500;
}

.conteiner2 .calculator .clear {
    grid-column: span 2;
    width: 150px;
    background: rgba(255, 255, 255, 0.2);
}

.conteiner2 .calculator .plus {
    grid-row: span 2;
    height: 150px;
    background: rgba(255, 255, 255, 0.2);
}

.equal {
    background: rgba(255, 255, 255, 0.05);
}
