/* Shared look for every SFS page */

/* The whole page: font, background color and no gap at the edges */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #222;
}

/* The top bar: name on the left, links on the right */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid #ccc;
}

/* The links in the top bar, with no underline */
nav a {
    margin-left: 20px;
    color: #222;
    text-decoration: none;
}

/* The white card in the middle of the page */
main {
    max-width: 600px;
    margin: 40px auto;
    padding: 24px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
}


/* The dashed box where files are dropped */
#dropZone {
    border: 2px dashed #555;
    border-radius: 8px;
    padding: 40px 20px;
    margin: 24px 0;
}

/* Turns the drop box blue while a file is held over it */
#dropZone.highlight {
    background: #d6e9ff;
    border-color: #007bff;
}

/* Puts the label on its own line above the dropdown */
label {
    display: block;
    margin-bottom: 8px;
}

/* The expiry dropdown */
select {
    padding: 8px;
    font-size: 16px;
    margin-bottom: 24px;
}

/* The blue Encrypt & Share button */
button {
    padding: 12px 24px;
    font-size: 16px;
    color: white;
    background: #007bff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* A darker blue when the mouse is over the button */
button:hover {
    background: #0056b3;
}


/* The boxes that show the file ID and key */
input[type="text"], input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    font-family: monospace;
    font-size: 16px;
    margin-bottom: 12px;
}


/* A grey button that can't be clicked while uploading */
button:disabled {
    background: #999;
    cursor: not-allowed;
}


/* The home page cards, in two columns */
.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

/* One card with a border and rounded corners */
.card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
}

/* Makes the link in each card look like a blue button */
.card a {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

/* On small screens, shows one card per row */
@media (max-width: 500px) {
    .cards {
        grid-template-columns: 1fr;
    }
}


/* The SFS name in the top bar, which links to the home page */
.logo {
    color: #222;
    text-decoration: none;
}


/* The DNS records table, full width with lines between rows */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

/* Every cell: space inside and a line underneath */
th, td {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

/* The heading row with a light grey background */
th {
    background: #f4f4f4;
}


/* Shows each DNS value on its own line */
td {
    white-space: pre-line;
}


/* The "DNS RESULTS" heading: on the left, with a line under it */
#recordTable h2 {
    text-align: left;
    font-size: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #222;
}

/* No lines between the DNS rows, and labels at the top of each row */
#recordTable td {
    border-bottom: none;
    vertical-align: top;
}

/* Gives the label column a fixed width so the values line up */
#recordTable td:first-child {
    width: 140px;
}


/* Shows the card titles in capital letters, like the sponsor's design */
.card h2 {
    text-transform: uppercase;
}


/* The small line under SFS on the home page */
.subtitle {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #555;
}


/* The scan results: text lined up on the left */
#results {
    text-align: left;
    margin-top: 24px;
}

/* The two results headings stay centered and a bit smaller */
#results h2, #results h3 {
    text-align: center;
    font-size: 18px;
}

/* The box around the scanner counts */
#scanBox {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

/* Pushes each number to the right side of the box */
#scanBox span {
    float: right;
}

/* Puts each results button on its own line, centered */
#results button {
    display: block;
    margin: 8px auto;
}

/* Lines up the About and Help text on the left */
.textPage{
    text-align: left;
}

