/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face { font-family: "cd"; src: url("../assets/fonts/Christopher Done.ttf"); }
@font-face { font-family: "dh"; src: url("../assets/fonts/Dream Head.otf"); }
@font-face { font-family: "cr"; src: url("../assets/fonts/ChelaOne-Regular.ttf"); }
@font-face { font-family: "ch"; src: url("../assets/fonts/ChargerBold-gXaY.otf"); }


html {
    height: 100%;
    min-height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body {
    background-color: rgb(22, 22, 22);
    background-image: url("../assets/bgs/bg2-2.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    min-height: 100%;
}

.backBtn {
    position: absolute;
    top: 12px;
    left: 18px;
    font-family: "cr";
    text-decoration: none;
    font-size: 30px;
    border: 3px solid;
    padding: 10px 15px;
    background-color: rgb(29, 29, 29);
    color: rgb(247, 226, 0);
}

.container {
    width: 70%;
    background-color: rgba(1, 1, 1, 0.953);
    min-height: auto;
    height: auto;
}

.title {
    margin-top: 90px;
    color: rgb(233, 233, 233);
    font-family: "dh";
    font-size: 60px;
    text-shadow: 2px 2px 4px black,
    -2px -2px 4px black;
    filter: drop-shadow(0 0 10px rgb(218, 100, 32))
    drop-shadow(0 0 20px rgba(218, 156, 32, 0.896));
}

.userInput {
    margin-top: 25px;
}

.input {
    font-family: "ch";
    font-size: 20px;
}

.pen-wrap {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pendulum {
    width: 80px;
    transform-origin: top center;
    display: block;
}

#result {
    margin-top: 12px;
    font-family: "cr";
    font-size: 46px;
    color: white;
    text-shadow: 2px 2px 4px rgb(120, 120, 120),
    -2px -2px 4px rgb(99, 99, 99);
    padding-bottom: 20px;
}

#readBtn {
    margin-top: 22px;
    font-family: "cd";
    font-size: 28px;
    padding: 12px;
    color: rgb(235, 161, 0);
    background-color: rgb(40, 40, 40);
    border: 3px solid;
    cursor: pointer;
}

.leftRight {
	animation: swingLR 2s ease-in-out infinite alternate;
}

@keyframes swingLR {
	0% { transform: rotate(-20deg); }
	100% { transform: rotate(20deg); }
}


.frontBack {
	animation: swingFB 2s ease-in-out infinite alternate;
}

@keyframes swingFB {
	0% { transform: rotateX(25deg); }
	100% { transform: rotateX(-25deg); }
}


.uncertain {
	animation: wobble 1s ease-in-out infinite;
}

@keyframes wobble {
	0%   { transform: rotate(-3deg); }
	25%  { transform: rotate(2deg); }
	50%  { transform: rotate(-1deg); }
	75%  { transform: rotate(1deg); }
	100% { transform: rotate(-3deg); }
}

.flash {
    animation: pop 0.4s ease;
}

@keyframes pop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}


/* Responsive */
@media (min-width: 601px) and (max-width: 1100px) {
    .backBtn {
        top: 20px;
        left: 20px;
        font-size: 32px;
    }

    .container {
        margin-top: -35px;
        width: 85%;
        background-color: rgba(1, 1, 1, 0.95);
    }

    .title {
        margin-top: 80px;
        padding: 0% 30px;
        font-size: 62px;
    }

    .userInput {
        margin-top: 42px;
    }

    .input {
        font-size: 24px;
    }

    .pen-wrap {
        margin-top: 20px;
    }

    .pendulum {
        width: 85px;
    }

    #readBtn {
        font-size: 28px;
        margin-top: 28px;
        padding: 14px;
    }

    #result {
        font-size: 48px;
        margin-top: 18px;
        padding-bottom: 30px;
    }
}


@media (max-width: 600px) {
    .backBtn {
        font-size: 20px;
        top: 8px;
        left: 42px;
    }

    .container {
        width: 85%;
        min-height: 100vh;
        height: auto;
    }

    .title {
        font-size: 38px;
        margin-top: 84px;
        filter: drop-shadow(0 0 8px rgb(218, 100, 32))
        drop-shadow(0 0 18px rgba(218, 156, 32, 0.896));
        padding: 5px 12px;
    }

    .userInput {
        margin-top: 26px;
    }

    .input {
        font-size: 18px;
    }

    .pendulum {
        width: 67px;
    }

    .pen-wrap {
        margin-top: 8px;
    }

    #result {
        font-size: 37px;
        margin-top: 15px;
    }

    #readBtn {
        font-size: 21px;
        margin-top: 24px;
        padding: 10px;
    }
}