.tcg-container {
    max-width: 900px;
    margin: 40px auto;
    font-family: Arial, sans-serif;
}


.tcg-container h2 {
    text-align: center;
    margin-bottom: 30px;
}


#tcg-form {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 10px;
}


#tcg-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}


#tcg-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}


#tcg-form button {
    width: 100%;
    margin-top: 25px;
    padding: 13px;
    background: #222;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


#tcg-certificate {
    margin-top: 40px;
    padding: 60px 40px;
    min-height: 550px;

    border: 10px double #222;

    text-align: center;

    background: white;

    box-sizing: border-box;
}


#tcg-certificate h4 {
    letter-spacing: 4px;
    font-size: 18px;
}


#tcg-certificate h1 {
    font-size: 42px;
    margin: 25px 0;
}


#preview-name {
    font-size: 34px;
    margin: 25px 0;
}


#preview-course {
    font-size: 25px;
}


.tcg-details {
    display: flex;
    justify-content: space-around;

    margin-top: 60px;
}


.tcg-details div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.tcg-signature {
    width: 220px;
    margin: 70px auto 0;

    padding-top: 10px;

    border-top: 1px solid #222;
}


.tcg-print {
    display: block;

    margin: 25px auto;

    padding: 12px 25px;

    border: none;

    background: #222;
    color: white;

    border-radius: 5px;

    cursor: pointer;
}


@media print {

    body * {
        visibility: hidden;
    }


    #tcg-certificate,
    #tcg-certificate * {
        visibility: visible;
    }


    #tcg-certificate {
        position: absolute;

        left: 0;
        top: 0;

        width: 100%;
        margin: 0;
    }


    .tcg-print {
        display: none;
    }


    #tcg-form {
        display: none;
    }

}