
/* General style */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    --color-theme: #1417e4;
}

* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box; /*if we add border or padding, it doesn't affect the width of it. */
}

body {
    font-family: 'Roboto', sans-serif;
    height: 100vh;
    overflow: hidden; /*don't want scroll bar to appear.*/
    /* background-color: rgba(0, 255, 4, 0.5); */
    background-image: radial-gradient(at 30% 20%, rgb(237, 255, 122) 0, transparent 50%),
    radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.5) 0, transparent 50%),
    radial-gradient(at 0% 50%, hsla(355, 85%, 93%, 1) 0, transparent 50%),
    radial-gradient(at 80% 50%, hsla(340, 100%, 76%, 0.5) 0, transparent 50%),
    radial-gradient(at 0% 100%, hsla(22, 100%, 77%, 1) 0, transparent 50%),
    radial-gradient(at 80% 100%, hsla(242, 100%, 70%, 0.5) 0, transparent 50%),
    radial-gradient(at 0% 0%, hsla(343, 100%, 76%, 0.9) 0, transparent 50%);
    /* radial-gradient(at (position of center from the left) (position of center from the top), color) */
}

/* main */
.main-image {
    background-image: url(Images/Modal-BG.jpg);
    height: 100%;
    max-width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 1;
}

#open-btn {
    position: absolute;
    top: 70%;
    left: 10%;
    height: 60px;
    width: 230px;
    background: rgba(255,0,0,0.2);
    color: var(--color-theme);
    font-size: 0.6rem;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 3px var(--color-theme);
    padding: 5px;
    /* for hover */
    transition: 0.5s;
    cursor: pointer;
}

#open-btn:hover {
    background-color: white;
    font-style: italic;
    border: 1px solid var(--color-theme);
    /* font-weight: bold; */
}

/* to remove model while clicking on window */
#modal-container {
    display: none;
    /* at initial, there will be no modal container at display */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(0,0,0,0);
    /* change BG color while modal-container is on the screen */
}

#modal {
    background-color: rgba(255, 255, 255, 0.644);
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 100px;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0px 1px 3px #5364fb;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-theme);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: animatemodal;
    animation-duration: .4s;
}

#close-btn {
    font-size: 2rem;
    cursor: pointer;
    color: transparent;
    transition: all 0.8s;
}

#modal:hover #close-btn {
    color: var(--color-theme);
}
#close-btn:active {
    font-size: 3rem;
    color: rgb(39, 17, 17);
}

/* modal animation for smothly moving down */
@keyframes animatemodal {
    from {
        top: -300px;
        opacity: 0;
    }

    to {
        top: 50%;
        opacity: 1;
    }
}
