/* RESET CSS */
/* KITA PAKAI DYNAMIC SIZE 1 REM = 16px */

/* FONTS */
@font-face {
    font-family: "Hack";
    src: url("/assets/fonts/Hack-Italic.ttf");
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "Hack";
    src: url("/assets/fonts/Hack-BoldItalic.ttf");
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: "Hack";
    src: url("/assets/fonts/Hack-Bold.ttf");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "Hack";
    src: url("/assets/fonts/Hack-Regular.ttf");
    font-weight: normal;
    font-style: normal;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;

    /** COLOR */
    --black: #000;
    --green: #22c022;
    --white: #fff;
    --gray: #3c4147;
    --dark-gray: #202123;
    scroll-behavior: smooth;

    /* border: red 1px solid; */
}

html,
body {
    font-family: "Hack", sans-serif;
    color: #fff;
}

body {
    line-height: 1.5;
    background: var(--black);
}

a {
    text-decoration: none;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* GLOBAL CLASS */
html {
    min-height: 100vh;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
}

.container {
    margin: 0 auto;
    padding: 3rem 1rem;
    max-width: 600px;
}

h1 {
    font-size: 2rem;
}

h2,
h2 span {
    font-size: 1.5rem;
}

h3,
h3 span {
    font-size: 1.17rem;
}

.green-text {
    color: var(--green) !important;
}

.red-text {
    color: red;
}

/* TARGET SITE FORM */
#target-site-section {
    /* border: 2px solid red; */
    font-family: "Hack", sans-serif;
}

.target-site-section--title {
    display: flex;

    align-items: center;
    justify-content: center;
}

.target-site-section--icon {
    width: 3rem;
    height: 3rem;
    margin: 1rem;
}

.target-site-section--button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

.target-site-section--button {
    background: transparent;
    color: var(--white) !important;
    border: 1px solid var(--green);
    border-radius: 3px;
    padding: 0.3125rem 2rem;
    font-size: 1.25rem;
    cursor: pointer;
}


.target-site-section--button:hover {
    background-color: var(--green);
}

.target-site-section--run-script {
    background: url("./assets/icons/run-button.jpeg") no-repeat center;
    overflow: visible;
    border:none !important;
    width:155px;
    max-width: 50%;
    height: 3rem;
    background-size: cover;
    cursor: pointer;

    margin-top: 1em;


    /* background-size: 2em; */
}

.target-site-section--run-script:hover {
    opacity: .9;
}

#target-site-form {
    text-align: center;
}

.target-site-section--form {
    /* border: 1px solid red; */

    display: grid;
    /* grid-template-columns: max-content max-content; */
    /* grid-gap: 1.25rem; */

    /* justify-content: center; */
    /* align-items: center; */


    /* overflow: hidden;
    overflow: -moz-hidden-unscrollable; */
}

.target-site-section--form label {
    text-align: left;
    /* margin-right: 1rem; */
    font-size: 1.25rem;
}

.target-site-section--form input {
    background-color: transparent;
    outline: none;
    border: 1px solid var(--green);
    color: var(--green);
    border-radius: 3px;
}

.target-site-section--form select {
    appearance: none;
    background: transparent;
    outline: none;
    border: 1px solid var(--green);
    border-radius: 3px;
    color: var(--green);

background: url("./assets/icons/chevron.png") no-repeat 95%;
    background-size: 1em;
}
.target-site-section--form select:disabled {
    background: url(./assets/icons/locked.png) no-repeat 95%;
    background-size: .825em;
}

.bantuan-button {
    display: flex;

    justify-content: right;
    align-items: center;
}

.bantuan-button img {
    width: 1.25em;
    height: 1.25em;
    margin-right: 0.5em;
}

.bantuan-button a {
    color: var(--white);
    opacity: 0.5;
    display: flex;
}

.bantuan-button a:hover {
    opacity: 0.8;
}

/* RTP */
#rtp-section {
    /* TODO: JANGAN LUPA GANTI KE NONE */
    display: none;
}

.rtp-section-active {
    display: initial !important;
}

.baca-section {
    padding: 2.25rem;
    /* background-color: var(--gray); */

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.625rem;
}

.baca-section p {
    color: rgb(110, 110, 110);
}

.baca-section .target-site-section--button {
    background-color: #000;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.target-site-section--button:hover {
    background-color: var(--green);
}

.pattern-section {
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
    gap: 1rem;
    border: var(--gray) solid 2px;
    border-radius: .75rem;
    padding: 1.5rem .75rem;
}

.pattern-section--table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;

    width: 100%;
    max-width: 490px;
    margin: 0 auto;
}

.pattern-section--row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-gap: 0.25rem;
    align-items: center;
}

.pattern-section--text {
    font-size: 1.25rem;
    font-weight: bold;
}

.pattern-section button {
    color: white;
    cursor: pointer;
    background-color: transparent;
    border: none;
    margin: 0 auto;
}

.pattern-section button:hover {
    opacity: 0.8;
}

.pattern-section--icons {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
}

.pattern-section--icons img {
    width: 2.5rem;
}

/* BANTUAN */
#bantuan-section {
    background-image: url("/assets/backgrounds/nuclear.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-blend-mode: darken;
}

.bantuan-content {
    color: var(--green);
}

.bantuan-content li,
.bantuan-content p {
    font-size: 1.25rem;
    margin-bottom: 0.625rem;
}

/* CONSOLE */
.console-animation {
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    background-color: var(--black);

    display: none;
    padding: 0rem 2.5rem;
    left: -0.8rem;

    animation: 5s ease-in;
}

.console-animation-active {
    display: initial;
}

.console-animation p {
    font-family: monospace;
    font-weight: bold;
    font-size: 4vh;
    margin: 0.3125rem;
    padding: 0;
    line-height: 1;
    color: limegreen;
    text-shadow: 0px 0px 10px limegreen;
}

.message {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;

    height: 100vh;
    width: 100vw;
    z-index: 100;
}

.message p {
    text-transform: uppercase;
    padding: 2rem;
    color: white;
    background-color: red;

    box-shadow: 0 0 30px red;
    text-shadow: 0 0 20px white;
    text-align: center;

    animation-name: blink;
    animation-duration: 0.6s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: linear;
}

/* ALERT */
.alert {
    z-index: 1000;

    background-color: rgba(0, 0, 0, 0.85);
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    display: none;
    /* opacity: 0; */
}

.alert-active {
    display: initial;
}

.alert-container {
    margin: 0 auto;
    background-color: var(--black);
    max-width: 500px;
    padding: 2rem;
    left: -0.8rem;

    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    box-shadow: 0 0 30px red;
}

.alert-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    width: 2rem;
}

.alert-close-button:hover {
    opacity: 0.8;
}

@keyframes blink {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#loader-alert .alert-container {
    align-items: center;
    text-align: center;
}

.loader {
    border: 12px solid #f3f3f3; /* Light grey */
    border-top: 12px solid var(--green); /* Blue */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* BACK TO TOP */
#back-to-top-arrow {
    background-color: var(--green);
    border: none;
    padding: 1rem .75rem;
    position: fixed;
    right: 3rem;
    bottom: 3rem;
    border-radius: 10%;

    cursor: pointer;
    display: none;
}

#back-to-top-arrow:hover {
    opacity: .9;
}

#back-to-top-arrow img {
    width: 1.5rem;
}

/* FOOTER */
footer .container {
    display: flex;
    justify-content: center;
}

footer .container > * {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2.5em;
}

footer .container a {
    color: var(--white);
}

footer .container a:hover {
    opacity: 0.8;
}

footer .container img {
    width: 1.25em;
    height: 1.25em;
    margin-right: 0.5em;
}

/* MEDIA QUERY */
@media (min-width: 320px) {
    * {
        font-size: 12px;
    }
}

@media (min-width: 481px) {
    * {
        font-size: 13px;
    }
}

@media (min-width: 641px) {
    * {
        font-size: 14px;
    }
}

@media (min-width: 700px) {
    * {
        font-size: 16px;
    }
}
