*, *::before, *::after {
    box-sizing: border-box;  
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a0a;
    color: #f0f0f0;
}

/* sections */
.intro, .ad-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 .5em;
}

.intro {
    margin-top: 0;
    background-color: #111111;
    background-image: none;
    color: white;
    border-bottom: 2px solid #F0B429;
}

.ad-input {
    margin: 1em 1em 0 1em;
}

.ad-output {
    display: none;
    width: 340px;
    margin: 1em auto;
    border: 3px solid #F0B429;
    padding: 1em;
    border-radius: 15px;
    background-color: #111111;
    color: #f0f0f0;
    line-height: 1.8;
    white-space: pre-wrap;
}

h1 {
    font-size: 2.2rem;
    margin-top: .5em;
    color: #F0B429;
    letter-spacing: 0.1em;
}

h2, h3, h4 {
    text-align: center;
    font-weight: 300;
    margin: 0 0 .5em 0;
    padding: 0 2rem;
    color: #aaaaaa;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1rem;
    font-weight: 400;
    color: #F0B429;
}

strong {
    font-weight: 700;
    color: #F0B429;
}

textarea, input[type="text"] {
    border: 1px solid #F0B429;
    width: 280px;
    padding: 15px 15px;
    border-radius: 5px;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

textarea {
    resize: none;
    height: 75px;
}

input::placeholder, textarea::placeholder {
    opacity: 0.4;
    color: #F0B429;
}

button {
    margin-top: 1em;
    background: #F0B429;
    width: 280px;
    padding: 15px 0;
    color: #0a0a0a;
    border: none;
    border-radius: 5px;
    font-family: 'Poppins';
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #d49e20;
    transition: 0.3s;
}

label {
    margin-bottom: -.6em;
    margin-top: .6em;
    z-index: 1;
    background-color: #0a0a0a;
    padding: 0 .5em;
    color: #F0B429;
}

@media (min-width: 600px) {
    main {
        display: flex;
    }
    
    .intro {
        height: 100vh;
        max-width: 50%;
        justify-content: space-around;
        background-position: bottom 50% right;
    }
    
    .ad-input {
        justify-content: center;
        align-items: center;
        margin-top: unset;
        width: 50%;
    }
    
    p {
        background-color: #1a1a1a;
        color: #F0B429;
        padding: .3em;
        border-radius: 5px;
    }
}

.rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    text-align: center;
}

.like, .dislike {
    cursor: pointer;
    font-size: 2rem;
    transition: transform 0.2s ease-in-out;
}

.like.active, .dislike.active {
    transform: scale(1.5);
}
