﻿@media (min-width: 480px) {
    .container {
        width: 450px;
    }
}

body {
    background-color: lightskyblue;
    font-family: monospace;
}

.header, .modal, .modal-header, .modal-body {
    text-align: center;
}

@media screen and (min-width: 768px) {
    .modal:before {
        display: inline-block;
        vertical-align: middle;
        content: " ";
        height: 100%;
    }
}

.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.modal-content {
    background-color: slateblue;
    box-shadow: 0 0 0 8px rgb(15 7 143 / 25%);
}

.button-group + .button-group {
    margin-top: 10px;
}

.btn {
    white-space: normal;
}

.btn-warning,
.btn-warning:focus,
.btn-warning:hover,
.btn-warning:active,
.btn-warning:active:hover,
.btn-warning:active:focus {
    color: black;
    background-color: springgreen;
    border: 1px solid blue;
    border-radius: 21px;
    margin-right: 216px;
    width: 139px;
    font-family: monospace;
}

.modal-body .btn {
    width: 30%;
    border-radius: 24px;
    font-family: monospace;
}

    .modal-body .btn + .btn {
        margin-left: 2%;
    }

.foo {
    font-size: 16px;
}

.header {
    font-size: 69px;
}

.tic-tac-toe--grid {
    text-align: center;
}

.tic-tac-toe--row {
    font-size: 0;
}

.tic-tac-toe--cell {
    display: inline-block;
    vertical-align: top;
    width: 33.33333333%;
}

.tic-tac-toe--textblock {
    border: 3px solid white;
    font-family: monospace;
    font-size: 90px;
    height: 0;
    padding-bottom: 100%;
}

.tic-tac-toe--row:first-child .tic-tac-toe--textblock {
    border-top: 0;
}

.tic-tac-toe--row:last-child .tic-tac-toe--textblock {
    border-bottom: 0;
}

.tic-tac-toe--cell:first-child .tic-tac-toe--textblock {
    border-left: 0;
}

.tic-tac-toe--cell:last-child .tic-tac-toe--textblock {
    border-right: 0;
}

.tic-tac-toe--cell:not(.unclickable) {
    cursor: pointer;
}

.tic-tac-toe--grid + .btn {
    margin-bottom: 10px;
    margin-top: 30px;
}


.resbtn {
    width: 40%;
    margin-left: 125px;
}

@media screen and (max-width:1000px){
    .modal-content {
        width: 329px;
        margin-top: 235px;
    }

    .btn-warning, .btn-warning:focus, .btn-warning:hover, .btn-warning:active, .btn-warning:active:hover, .btn-warning:active:focus {
        margin-left: 68px;
        width: 174px;
    }

    .header, .modal, .modal-header, .modal-body{

    }
}