/* Importing Poppins font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    /* background: #d6d6d6; */
    background: #0077B5;
}

.main-box {
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%);
}

.main-box label {
    position: relative;
    background: #fff;
    height: 50px;
    width: 150px;
    border-radius: 35px;
    display: block;
    text-align: center;
    line-height: 50px;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    color: #0984e3;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    &:hover {
        letter-spacing: 1px;
    }
    &::before {
        content: "Cancel";
        position: absolute;
        height: 100%;
        width: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-radius: 35px;
        opacity: 0;
        pointer-events: none;
    }
}

#check{
    display: none;
}

#check:checked ~ label::before {
    opacity: 1;
    pointer-events: auto;
}

.icons {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    height: 110%;
    width: 140%;
    text-align: center;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    border-radius: 35px;
        box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.5);

    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    &::before {
        position: absolute;
        content: '';
        height: 18px;
        width: 18px;
        background: #fff;
        bottom: -9px;
        transform: rotate(45deg);
        box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.5);
    }
}

#check:checked ~ .icons {
    opacity: 1;
    pointer-events: auto;
    top: -84px;
}


.icons a {
    font-size: 22px;
    color: #0984e3;
    transition: all 0.3s ease;
    &:hover {
        font-size: 25px;
        transform: translateY(-2px);
    }
    &:first-child:hover {
        color: #0077B5;
    }
    &:nth-child(2):hover {
        color: #000;
    }
    &:nth-child(3):hover {
        color: #e1306c;
    }
    &:last-child:hover {
        color: #ff0000;
    }
}