* {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    margin:0;
    padding: 0;
    font-size: 1.6rem;
}

main {
    width: 800px;
    height: 300px;
    margin: auto;
    background: #CCCCCC;
}

#modal {
    display: flex;
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000000CC;
    color: pink;
    opacity: 0.8;
    justify-content: center;
    align-items: center;
    transition: all ease 0.6s;
    transform: scale(0) rotate(1080deg);
    border-radius: 50%;
}

#modal.active {
    display: flex;
    top: 0;
    left: 0;
    transform: scale(1) rotate(0deg);
    border-radius: 0;
}

#modal .modal-inner {
    display:flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: black;
    color: white;
    width: 30rem;
}

#modal .modal-close {
    width: 20%;
    border: 0;
    background: red;
    color: white;
    cursor: pointer;
}

#modal .modal-close:hover {
    box-shadow: 0px 0px 1px 1px yellow;
}

#modal .modal-inner h2 {
    background-color: darkkhaki;
    width: 80%;
    margin:0;
    padding: 1rem;
}

#modal .modal-inner p {
    margin-top: 0;
    padding:1rem;
}